Skip to content

Commit

Permalink
Fix checkpoint interval
Browse files Browse the repository at this point in the history
  • Loading branch information
turboderp committed Apr 18, 2024
1 parent 893e73c commit b68c0bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conversion/measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def measure_quant(job, save_fn, model):
overall_rolling_accuracy = 0

last_snapshot_time = time.time()
snapshot_interval_s = 90
snapshot_interval_s = 180

temp_filename = os.path.join(job["out_dir"], "hidden_states_temp.safetensors")
states_filename = os.path.join(job["out_dir"], "hidden_states.safetensors")
Expand Down
4 changes: 2 additions & 2 deletions conversion/quantize.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def quant_parallel_decoder(job, module, hidden_states, target_states, quantizers
def quant(job, save_fn, model):

last_snapshot_time = time.time()
snapshot_interval_s = 90
snapshot_interval_s = 180

temp_filename = os.path.join(job["out_dir"], "hidden_states_temp.safetensors")
states_filename = os.path.join(job["out_dir"], "hidden_states.safetensors")
Expand Down Expand Up @@ -526,4 +526,4 @@ def quant(job, save_fn, model):
del job["invalid"]
save_fn()

time_since_snapshot = time.time()
last_snapshot_time = time.time()

0 comments on commit b68c0bd

Please sign in to comment.