Instructions to use Sankar-2910/genz-translator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sankar-2910/genz-translator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sankar-2910/genz-translator")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Sankar-2910/genz-translator") model = AutoModelForCausalLM.from_pretrained("Sankar-2910/genz-translator", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Sankar-2910/genz-translator with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Sankar-2910/genz-translator:Q4_K_M # Run inference directly in the terminal: llama cli -hf Sankar-2910/genz-translator:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Sankar-2910/genz-translator:Q4_K_M # Run inference directly in the terminal: llama cli -hf Sankar-2910/genz-translator:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Sankar-2910/genz-translator:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Sankar-2910/genz-translator:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Sankar-2910/genz-translator:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Sankar-2910/genz-translator:Q4_K_M
Use Docker
docker model run hf.co/Sankar-2910/genz-translator:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Sankar-2910/genz-translator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sankar-2910/genz-translator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sankar-2910/genz-translator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Sankar-2910/genz-translator:Q4_K_M
- SGLang
How to use Sankar-2910/genz-translator with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Sankar-2910/genz-translator" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sankar-2910/genz-translator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Sankar-2910/genz-translator" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sankar-2910/genz-translator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use Sankar-2910/genz-translator with Ollama:
ollama run hf.co/Sankar-2910/genz-translator:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Sankar-2910/genz-translator with Docker Model Runner:
docker model run hf.co/Sankar-2910/genz-translator:Q4_K_M
- Lemonade
How to use Sankar-2910/genz-translator with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Sankar-2910/genz-translator:Q4_K_M
Run and chat with the model
lemonade run user.genz-translator-Q4_K_M
List all available models
lemonade list
- Atomic Chat
- π GenZ Translator
- β¨ See it in action
- π Model Overview.
- π― What it's good at
- ποΈ Built from Scratch
- π Training Data
- π€ Custom Tokenizer
- π Performance
- π¦ Available Files
- β‘ Quick Start
- π‘ Best Prompt Format
- π» Hardware
- β οΈ Limitations
- π Citation
- β€οΈ Built by a Student
π GenZ Translator
A 26.1M parameter language model trained entirely from scratch to translate Gen Z slang into clear, standard English.
Why this model??
Most public language models start from billions of pretrained weights.
This one doesn't.
Every one of its 26.11 million parameters began as random numbers and learned exclusively from a curated Gen Z β English translation dataset.
Built specifically for:
- β‘ Local inference
- π§ Slang translation
- π» GGUF & llama.cpp
- π¦ Ollama
- π€ Transformers.
β¨ See it in action
| Gen Z | Standard English |
|---|---|
no cap |
I'm being completely honest. |
say less, I'm tryna vibe |
I understand, I'm trying to relax. |
she's mogging everyone |
She's outshining everyone by looking better. |
that's straight cap |
That's an outright lie. |
after the argument she crashed out |
After the argument she had an emotional outburst. |
The goal isn't to sound like ChatGPT.
The goal is to preserve meaning while removing slang naturally.
π Model Overview.
| Property | Value |
|---|---|
| Architecture | Llama-style Decoder-only Transformer |
| Parameters | 26.07M |
| Layers | 7 |
| Hidden Size | 448 |
| Attention Heads | 7 |
| Context Length | 384 |
| Vocabulary | 8,000 |
| Tokenizer | Custom Byte-Level BPE |
| Training | From Scratch |
| Quantizations | F16 & Q8_0 |
π― What it's good at
The model is intentionally specialized.
Excels at
- β Gen Z slang
- β TikTok vocabulary
- β Internet abbreviations
- β Meme language
- β Social media captions
- β Paragraph rewriting
Not designed for
- β General chatting
- β Coding
- β Mathematics
- β Knowledge retrieval
- β Long conversations
Think of it as a translator, not a general assistant.
ποΈ Built from Scratch
This is the project's biggest differentiator.
Instead of fine-tuning Llama, Qwen, or Mistral, the entire network was trained from random initialization.
That means:
- Custom tokenizer
- Custom vocabulary
- No inherited knowledge
- Every weight learned only from the translation dataset
Architecture
Layers 7
Hidden Size 448
Attention Heads 7
KV Heads 7
Intermediate Size 1792
Context Length 384
Vocabulary 8000
Activation SiLU
RoPE β
RMSNorm β
Tied Embeddings β
Although it follows the Llama architecture, it does not reuse Meta's pretrained weights.
π Training Data
The model learned from 139,074 cleaned instruction-response pairs.
Split
| Split | Size |
|---|---|
| Train | 90% |
| Validation | 5% |
| Test | 5% |
The split was deterministic using a fixed seed and stratified by instruction type.
Two prompt styles were used consistently:
- Single-sentence translation
- Paragraph translation
Example training prompt:
<s><|instruction|>Translate the following Gen Z slang sentence into clear, standard English.<|input|>bro that fit is so mid ngl<|response|>
Keeping one prompt format helped the model specialize instead of behaving like a chatbot.
π€ Custom Tokenizer
The tokenizer wasn't borrowed either.
It was trained exclusively on the Gen Z dataset.
| Property | Value |
|---|---|
| Type | Byte-Level BPE |
| Vocabulary | 8,000 |
| Training Data | Only this dataset |
Because of this custom tokenizer, additional compatibility work was required for GGUF conversion and llama.cpp support.
π Performance
Internal evaluation on 50 randomly sampled test examples showed:
| Metric | Score |
|---|---|
| Exact Match | 69% |
| Semantic Match | ~97% |
| Crash Stability | 100% |
The exact-match metric is intentionally strict.
Many "incorrect" outputs are actually valid paraphrases.
Example:
Input
say less
Output
I understand.
Different wording.
Same meaning.
π¦ Available Files
| File | Purpose |
|---|---|
model.safetensors |
Hugging Face model |
config.json |
Model configuration |
tokenizer.json |
Custom tokenizer |
genz-translator-f16.gguf |
Full precision |
genz-translator-q8_0.gguf |
Recommended GGUF |
Recommended download
genz-translator-q8_0.gguf
Best balance between quality and local CPU performance.
β‘ Quick Start
π€ Transformers
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
repo = "Sankar-2910/genz-translator"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo)
prompt = (
"<s><|instruction|>"
"Translate the following Gen Z slang sentence into clear, standard English."
"<|input|>no cap"
"<|response|>"
)
inputs = tokenizer(prompt, return_tensors="pt")
with torch.no_grad():
output = model.generate(
**inputs,
max_new_tokens=64,
do_sample=False,
temperature=0,
eos_token_id=tokenizer.eos_token_id,
pad_token_id=tokenizer.eos_token_id
)
print(tokenizer.decode(
output[0][inputs.input_ids.shape[1]:],
skip_special_tokens=True
))
Output:
I'm being completely honest.
π¦ llama.cpp
llama-cli \
-m genz-translator-q8_0.gguf \
-p "<s><|instruction|>Translate the following Gen Z slang sentence into clear, standard English.<|input|>bro that fit is so mid ngl<|response|>" \
-n 96
βοΈ Ollama
Create a Modelfile.
FROM ./genz-translator-q8_0.gguf
TEMPLATE """<s><|instruction|>Translate the following Gen Z slang sentence into clear, standard English.<|input|>{{ .Prompt }}<|response|>"""
PARAMETER temperature 0
PARAMETER num_predict 160
PARAMETER stop "</s>"
Build:
ollama create genz-translator -f Modelfile
Run:
ollama run --raw genz-translator "bro that fit is so mid ngl"
Using --raw preserves the original training prompt format.
π‘ Best Prompt Format
Use the same structure the model was trained on.
<s><|instruction|>Translate the following Gen Z slang sentence into clear, standard English.<|input|>no cap<|response|>
Avoid chat-style prompts.
The model is optimized for single-turn translation, not conversational memory.
π» Hardware
This model was designed for lightweight local inference.
| Quantization | Approx. Memory |
|---|---|
| Q8_0 | ~30 MB |
| F16 | ~50 MB |
Recommended settings:
- 4β8 CPU threads
temperature=0num_predictβ160
β οΈ Limitations
Being trained from scratch on a specialized dataset means:
- rare slang may vary by context,
- ambiguous abbreviations (like OP) depend on surrounding text,
- long generations can truncate if token limits are too low,
- general world knowledge is intentionally limited.
The trade-off is specialization: small, fast, and purpose-built.
π Citation
If you use this model in research, please cite:
@misc{genztranslator2026,
title={GenZ Translator},
author={Sankar Narayanan},
year={2026},
note={26M parameter decoder-only transformer trained entirely from scratch for Gen Z slang translation},
url={https://huggingface.co/Sankar-2910/genz-translator}
}
If referencing the underlying architecture:
@article{touvron2023llama,
title={LLaMA: Open and Efficient Foundation Language Models},
author={Touvron, Hugo and others},
journal={arXiv preprint arXiv:2302.13971},
year={2023}
}
β€οΈ Built by a Student
. This project was created by Sankar Narayanan as an exploration of training compact language models from scratch, custom tokenization, GGUF deployment, and local AI inference.
If you build something with it, I'd love to see it.
- Downloads last month
- 2,911