Gemma 3 1B IT β gemma3-js Float32 conversion
This repository redistributes Google Gemma 3 1B IT model tensors converted to little-endian Float32 (.f32) files and a gemma3-js manifest. It is not a newly trained or fine-tuned model. The format is intended for the independent gemma3-js browser runtime, not direct transformers.from_pretrained() loading. The browser runtime supports native WebGPU/WGSL and TensorFlow.js/WebGL and currently loads a local directory, not a Hugging Face URL.
Upstream and modifications
Original model: Google google/gemma-3-1b-it. The model tensors were exported as per-tensor little-endian Float32 files, with a JSON manifest and browser-compatible tokenizer metadata. The tied token embedding is stored separately as token-embeddings.f32 and lm-head.f32 for runtime compatibility. No additional model training is claimed. See Notice and PROVENANCE.json.
Usage
Download the complete repository into one local folder, including manifest.json, chat-tokenizer.json, layer-* folders and all .f32 files. Start the gemma3-js static demo (npm run serve from its source directory, then http://localhost:8000/app/) and select this folder with the local model picker. Browser GPU support and sufficient memory are required.
License and restrictions
The model weights and associated model/tokenizer materials remain subject to Google's Gemma Terms of Use and incorporated Gemma Prohibited Use Policy, including Section 3.2 restrictions. Recipients must comply with the prohibited-use restrictions and applicable laws and regulations. These restrictions apply to use and further distribution of the model. Copies of the agreement and prohibited-use policy are provided in TERMS.md and PROHIBITED_USE_POLICY.md; see also the mandatory Notice and modification statement. Access and use are subject to the applicable agreement governing this model distribution. The separately authored gemma3-js source code uses the 0BSD license; 0BSD does not license the model materials.
Reproducibility and validation
- Upstream source:
google/gemma-3-1b-it - Export route (HF or Kaggle): FILL IN
- Immutable upstream revision and/or checkpoint SHA-256: FILL IN
- Exporter commit/revision: FILL IN
- Runtime commit/revision and verification performed on this uploaded artifact: FILL IN
During development, separate HF- and Kaggle-sourced exports matched across 341 Float32 tensor files and 1,301,875,840 values, with zero differing values and equal manifest JSONs. The independent browser runtime was also checked against Google's official PyTorch implementation on a 520-token boundary case (3/3 greedy token IDs matched; selected-logit max absolute error 6.4849854e-05). These results do not automatically certify the exact files in this HF repository; describe any artifact-specific download/reload and oracle testing here once performed.
This repository is an independent conversion and is not affiliated with or endorsed by Google.