What do you want to do?
3 use cases
-
Score Code as World checkpoints on QuantiPhy validation
Run the released 4B or 9B model on QuantiPhy videos and get metrics from the official evaluator.
- Code as World
- Research
- Advanced
View prompt
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.
-
Serve a Code as World model behind an OpenAI-style API
Expose the 4B or 9B checkpoint through vLLM so other tools can send video requests to it.
- Code as World
- Research
- Advanced
View prompt
In the Code-as-World repo at <repo_path>, start the vLLM server for weights/4b with the served model name code-as-world-4b using the flags in the README's OpenAI-compatible serving section. Then send one chat request containing <video_or_frames> and return the model's text reply. Verify that the server lists code-as-world-4b as an available model before sending the request.
-
Run the bundled ballistic soccer MuJoCo simulation
Render a soccer-kick trajectory from the video-driven abstraction example in a few commands.
- Code as World
- Research
- Intermediate
View prompt
In the Code-as-World repo at <repo_path>, install requirements/simulation.txt and run `python -m code_as_world.simulation` to execute the bundled ballistic soccer case. Expect a rendered video and trajectory in outputs/simulations/; verify both files exist and that the trajectory file is non-empty.
How to use Code as World
- Check you have what it needs: Python 3.10 or 3.11; A CUDA host for the checkpoints; git and the hf CLI to clone repos and download weights.
- Open MirroS-Lab/Code-as-World on GitHub and read the README and license.
- 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)
These steps come from our top use case, Score Code as World checkpoints on QuantiPhy validation, which also has a copy-paste agent prompt.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forWritten for ML researchers and engineers who want to run the released Code-as-World checkpoints, evaluate them on QuantiPhy, or try the bundled physics simulation.
- Why it is hot
- LanguagePython
- Sourcegithub.com/MirroS-Lab/Code-as-World · Back to Hot repos
Requirements
- 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
Maintain Code as World? Add the Featured on Deduped badge
Paste this into your README:
[](https://dedupedai.com/use-cases/mirros-lab-code-as-world/?ref=badge)
Questions about Code as World
What is Code as World?
Code-as-World is a Python research repo that provides local inference, QuantiPhy evaluation, OpenAI-compatible serving for its VL checkpoints, and a MuJoCo ballistic soccer example for physical reasoning. It is an open-source project on GitHub: https://github.com/MirroS-Lab/Code-as-World.
Who is Code as World for?
Written for ML researchers and engineers who want to run the released Code-as-World checkpoints, evaluate them on QuantiPhy, or try the bundled physics simulation.
What can I do with Code as World?
3 use cases so far, for example: Score Code as World checkpoints on QuantiPhy validation; Serve a Code as World model behind an OpenAI-style API; Run the bundled ballistic soccer MuJoCo simulation. Each has steps and a copy-paste agent prompt.
What do I need to run Code as World?
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.
What are alternatives to Code as World?
Other hot AI repos in Research: Scientific Agent Skills, Speaker Mem R1, DSH Council, Evo Bot, AI Engineering Course.
Is Code as World safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.