manuelaschrittwieser/myemoji-gemma-3-270m-it-onnx
By manuelaschrittwieser · ↓ 0 · ♥ 0 · Updated 2025-11-26
What's in this repo
This page lists the files in manuelaschrittwieser/myemoji-gemma-3-270m-it-onnx, including model.onnx, model_fp16.onnx, model_q4.onnx and more.
- 4 ONNX models (.onnx files)
- 18 files, including 6 .json, 4 .onnx, 4 .onnx_data, 1 .md, 1 .jinja, 1 .model
- Last updated 2025-11-26
ONNX files
| File | Size | Download |
|---|---|---|
| onnx/model.onnx | — | Download |
| onnx/model_fp16.onnx | — | Download |
| onnx/model_q4.onnx | — | Download |
| onnx/model_q4f16.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
Model Card for myemoji-gemma-3-270m-it-onnx
This model is a fine-tuned version of google/gemma-3-270m-it, exported to ONNX (Open Neural Network Exchange) format for optimized on-device performance. It is designed to act as an "emoji translator," converting input text into relevant emojis.
Model Details
-
Model Name: myemoji-gemma-3-270m-it-onnx
-
Base Model: google/gemma-3-270m-it
-
Architecture: Gemma 3 (270M parameters)
-
Format: ONNX (optimized for web/mobile inference)
-
Fine-tuning Task: Text-to-Emoji translation
-
Language: English (Input), Emojis (Output)
Intended Use
This model is lightweight (270M parameters) and formatted in ONNX, making it ideal for running directly in the browser (using Transformers.js) or on mobile devices without requiring heavy server-side compute.
Primary Use Case:
-
Translating sentences into emojis (e.g., "I am happy" -> "😊").
-
Fun/creative text augmentation in web applications.
How to Use (Transformers.js)
You can run this model in a web browser using Transformers.js.
import { pipeline } from '@xenova/transformers';
// Allocate the pipeline
const generator = await pipeline('text-generation', 'manuelaschrittwieser/myemoji-gemma-3-270m-it-onnx');
// Generate emojis
const output = await generator('I am so excited for the party!', {
max_new_tokens: 20,
});
console.log(output);
// Expected output: 😊🎉🎈
Training Data
This model was fine-tuned using the Gemma 3 270M Instruction Tuned model as a base. It was likely trained on a dataset of text-emoji pairs to learn the mapping between natural language sentiments/objects and their corresponding emoji representations.
Hardware & Optimization
-
Parameter Count: 270M (Ultra-compact)
-
Export Format: ONNX
-
Hardware Compatibility: CPU, WebGPU, NPU (via ONNX Runtime)
License
This model is built upon Google's Gemma model. Users must comply with the Gemma Terms of Use.
- License: Gemma Terms of Use / Apache 2.0 (Check original base model for specifics)
Model info
Created: 2025-11-25
Updated: 2025-11-26
View on Hugging FaceFiles (18)
Related models
More from manuelaschrittwieser
No other models by this author.