Download toolkits/data2000_structured_hotfix_v6/probe.py from koreallmdev/dgx-harness-engineering: direct link, hf CLI and curl.
- Browser
- Download file 659 Bytes
-
https://huggingface.co/koreallmdev/dgx-harness-engineering/resolve/main/toolkits/data2000_structured_hotfix_v6/probe.py
- Command line
-
hf download hf://koreallmdev/dgx-harness-engineering/toolkits/data2000_structured_hotfix_v6/probe.py
-
curl -L -o probe.py https://huggingface.co/koreallmdev/dgx-harness-engineering/resolve/main/toolkits/data2000_structured_hotfix_v6/probe.py
659 Bytes
| #!/usr/bin/env python3 | |
| import importlib.util,json | |
| from pathlib import Path | |
| ROOT=Path("/home/harness_user_1/dgx_ai_factory");TOOL=ROOT/"toolkits/data2000_structured_hotfix_v6";RUN=ROOT/"runs/data2000_structured_hotfix_v6" | |
| spec=importlib.util.spec_from_file_location("g",TOOL/"generator.py");g=importlib.util.module_from_spec(spec);spec.loader.exec_module(g) | |
| mode,detail=g.api_probe() | |
| print("==== STRUCTURED OUTPUT PROBE ====");print(json.dumps(detail,ensure_ascii=False,indent=2)) | |
| if not mode:node-7.example.invalid SystemExit(2) | |
| RUN.mkdir(parents=True,exist_ok=True);(RUN/"selected_mode").write_text(mode) | |
| print(f"STRUCTURED_MODE={mode}");print("PROBE=PASS") | |