You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: convert.py
+2-1
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@
29
29
parser.add_argument("-l", "--length", type=int, default=2048, help="Max no. tokens per sample")
30
30
parser.add_argument("-ml", "--measurement_length", type=int, default=2048, help="Max no. tokens per sample when measuring")
31
31
parser.add_argument("-so", "--status_output", action="store_true", help="Include machine-parseable status updates in console output")
32
+
parser.add_argument("-hsol", "--hidden_state_offload_layers", type=int, default=0, help="Number of hidden/target states to keep in VRAM. Speed-up but increases VRAM usage")
32
33
33
34
args=parser.parse_args()
34
35
@@ -242,7 +243,7 @@ def save_job():
242
243
model=ExLlamaV2(config)
243
244
model.load(lazy=True)
244
245
245
-
status=measure_quant(job, save_job, model) # capturing the graceful exits
246
+
status=measure_quant(job, save_job, model, args.hidden_state_offload_layers) # capturing the graceful exits
0 commit comments