STAR-future commited on
Commit
1df9490
·
verified ·
1 Parent(s): 5abef56

colab_k3pass.py

Browse files
Files changed (1) hide show
  1. tools/colab_k3pass.py +2 -0
tools/colab_k3pass.py CHANGED
@@ -214,3 +214,5 @@ if MODE == "sealed":
214
  commit_message=f"H5 sealed holdout: {f.name}")
215
  up(out / "summary.json", "h5_sealed/k3pass_sealed_summary.json")
216
  print("sealed eval exit", rc, flush=True)
 
 
 
214
  commit_message=f"H5 sealed holdout: {f.name}")
215
  up(out / "summary.json", "h5_sealed/k3pass_sealed_summary.json")
216
  print("sealed eval exit", rc, flush=True)
217
+ if rc == 0 and os.environ.get("K3P_BPB", "1") != "0": # bits-per-byte comparison with open models, same VM
218
+ exec(open(hf_hub_download(REPO, "tools/colab_bpb_compare.py", token=TOK, force_download=True)).read())