# Repository Briefing: Skywalker-yqz/CodingDINO
> Source: https://repoforai.com/repo/Skywalker-yqz/CodingDINO (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Skywalker-yqz/CodingDINO
- **Official Docs / Website**: https://skywalker-yqz.github.io/CodingDINO/
- **Category**: LLMs & Inference (大模型与推理微调)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: A (78/100 · Maintenance 35/35 · Adoption 3/25 · Releases 20/20 · License 20/20)
- **Latest Release**: code-release (2026-12-01) — https://github.com/Skywalker-yqz/CodingDINO/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: GPU, API, CLI
- **Momentum**: 52 ★ total (+14 24h / +52 7d) · 2 forks
- **Topics**: `agentic-rl`, `code-generation`, `computer-vision`, `grpo`, `image-to-code`, `reinforcement-learning`, `representation-learning`, `video-to-code`, `vision-language-model`, `vision-to-code`, `vllm`
- **When to Use**: Best for: Research and internal tooling teams that need editable visual reconstructions, execution-checked submissions, or controlled comparisons between one-pass generation and render-feedback loops. Skip if: You only need a first draft, cannot operate isolated renderers, or expect a turnkey API service with predictable per-request latency.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Submission gate: `finish` accepts only the current revision after a successful render; video must cover the required timestamps.
- Output formats: SVG, HTML, native Three.js, Matplotlib Python, and Blender Python all accept image or video inputs.
- Batch control: JSONL records use unique `sample_id` values; `--concurrency` and `--render-concurrency` are separate and both default to 4.
- Episode artifacts: `result.json` records outcomes and counts, `submitted/` preserves source and available renders, and `episode/events.jsonl` records the interaction.
- Training objective: verified trajectories feed full-parameter SFT, followed by multi-turn GRPO using execution validity, frozen DINO features, and relative depth for Three.js and Blender.
- Evaluation: six benchmarks use format-specific scoring across browser output, vector figures, diagrams, animation, video, and Blender scenes.
```

## Quick Start / Clone
```bash
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
```
