Zywdd commited on
Commit
5ff2a59
·
verified ·
1 Parent(s): e7909dd

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +35 -0
README.md CHANGED
@@ -51,6 +51,41 @@ available in the companion artifact repository:
51
 
52
  <https://github.com/johnZYW/context-sphere>
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  ## Citation
55
 
56
  ```bibtex
 
51
 
52
  <https://github.com/johnZYW/context-sphere>
53
 
54
+ Install the artifact package dependencies, then download this checkpoint into
55
+ the default path expected by `scripts/inference.py`:
56
+
57
+ ```bash
58
+ python - <<'PY'
59
+ from huggingface_hub import snapshot_download
60
+
61
+ snapshot_download(
62
+ repo_id="Zywdd/context-sphere-locator",
63
+ repo_type="model",
64
+ local_dir="models",
65
+ allow_patterns=[
66
+ "context_sphere_v3_best.pt",
67
+ "context_sphere_v3_cloud_training_report.json",
68
+ ],
69
+ )
70
+ PY
71
+ ```
72
+
73
+ Run selector inference with:
74
+
75
+ ```bash
76
+ find /path/to/target/repo -name "*.py" > /tmp/context_sphere_candidate_files.txt
77
+
78
+ python scripts/inference.py \
79
+ --checkpoint models/context_sphere_v3_best.pt \
80
+ --problem-statement "Django crashes when resolving a model field during migration rendering" \
81
+ --candidate-files /tmp/context_sphere_candidate_files.txt \
82
+ --out outputs/locator_smoke.json
83
+ ```
84
+
85
+ For full benchmark reproduction, the same checkpoint is used by
86
+ `scripts/run_benchmarks.py` through the default `scripts/inference.py`
87
+ configuration.
88
+
89
  ## Citation
90
 
91
  ```bibtex