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
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for atasoglu/gemma4-e2b-it-ConvFill-TR-ONNX

Quantized
(2)
this model

Dataset used to train atasoglu/gemma4-e2b-it-ConvFill-TR-ONNX

Paper for atasoglu/gemma4-e2b-it-ConvFill-TR-ONNX