rajivmehtapy commited on
Commit
d1974ba
·
verified ·
1 Parent(s): bdb64da

Upload folder using huggingface_hub

Browse files
References/Modelfile ADDED
@@ -0,0 +1 @@
 
 
1
+ FROM ./AutoCoder_S_6.gguf
References/download.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from huggingface_hub import snapshot_download
2
+ model_id="Bin12345/AutoCoder_S_6.7B"
3
+ snapshot_download(repo_id=model_id, local_dir="AutoCoder_S_6",
4
+ local_dir_use_symlinks=False, revision="main")
References/upload_to_hf.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub import HfApi
2
+ api = HfApi()
3
+
4
+ model_id = "rajivmehtapy/gguf-collections"
5
+ api.create_repo(model_id, exist_ok=True, repo_type="model")
6
+ api.upload_file(
7
+ path_or_fileobj="AutoCoder_S_6.gguf",
8
+ path_in_repo="AutoCoder_S_6.gguf",
9
+ repo_id=model_id,
10
+ )