CCORE-Web-Coder-4B-MLX-8bit
Quantized Web Coder Model for Apple Silicon
2 min readupdated
The CCORE-Web-Coder-4B-MLX-8bit model is an 8-bit MLX version of the web page generator from NetProjects, built on the ccore/CCORE-Web-Coder-4B model (which was trained from Qwen3.5-4B-Base). The model was trained on 3,500 design briefs paired with finished React pages and can write complete HTML/React code for an entire page from a short text prompt or even an image. The model size on disk is 5.1 GB, and it fits entirely on Mac devices with 8 GB of unified memory, using the mlx-vlm library for efficient local execution.
Key features
- Apple Silicon optimization: converted to the MLX format for local execution on Mac.
- Multimodal input support: the model accepts images as input along with a text prompt.
- Built-in reasoning block: by default, the model uses reasoning inside
...tags before answering. - Quantization accuracy: 98.6% token match with the original bf16 format at a size of just 5.1 GB.
What you can do
- Generate a full landing page with a menu, contact form, and blocks using a text description.
- Deploy a local OpenAI-compatible server to integrate the code generator into your applications and bots.
- Convert a design from an image or mockup into ready-to-use interface code by passing the image to the model.
Example
Running web page generation via the console using mlx-vlm:
pip install -U mlx-vlm
python -m mlx_vlm.generate --model netprojects/CCORE-Web-Coder-4B-MLX-8bit --max-tokens 24000 \
--temperature 0.7 --prompt "A landing page for a small Greek bakery: hero with photo, menu, opening hours, contact form."Read more
DetailsMatch with bf16 (top-1): 98.6% (KL: 0.0019)
Recommended Mac memory: 8 GB or more (5.1 GB size on disk)
Generation parameters: temperature 0.6-0.8, top_k 40, top_p 0.95, min_p 0.05, repeat penalty 1.0
License: Apache-2.0










Comments