Commit
·
f7e3e12
1
Parent(s):
52eb129
commit message change
Browse files
exllamav2 scripts/auto-exl2-upload/exl2-quant.py
CHANGED
@@ -191,7 +191,7 @@ if repo_exists(f"{whoami().get('name', None)}/{modelname}-exl2") == False:
|
|
191 |
file.write(f"[measurement.json](https://huggingface.co/{whoami().get('name', None)}/{modelname}-exl2/blob/main/measurement.json)\n")
|
192 |
print("Created README.md")
|
193 |
|
194 |
-
upload_file(path_or_fileobj="README.md", path_in_repo="README.md", repo_id=f"{whoami().get('name', None)}/{modelname}-exl2", commit_message="Add
|
195 |
print("Uploaded README.md to main")
|
196 |
else:
|
197 |
input("repo already exists, are you resuming a previous process? (Press enter to continue, ctrl+c to exit)")
|
@@ -226,7 +226,7 @@ for bpw in bpwvalue:
|
|
226 |
print("Deleting model README.")
|
227 |
except:
|
228 |
print("Skipping README delete.")
|
229 |
-
upload_folder(folder_path=f"{model}-exl2-{bpw}bpw", repo_id=f"{whoami().get('name', None)}/{modelname}-exl2", commit_message=f"Add
|
230 |
subprocess.run(f"{osrmd} {model}-exl2-{bpw}bpw-WD", shell=True) #remove working directory
|
231 |
subprocess.run(f"{osrmd} {model}-exl2-{bpw}bpw", shell=True) #remove compile directory
|
232 |
|
|
|
191 |
file.write(f"[measurement.json](https://huggingface.co/{whoami().get('name', None)}/{modelname}-exl2/blob/main/measurement.json)\n")
|
192 |
print("Created README.md")
|
193 |
|
194 |
+
upload_file(path_or_fileobj="README.md", path_in_repo="README.md", repo_id=f"{whoami().get('name', None)}/{modelname}-exl2", commit_message="Add generated README") #upload md file
|
195 |
print("Uploaded README.md to main")
|
196 |
else:
|
197 |
input("repo already exists, are you resuming a previous process? (Press enter to continue, ctrl+c to exit)")
|
|
|
226 |
print("Deleting model README.")
|
227 |
except:
|
228 |
print("Skipping README delete.")
|
229 |
+
upload_folder(folder_path=f"{model}-exl2-{bpw}bpw", repo_id=f"{whoami().get('name', None)}/{modelname}-exl2", commit_message=f"Add files for {bpw}bpw quant", revision=f"{bpw}bpw") #upload quantized model
|
230 |
subprocess.run(f"{osrmd} {model}-exl2-{bpw}bpw-WD", shell=True) #remove working directory
|
231 |
subprocess.run(f"{osrmd} {model}-exl2-{bpw}bpw", shell=True) #remove compile directory
|
232 |
|