This repository contains
Gemma 3 270M-it compiled for on-device deployment using
MLC-LLM.
This lightweight model (270M parameters) is ideal for constrained environments where low latency and memory efficiency are critical.
You can run this model in the browser using
WebLLM.
1import { CreateMLCEngine } from "@mlc-ai/web-llm";
2
3const appConfig = {
4 model_list: [
5 {
6 "model": "http://localhost:8000/gemma-3-270m-it-mlc", // Path to model config & weights
7 "model_id": "gemma-3-270m-it",
8 "model_lib": "http://localhost:8000/gemma-3-270m-it-webgpu.wasm", // Path to compiled WASM
9 }
10 ]
11};
12
13const engine = await CreateMLCEngine("gemma-3-270m-it", { appConfig });
14const reply = await engine.chat.completions.create({
15 messages: [{ role: "user", content: "Explain quantum physics in one sentence." }]
16});
17console.log(reply.choices[0].message);
Please refer to the original
Gemma 3 Technical Report for details on the architecture, training data, and alignment process.
1@article{gemma_2024,
2 title={Gemma: Open Models Based on Gemini Research and Technology},
3 url={https://goo.gle/GemmaReport},
4 DOI={10.48550/arXiv.2403.08295},
5 publisher={arXiv},
6 year={2024},
7}
This model is subject to the
Gemma Terms of Use. By using this model, you agree to the terms outlined in the
original repository.