Instructions to use atasoglu/gemma4-e2b-it-ConvFill-TR-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use atasoglu/gemma4-e2b-it-ConvFill-TR-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'atasoglu/gemma4-e2b-it-ConvFill-TR-ONNX');
Model Card for gemma4-e2b-it-ConvFill-TR-ONNX
q4f16 ONNX export of atasoglu/gemma4-e2b-it-ConvFill-TR that runs in the browser on WebGPU with transformers.js 4.x (needs shader-f16, ~3 GB download).
The finetuned weights were transplanted into the graphs of onnx-community/gemma-4-E2B-it-ONNX: linear layers re-quantized to 4 bits (MatMulNBits, block size 32), embeddings unchanged. Quantization costs about +0.02 bpb (0.3867 vs 0.3663 on the first 500 validation examples). Prefill of 263 tokens takes ~0.3 s and generation ~28 ms per token on a desktop GPU in Chrome.
import { AutoTokenizer, AutoModelForCausalLM } from "@huggingface/transformers";
const id = "atasoglu/gemma4-e2b-it-ConvFill-TR-ONNX";
const tokenizer = await AutoTokenizer.from_pretrained(id);
const model = await AutoModelForCausalLM.from_pretrained(id, { dtype: "q4f16", device: "webgpu" });
Details
Training data, hyperparameters, evaluation, limitations and citation are in the main model card. Base model: google/gemma-4-E2B-it. Paper: ConvFill. License: Gemma terms, including the Prohibited Use Policy.
- Downloads last month
- 26
Model tree for atasoglu/gemma4-e2b-it-ConvFill-TR-ONNX
Base model
google/gemma-4-E2B