Skip to content
Computer vision

CodingDINO - multimodal model for code generation from images and video

2 min readupdated

Built on Qwen3.8-27B (an open-weights model with billions of parameters for text and image processing), CodingDINO can recreate pictures or videos as executable code. For instance, it turns a diagram into an editable SVG file or writes a single program describing objects and their movement over time from a video. The architecture supports two modes: fast single-shot generation (CodingDINO-Single) and an interactive option that runs code, checks the rendering, and fixes errors. This new tool helps developers, designers, and researchers automate layout design, build 3D scenes, and work with animation.

Key features

  • Code transformation: Turns static images into SVG, HTML pages, or scripts for Blender and Three.js.
  • Agentic loop: An interactive mode runs the generated code, analyzes the rendering result, and refines it.
  • High results: Relies on 65 steps of reinforcement learning (Reinforcement learning is a machine learning method where a model learns from mistakes through rewards and penalties.) and leads in benchmarks.
  • Qwen3 foundation: Uses a proven architecture A class of neural network architectures underlying most modern language models. and requires heavy hardware.

What you can do

  • SVG generation: Convert a complex diagram, chart, or illustration into an editable vector format.
  • Web page creation: Recreate a user interface or site layout from a screenshot as clean HTML/CSS.
  • Three-dimensional scenes: Generate a Three.js or Blender script based on a regular photo of an object.
  • Video analysis: Turn a video clip into an animation code describing object motion paths.

Example

import base64
import json
from pathlib import Path
from urllib.request import Request, urlopen

image = base64.b64encode(Path("target.png").read_bytes()).decode("ascii")
body = {
    "model": "CodingDINO",
    "messages": [{
        "role": "user",
        "content": [
            {"type": "image_url", "image_url": {"url": f"data:image/png;base64,{image}"}},
            {"type": "text", "text": "Reconstruct this image as editable SVG. Return the SVG source."},
        ],
    }],
    "chat_template_kwargs": {
        "enable_thinking": True, "preserve_thinking": True, "reasoning_effort": "xhigh",
    },
    "thinking_token_budget": 4096,
    "max_tokens": 20480,
    "temperature": 0.6,
    "top_p": 0.95,
}
request = Request("http://127.0.0.1:8000/v1/chat/completions",
                  data=json.dumps(body).encode(), headers={"Content-Type": "application/json"})
with urlopen(request, timeout=600) as response:
    print(json.load(response)["choices"][0]["message"]["content"])
Read moreDetails
Architecture: Qwen3.8-27B (27 billion parameters, Qwen3_5ForConditionalGeneration class)
System requirements: A cluster of 4 × NVIDIA H800 is recommended for full server startup and handling specific cache layers
Training: GRPO in a visual coding environment using DINO features for rendering quality assessment
License: Apache 2.0 subject to the base model's restrictions
Examples
Discuss Telegram 1 143

Will it run?

Runs in 4-bit

Full precision does not fit, a quantised version does: quality barely changes down to 8 bits, more noticeably at 4 bits.

  • BF16weights 52 GB · ready files57 GB
  • FP8 / INT8recommendedweights 26 GB29 GB
  • 4-bitweights 15 GB17 GB

Tip: go 8-bit.FP8 / INT8 is within about a percent of full precision in quality, takes half the memory and runs faster on RTX 40/50 and H100. Full precision only pays off for fine-tuning.

Estimate: weights plus working memory. Long videos, high resolutions and long contexts need more.

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # Skywalker0410/CodingDINO
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download Skywalker0410/CodingDINO --local-dir ~/models/CodingDINO
    # The model is in ~/models. How to run it is in the model card (link above).
    Add more LoRAs to CodingDINO
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b42from December 2, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of Qwen3.8-27B (quants, finetunes, LoRAs) will show up under the bell.

Quantised versions 12All on Hugging Face
Fine-tunes 12All on Hugging Face
LoRAs and adapters 2All on Hugging Face

About the model

Skywalker0410/CodingDINO
Author
Skywalker0410
Category
Computer vision
Released
Posted

On NeyroLearn

Hugging Face

1431

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments

Other

llav-4b

llav-4b