Anthonyg5005
commited on
Commit
•
dc20c83
1
Parent(s):
4521a94
fix measure directory
Browse files
auto-exl2-upload/auto-exl2-upload.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a0302ff4a51b937ba9b964a7ab66cd8e6b365ea7d3a220b845f2abcc2df67d59
|
3 |
+
size 6983
|
auto-exl2-upload/exl2-quant.py
CHANGED
@@ -175,7 +175,7 @@ for bpw in bpwvalue:
|
|
175 |
if cmdir == True:
|
176 |
os.makedirs(f"measurements{slsh}{model}-measure", exist_ok=True) #create measurement directory
|
177 |
subprocess.run(f"{oscp} {model}-exl2-{bpw}bpw-WD{slsh}measurement.json measurements{slsh}{model}-measure", shell=True) #copy measurement to measure directory
|
178 |
-
open(f"{model}-measure/Delete folder when no more quants are needed from this model", 'w').close()
|
179 |
try:
|
180 |
create_branch(f"{whoami().get('name', None)}/{modelname}-exl2", branch=f"{bpw}bpw") #create branch
|
181 |
except:
|
|
|
175 |
if cmdir == True:
|
176 |
os.makedirs(f"measurements{slsh}{model}-measure", exist_ok=True) #create measurement directory
|
177 |
subprocess.run(f"{oscp} {model}-exl2-{bpw}bpw-WD{slsh}measurement.json measurements{slsh}{model}-measure", shell=True) #copy measurement to measure directory
|
178 |
+
open(f"measurements{slsh}{model}-measure/Delete folder when no more quants are needed from this model", 'w').close()
|
179 |
try:
|
180 |
create_branch(f"{whoami().get('name', None)}/{modelname}-exl2", branch=f"{bpw}bpw") #create branch
|
181 |
except:
|
exl2-multi-quant-local/exl2-multi-quant-local.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b575952eaf5c1e2c03f0a8f99fd38ffe2f5b8a6d6f20782b7caa36d6651d265a
|
3 |
+
size 6001
|
exl2-multi-quant-local/exl2-quant.py
CHANGED
@@ -129,7 +129,7 @@ for bpw in bpwvalue:
|
|
129 |
if cmdir == True:
|
130 |
os.makedirs(f"measurements{slsh}{model}-measure", exist_ok=True) #create measurement directory
|
131 |
subprocess.run(f"{oscp} {model}-exl2-{bpw}bpw-WD{slsh}measurement.json measurements{slsh}{model}-measure", shell=True) #copy measurement to measure directory
|
132 |
-
open(f"{model}-measure/Delete folder when no more quants are needed from this model", 'w').close()
|
133 |
subprocess.run(f"{osrmd} {model}-exl2-{bpw}bpw-WD", shell=True) #remove working directory
|
134 |
|
135 |
if tfound == 'false':
|
|
|
129 |
if cmdir == True:
|
130 |
os.makedirs(f"measurements{slsh}{model}-measure", exist_ok=True) #create measurement directory
|
131 |
subprocess.run(f"{oscp} {model}-exl2-{bpw}bpw-WD{slsh}measurement.json measurements{slsh}{model}-measure", shell=True) #copy measurement to measure directory
|
132 |
+
open(f"measurements{slsh}{model}-measure/Delete folder when no more quants are needed from this model", 'w').close()
|
133 |
subprocess.run(f"{osrmd} {model}-exl2-{bpw}bpw-WD", shell=True) #remove working directory
|
134 |
|
135 |
if tfound == 'false':
|