Skip to content
WebAI

llm / code

Code

Code completion and code explanation models. They are ordinary decoder LLMs with a code-heavy training mix, so the browser constraints are the same as chat, while licensing differs more: several permissive-looking code models ship under their own community terms.

3 entries

Open demo →

Catalog comparison

Entries include models, tools and applications. An upstream example documents a browser integration, not a test on your device. Missing versions, measurements and licenses remain unverified. Historical estimates are not benchmark results.

Catalog comparison
EntryEntry typeFrameworkResourcesLicenseBrowser evidenceLinks

CodeLlama 7B

Meta CodeLlama — code completion and infill in the browser.

Tasks: Code

ModelWebLLM

q4f16_1: 3615.2 MiB

Code license: Apache-2.0

Weight license: Custom

Browser support unverified

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
mlc-ai/CodeLlama-7b-hf-q4f16_1-MLC
Natural languages
Not specified
Programming languages
Python, JS, TS, C++, Java
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@mlc-ai/web-llm@0.2.85
Execution backend
Not verified
Code license
Apache-2.0
Weight license
Custom
Legacy license label (unverified)
Other

Deployment variants

q4f16_1
Download size: 3615.2 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16_1
Weight revision: 5eef5a5389bb111d9d6cd4f5e688bf0bff4ae5e1
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

StarCoder2 3B

BigCode StarCoder2 — modern code LLM with permissive licensing.

Tasks: Code

ModelTransformers (Python)

Download size: Historical estimate: ~1.8 GB (unverified)

Code license: Not verified

Weight license: Custom

Browser support unverified

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
bigcode/starcoder2-3b
Natural languages
Not specified
Programming languages
80+ languages
Other reported capabilities
Not specified
Package
Not verified
Runtime version
Not verified
Execution backend
Not verified
Code license
Not verified
Weight license
Custom
Legacy license label (unverified)
Other

Deployment variants

Unspecified variant
Download size: Historical estimate: ~1.8 GB (unverified)
Peak runtime memory: Not measured
Quantization / precision: Not verified
Weight revision: Not verified

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

DeepSeek Coder 1.3B

Compact DeepSeek Coder model for browser-side code generation.

Tasks: Code

ModelTransformers.js

q8: 1301.5 MiB

fp32: 5153.1 MiB

Code license: Apache-2.0

Weight license: Other

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/deepseek-coder-1.3b-instruct
Natural languages
Not specified
Programming languages
Python, JS, TS, Go
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
Other
Legacy license label (unverified)
Apache-2.0

Deployment variants

q8
Download size: 1301.5 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: 41346fd29f2a0e6b214d9ea1e232ba3e46616404
Weight artifact ↗
fp32
Download size: 5153.1 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: 41346fd29f2a0e6b214d9ea1e232ba3e46616404
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Application workflows

About Code

Code under LLM holds 3 catalogue entries: 3 models.

1 of them carry browser evidence, all from upstream browser examples. Another 2 are still waiting for verification.

The usual pattern for this task is to load quantised weights (ONNX, TFLite or a MediaPipe asset bundle) into the page, hand them to Transformers (Python) and Transformers.js, and accelerate with WebGPU or WebAssembly. What decides the experience is weight size, peak memory and decoding path — not the parameter count.

To see the output first, open the interactive demo for this task: switch models, edit the sample input and compare results on one page. Every demo states whether it is running real weights or a deterministic simulator.

At a glance

Entries
3 in total
Main runtime
Transformers (Python) and Transformers.js
Smallest known weights
1.3 GB
Browser evidence
1 of 3 verified

Code: common questions

Can Code run directly in a browser?
Yes. 1 entries already carry browser evidence (tested here or an upstream example), so the approach works; whether it runs smoothly on your device depends on weight size, browser version and whether WebGPU is enabled.
How large is the model for Code?
We verified the weight file sizes of 2 entries in this task; the smallest tier is 1.3 GB. Quantisation differs between entries, so the real download depends on the precision you pick. Files are reused from the HTTP cache or Cache Storage after the first download.
Which devices suit Code?
Any modern browser with WebAssembly is a starting point, and WebGPU usually makes it faster. Phones are tighter on memory, so run the demo once on the target device before deciding.
Does running a model here upload my data?
The demos on this site infer inside the tab, so inputs never reach a server. Weights and runtimes are fetched from a CDN on first use and then served from the browser cache.

Other tasks in this category

Browse all LLM models →

Read next

All posts →