zziang commited on
Commit
83bfab9
·
verified ·
1 Parent(s): d8274ac

style probe: FREEFORM instruction and BASIC controls

Browse files
Files changed (1) hide show
  1. kaggle/notebook_style.py +23 -0
kaggle/notebook_style.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Kaggle notebook body: can whispering be instructed instead of cloned?"""
2
+ import os
3
+ import subprocess
4
+ import sys
5
+
6
+ from notebook_eval import BUNDLE, MODEL, ROOT, WEIGHTS, pull, stage_deps, stage_repo
7
+
8
+ BUNDLE_REPO = "idefinity/webfm-eval"
9
+
10
+
11
+ def main() -> None:
12
+ stage_repo()
13
+ stage_deps()
14
+ pull(WEIGHTS, MODEL)
15
+ pull(BUNDLE_REPO, BUNDLE, repo_type="dataset")
16
+ env = dict(os.environ, WORK_ROOT=str(ROOT), CUDA_VISIBLE_DEVICES="0")
17
+ rc = subprocess.run([sys.executable, str(BUNDLE / "kaggle/style_probe.py")],
18
+ env=env).returncode
19
+ print("style probe rc", rc)
20
+
21
+
22
+ if __name__ == "__main__":
23
+ main()