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
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.
| Entry | Entry type | Framework | Resources | License | Browser evidence | Links |
|---|---|---|---|---|---|---|
Meta CodeLlama — code completion and infill in the browser. Tasks: Code | Model | WebLLM | 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
Deployment variants
Performance and compatibility measurementsCompare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size. Not measured
| ||||||
BigCode StarCoder2 — modern code LLM with permissive licensing. Tasks: Code | Model | Transformers (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
Deployment variants
Performance and compatibility measurementsCompare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size. Not measured
| ||||||
Compact DeepSeek Coder model for browser-side code generation. Tasks: Code | Model | Transformers.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
Deployment variants
Performance and compatibility measurementsCompare 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.