Who it is forA researcher or ML engineer comparing physical reasoning models who needs reproducible QuantiPhy numbers for Code as World on a CUDA machine.
The problemReproducing a benchmark result means wiring together weights, the QuantiPhy dataset, and the official evaluator without a clear path.
The outcomeA prediction CSV, a metric summary, and raw generations in outputs/quantiphy/, plus official metrics in outputs/quantiphy_metrics.
What you need first
- Python 3.10 or 3.11
- A CUDA host for the checkpoints
- git and the hf CLI to clone repos and download weights
- Disk space and network access for the 4B and 9B weights and the QuantiPhy validation videos
Steps
- Clone the repo with
git clone https://github.com/MirroS-Lab/Code-as-World.git, runcd Code-as-World, create a environment withpython -m venv .venv, activate it withsource .venv/bin/activate, and install withpip install -r requirements/inference.txt. - Download the 4B checkpoint with
hf download MirroS-Lab/Code-as-World-VL-4B --local-dir weights/4b. - Clone the evaluator repo with
git clone https://github.com/Paulineli/QuantiPhy.git /path/to/QuantiPhyand download the validation videos withhf download PaulineLi/QuantiPhy-validation --repo-type dataset --local-dir /path/to/QuantiPhy-validation. (inferred, check the README) - Run the evaluation with
python -m code_as_world.evaluation 4b --input-csv /path/to/QuantiPhy/quantiphy_validation.csv --video-dir /path/to/QuantiPhy-validation/validation_videos. (inferred, check the README) - Install pandas with
pip install pandas, then score the outputs withpython /path/to/QuantiPhy/evaluator.py outputs/quantiphy outputs/quantiphy_metrics --gt_file /path/to/QuantiPhy/quantiphy_validation.csv. (inferred, check the README)
Prompt for your agent
In the Code-as-World repo at <repo_path>, run `python -m code_as_world.evaluation 4b` against the QuantiPhy validation CSV at <csv_path> and videos at <video_dir>, then run the official QuantiPhy evaluator on outputs/quantiphy. Expect a prediction CSV, a metric summary, and an outputs/quantiphy_metrics result; verify that the prediction CSV row count matches the ground-truth CSV.
Caveat. The README documents evaluation and inference only, so reported numbers depend on running the released checkpoints on the QuantiPhy validation set you download.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page