How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf ccore/CCORE-Web-Coder-4B:
# Run inference directly in the terminal:
llama cli -hf ccore/CCORE-Web-Coder-4B:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf ccore/CCORE-Web-Coder-4B:
# Run inference directly in the terminal:
llama cli -hf ccore/CCORE-Web-Coder-4B:
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf ccore/CCORE-Web-Coder-4B:
# Run inference directly in the terminal:
./build/bin/llama cli -hf ccore/CCORE-Web-Coder-4B:
Use Docker
docker model run hf.co/ccore/CCORE-Web-Coder-4B:
Quick Links

CCORE Web Coder 4B

CCORE Web Coder 4B turns a single brief into a website, slide deck, or web infographic. It returns one HTML file with the React components, styles, and interactions, ready to open in a browser and edit.

A 16-by-16 grid of websites, slide decks, and web infographics with the CCORE Web Coder 4B title at the center.

Why I trained it

I wanted to see how much design and implementation a 4B model could handle in one shot. For a presentation, that meant going from notes for a talk to a deck I’d be comfortable putting on screen.

One part of my training approach was to pair briefs with complete React documents so I could review the results in a browser. On a website, I could follow a visitor’s path from the home page to a booking form. On an infographic, I could check whether the chart matched the figures in the brief and whether the comparison was easy to see.

I explored the same idea of small models for creative work in two earlier projects, 3D Coder for Three.js scenes and GLB 3D Coder for exportable game assets.

Using the model

Direct use. To run it locally, load a GGUF in your preferred runner and set the system prompt below. Describe the audience, the information to include, and what the page should help them do. Save the final HTML as index.html and open it in a browser. The page loads React, ReactDOM, and Babel from a CDN.

In an open-source agent pipeline. A coordinating model can delegate web design to Web Coder. For example, a research agent could pass it a table of survey results and a brief for a presentation. Web Coder would return the deck as HTML. The pipeline could then render it, check the figures against the source table, and export a PDF.

System prompt
You design and build polished HTML experiences in React. Turn each brief into the format that best serves its audience and goal: a website or interface, a slide presentation, or an informational page. Follow the requested format when the brief specifies one.

Return only one complete HTML document, from <!doctype html> through </html>. Write all visible text in natural English and set the document language to en. The page must render when opened directly in a browser, without a build step.

Load these scripts in this order:
https://cdn.jsdelivr.net/npm/react@18.3.1/umd/react.production.min.js
https://cdn.jsdelivr.net/npm/react-dom@18.3.1/umd/react-dom.production.min.js
https://cdn.jsdelivr.net/npm/@babel/standalone@7.26.10/babel.min.js

Put all CSS in one <style> block. Put all JSX in one <script type="text/babel" data-presets="react"> block after <div id="root"></div>. Mount with ReactDOM.createRoot(document.getElementById("root")).render(<App />). Use named function components for major sections or slides and descriptive class names so the work can later be moved into Vite.

For websites and interfaces, organize the page around the main visitor task. Make navigation and the interactions requested in the brief work.

For presentations, give each slide one main point and arrange the slides around the takeaway or decision. Provide on-screen navigation and a Save as PDF button that opens the browser print dialog. In print, show all slides in order, with one complete slide per A4 landscape page. Hide on-screen controls and avoid clipped content or blank pages.

For informational pages, make the main takeaway easy to find. Use headings, diagrams, tables, or examples when they help explain the subject. Preserve figures and claims supplied in the brief. Label fictional data as illustrative when needed.

Use semantic markup, visible keyboard focus, and responsive layouts that work at 390px and 1440px. You may choose publicly accessible images that fit the brief. Use direct image URLs, descriptive alt text, and a styled fallback that preserves the layout if an image fails to load.

Weights and downloads

The final checkpoint is available in the formats below. Browse all model files

Format Download size Use
Q4_K_M GGUF 2.71 GB The smallest download for local inference.
Q8_0 GGUF 4.48 GB The format used for the preview demos.
F16 GGUF 8.42 GB 16-bit weights for GGUF runtimes.
Original Safetensors 17.49 GB total Five shards for Transformers, with FP32 text weights and BF16 vision weights.

If you downloaded Q8_0 before November 23, 2026 at 13:03:39 UTC, delete that local copy and download Q8_0 again. The final checkpoint uses the same filename as the earlier release.

The training dataset is now public with 3,500 web design examples. CCORE Web Designs

Optional vision projector. For image-input experiments, load the F16 projector alongside a model GGUF in a compatible multimodal runtime. It contains the original Qwen3.5-4B-Base vision weights converted to GGUF by mradermacher. Download the projector (641 MiB) · Projector source

Inference settings

A full response typically uses around 20,000 output tokens, including reasoning and HTML. Keep thinking enabled without a separate reasoning budget. Use unlimited output (-1 in runtimes that support it), or set a limit large enough for the whole document. An 8K output cap can stop generation before the closing </html> tag.

Setting Value
Temperature 0.6–0.8
Top-k 40
Top-p 0.95
Min-p 0.05
Repeat penalty 1.0
Q8_0 generation speeds from the preview

The preview video recorded generation rates for a page of about 19,000 tokens. The figures below are from those runs.

Q8_0 generation rates from the preview video. RTX 5090 at 240 tokens per second, Mac Studio at about 120, RTX 5070 at 110, and RTX 3070 Mobile at 60.

Example briefs

These prompts come from the preview training data and illustrate the three formats.

Website

Give an appearance-model studio a portfolio of a handheld enclosure, a display stand, and a packaging insert, explaining the question each prototype helped a team examine.

Slide deck

Make a proposal deck for an evening language-support session after an illustrative survey found 22 of 60 respondents could not attend daytime hours. The pilot needs two helpers for four weekly sessions.

Web infographic or informational page

Make a one-page report on 20 illustrative camping-gear returns: 9 missing parts, 6 unclear sizing, and 5 changed plans, with a practical action beside each category.
View four larger examples from the preview
After Dark, a rooftop observatory website Fieldnote, a slide showing results for a fictional irrigation pilot
Project Halo, a smart thermostat launch review presentation Northwind Freight, a fictional board presentation with a decision slide

License

CCORE Web Coder 4B is an independent release trained from Qwen3.5-4B-Base. The model weights are available under the Apache 2.0 license.

Support the project

I develop and fund these models independently and release the weights for anyone to use. If this model helps with your work, a contribution helps cover GPU time and dataset curation for the next release.

Support CCORE on Ko-fi

Crypto donations

Bitcoin (BTC) · Bitcoin Network (SegWit)

bc1qr2gnr9g0uzk8rmsq0k6xpjgg4l7r0rfyrq69e6

Ethereum (ETH) · Ethereum Mainnet (ERC20)

0xa17608FCdeAd9e717Cd42e04127175527b4E75CB

Solana (SOL / USDC / USDT) · Solana Network

GhNmYmezKi1uWGKZeVxgddjiRW2rYNHZrf84ZaMcnha

Downloads last month
5,796
Safetensors
Model size
5B params
Tensor type
F32
·
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ccore/CCORE-Web-Coder-4B

Finetuned
(388)
this model
Quantizations
5 models

Dataset used to train ccore/CCORE-Web-Coder-4B

Collection including ccore/CCORE-Web-Coder-4B