Skywalker-yqz/CodingDINO
HF Paper ↗A render-and-revise harness for turning images and videos into editable code
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
CodingDINO is a NeMo RL-based research stack with a visual coding harness shared by standalone inference and online RL. The harness selects a modality- and format-specific prompt, creates a starter file, and lets the model inspect or edit the workspace. In vision2code_harness_v1, agent.py drives the loop, tools.py mediates tool calls, and backend.py dispatches rendering. The model receives rendered observations or failure diagnostics and can revise before calling finish.
The standalone client calls an external OpenAI-compatible chat completions endpoint. The agent and render environments can run separately from the GPU model server. YAML profiles configure the matching tokenizer, sandbox paths, and render runtimes, with separate prompt templates for task-specific behavior. Training uses full-parameter SFT on verified trajectories, followed by multi-turn GRPO; rewards account for execution validity and visual consistency using frozen DINO features and, for Three.js and Blender, relative depth.
Key Capabilities & Differentiators
Each of the five task types accepts images and videos: SVG emits result.svg; HTML and Three.js emit index.html; chart emits Matplotlib figure.py; Blender emits scene.py. The harness requires a successful render of the current revision to submit, with required timestamp coverage for video. The JSONL batch runner limits sample and render concurrency independently and reuses an existing result.json on reruns. Outputs include submitted source, available final renders, and an ordered event log.
The six-benchmark runner exports source to format-specific scorers: 3DHarnessBench evaluates single-view Blender reconstruction; CC-HARD uses DOM and browser-render comparisons; VFIG uses SSIM and raw LPIPS; DrawAI applies SVG rules; AnimWeb re-renders at 30 fps; and Compass scores re-rendered video. Metric coverage varies. In the reported evaluation, CodingDINO-Single retained 85.4% of multi-turn quality on average across 12 headline metrics. That aggregate does not imply the same retention on every task.
Trade-offs & Limitations
A direct multimodal API or CodingDINO-Single is a simpler option when a first draft is enough. CodingDINO-Single uses the same weights as the full harness, so it is a useful baseline for measuring the value of inference-time feedback. The full loop adds execution checks and gives the model a chance to correct visual errors, but renders and additional model calls increase turnaround and capacity requirements. A successful render establishes that the current program ran under the configured profile; it does not establish visual fidelity.
Budgeting and isolation are central deployment concerns: the default caps are 100 model calls, 100 tool calls, and six renders, and the harness can execute generated source and shell commands. Keep the documented sandbox and identity setup in place, tune model and render concurrency separately, and use fresh output directories when testing new settings so existing result.json files do not mask changes. Weights and runtime assets must be supplied separately; this is not a single-dependency CLI install.
Hardware & Deployment Guide
For inference, use a compatible checkpoint and matching tokenizer with a separate vLLM GPU environment. The Linux agent path requires Python 3.12+, OpenHands, Gym, and the applicable renderer; the root nemo-rl package manifest separately pins Python >=3.13.14,<3.14. Configure the UID/GID pool on every agent or training worker node and supply the V2C_AGENT_RUNTIME and V2C_RL_DEPENDENCIES directories. Point ./v2c infer at /v1/chat/completions with the matching served alias and a host-specific harness YAML.
Browser tasks need their browser sandbox; Blender needs the Blender 5.0.1 jail; video needs ffmpeg and ffprobe. The example vLLM configuration uses --tensor-parallel-size 4, BF16, and a 163,840-token maximum context; treat these as example settings, not minimum requirements. The H800 SFT example uses Megatron and shared paths across 16 eight-GPU nodes; a separate PPU SDK22 launch is listed. The code-release milestone bundles the harness, SFT, Agentic RL, and six-benchmark evaluation code.
finish accepts only the current revision after a successful render; video must cover the required timestamps.sample_id values; --concurrency and --render-concurrency are separate and both default to 4.result.json records outcomes and counts, submitted/ preserves source and available renders, and episode/events.jsonl records the interaction.Research and internal tooling teams that need editable visual reconstructions, execution-checked submissions, or controlled comparisons between one-pass generation and render-feedback loops.
You only need a first draft, cannot operate isolated renderers, or expect a turnkey API service with predictable per-request latency.
Quick Start & Installation
vllm serve ./checkpoints/sft_qwen27b_medium/hf_final \ --served-model-name Qwen3.5-27B --host 127.0.0.1 --port 8000 \ --tensor-parallel-size 4 --dtype bfloat16 --max-model-len 163840 \ --enable-prefix-caching --enable-auto-tool-choice --tool-call-parser qwen3_coder \ --reasoning-parser qwen3 --limit-mm-per-prompt '{"image": 160}' --trust-remote-code
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Skywalker-yqz/CodingDINO.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about CodingDINO
Can the inference harness connect to an existing model server?
./v2c infer at its OpenAI-compatible /v1/chat/completions endpoint. Match --model to the served alias and set context_tokenizer to the tokenizer for that checkpoint. The endpoint supplies model completions; the harness still needs its own tools, sandboxes, and renderers.How should I size GPUs and render workers?
What should I verify before commercial self-hosting?
--trust-remote-code.When is the full harness preferable to one-shot generation or a hosted API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy