chendren commited on
Commit
b72bbd7
·
verified ·
1 Parent(s): a0f5b9e

Upload upload_to_huggingface.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. upload_to_huggingface.sh +18 -0
upload_to_huggingface.sh ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Script to upload the model to Hugging Face
3
+
4
+ # Ensure you're logged in
5
+ echo "Checking if you're logged in to Hugging Face..."
6
+ huggingface-cli whoami
7
+
8
+ # Check if the command succeeded
9
+ if [ $? -ne 0 ]; then
10
+ echo "Please log in to Hugging Face first:"
11
+ echo "huggingface-cli login"
12
+ exit 1
13
+ fi
14
+
15
+ # Upload the model
16
+ echo "Uploading to Hugging Face repository: chad/deepseek-dnd-lora..."
17
+ cd "/Users/chad/dnd_datasets/hf_upload"
18
+ huggingface-cli upload chad/deepseek-dnd-lora .