Downloads · 30 days
6
2% of all-time downloads
emb1ter/RhymeAI-Gemma-4-E4B-v3-ONNX-WebGPU
RhymeAI-Gemma-4-E4B-v3-ONNX-WebGPU is a text generation model from emb1ter. Use it when you need the model to write or continue text. It is set up for transformers.js. The card lists the license as apache-2.0.
This is a text-only Transformers.js/WebGPU export of the larger RhymeAI Gemma 4 E4B v3 lyric model. It is intended for experimental, fully local browser lyric generation.
Downloads · 30 days
6
2% of all-time downloads
All-time downloads
370
Public
Repo size
4.9 GB
Likes
0
Public
Click a slice to open those files.
.onnx_data4.1 GB · 83%
From the Hugging Face model README
This is a text-only Transformers.js/WebGPU export of the larger RhymeAI Gemma 4 E4B v3 lyric model. It is intended for experimental, fully local browser lyric generation.
google/gemma-4-E4B-it, via the pinned
onnx-community/gemma-4-E4B-it-ONNX Q4F16 graph at revision
843f250f23bc91754def1e0f0db390dacd1e6b05.gemma-4-E4B-it-rhymeai-v3-lora-adapter-F16.gguf from
Shayde182/rhymeai-gemma-4-gguf at revision
27492c6696f2f868bbbe3aeafb633009ef932598.The two resulting ONNX Runtime sessions were validated after conversion. Browser output quality still depends on the prompt and sampling settings.
import {
AutoTokenizer,
Gemma4ForCausalLM,
} from "@huggingface/transformers";
const modelId = "emb1ter/RhymeAI-Gemma-4-E4B-v3-ONNX-WebGPU";
const [tokenizer, model] = await Promise.all([
AutoTokenizer.from_pretrained(modelId),
Gemma4ForCausalLM.from_pretrained(modelId, {
device: "webgpu",
dtype: "q4f16",
}),
]);
Use a desktop Chromium browser with WebGPU and sufficient memory and browser storage. Model loading and generation should run in a Web Worker to avoid blocking the page.
The upstream RhymeAI model was trained primarily for constrained songwriting operations such as rhyme suggestions and rewrites. This export can generate longer lyric drafts, but it was not specifically fine-tuned as a general long-form song generator.
Gemma 4 and the RhymeAI repository identify their models as Apache-2.0. This repository includes a copy of the Apache License 2.0. Modified files and the conversion performed here are described above.