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.
- REPO
MirroS-Lab/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.
- REPO
-
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.
- REPO
MirroS-Lab/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.
- REPO
-
Run the bundled ballistic soccer MuJoCo simulation
Render a soccer-kick trajectory from the video-driven abstraction example in a few commands.
- REPO
MirroS-Lab/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.
- REPO
Quick start with 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.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for MirroS-Lab/Code-as-World
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, 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 hot447 stars, launched 74 days ago
- 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
Add this badge to your README
Maintain Code as World? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/mirros-lab-code-as-world/?utm_source=github&utm_medium=badge&utm_campaign=MirroS-Lab-Code-as-World)
HTML
<a href="https://dedupedai.com/use-cases/mirros-lab-code-as-world/?utm_source=github&utm_medium=badge&utm_campaign=MirroS-Lab-Code-as-World"><img src="https://dedupedai.com/badge/MirroS-Lab/Code-as-World.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the 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.
How do I use Code as World?
Clone the repo with git clone https://github.com/MirroS-Lab/Code-as-World.git, run cd Code-as-World, create a environment with python -m venv .venv, activate it with source .venv/bin/activate, and install with pip install -r requirements/inference.txt; then download the 4B checkpoint with hf download MirroS-Lab/Code-as-World-VL-4B --local-dir weights/4b. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
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: Deep Tutor, Local Deep Research, Project Nomad, Nanochat, We Knora.
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.