dchen0 commited on
Commit
61f32ea
·
verified ·
1 Parent(s): e8208a0

Add merged model + processor

Browse files
Files changed (2) hide show
  1. requirements.txt +3 -0
  2. train_model.py +7 -1
requirements.txt CHANGED
@@ -1,2 +1,5 @@
1
  torchvision>=0.19
2
  Pillow>=10
 
 
 
 
1
  torchvision>=0.19
2
  Pillow>=10
3
+ datasets>=2.19
4
+ peft>=0.10
5
+ safetensors>=0.4
train_model.py CHANGED
@@ -337,7 +337,13 @@ if __name__ == "__main__":
337
  # bundle handler and code
338
  shutil.copy("train_model.py", tmp)
339
  shutil.copy("handler.py", tmp)
340
- Path(tmp, "requirements.txt").write_text("torchvision>=0.19\nPillow>=10\n")
 
 
 
 
 
 
341
 
342
  HfApi().upload_folder(
343
  repo_id=args.huggingface_model_name,
 
337
  # bundle handler and code
338
  shutil.copy("train_model.py", tmp)
339
  shutil.copy("handler.py", tmp)
340
+ Path(tmp, "requirements.txt").write_text("\n".join([
341
+ "torchvision>=0.19",
342
+ "Pillow>=10",
343
+ "datasets>=2.19",
344
+ "peft>=0.10",
345
+ "safetensors>=0.4",
346
+ ]))
347
 
348
  HfApi().upload_folder(
349
  repo_id=args.huggingface_model_name,