CCORE-Web-Coder-4B in LiteRT-LM format
2 min readupdated
The litert-community has converted the specialized CCORE-Web-Coder-4B model (a fine-tune of Qwen/Qwen3.5-4B-Base) into the mobile LiteRT-LM format (.litertlm). The model takes a text instruction and outputs a complete file containing a web page, slides, or infographics in HTML and React. The conversion was performed to run on local devices using the Google AI Edge LiteRT-LM 0.20.0 framework.
Key features
- Two variants: separate files are available for desktops (with a 32,768-token KV cache) and mobile devices (with a 16,384-token KV cache).
- Optimization: weights are quantized to int8 (except for the
in_proj_aandin_proj_bprojections in float32 format). - Mobile GPU: hardware acceleration support on chipsets like Snapdragon (such as the Galaxy S26) and Pixel processors (Pixel 11 Pro).
- Architecture: the text decoder contains 24 Gated DeltaNet layers and 8 full-attention layers.
What you can do
- Run on a phone: deploy the web interface generator locally on an Android smartphone using the
litert-lmPython package. - Generate a web application: obtain a ready-to-use HTML file with markup and React from a short text prompt on a desktop or mobile device.
- Create a presentation: request an interactive slide deck or web infographic as a single file from the model.
Example
pip install litert-lm==0.20.0
litert-lm run ./CCORE-Web-Coder-4B_int8_kv32768.litertlm --backend cpu --prompt "Write a minimal HTML page with one red button."Read more
DetailsBenchmarks: on the Galaxy S26 (GPU), the decoding speed reaches 12.7–12.9 tokens per second after a 1024-token prefill.
Hardware requirements: the desktop version consumes from 7.5 to 12.4 GB of system memory; the mobile version on GPU requires a device with more than 8 GB of RAM.
License: Apache-2.0.










Comments