Run this model with HF Jobs

Run jyh8876/vinylo-e2b-lyrics on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/jyh8876/vinylo-e2b-lyrics. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/jyh8876/vinylo-e2b-lyrics on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/jyh8876/vinylo-e2b-lyrics. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/jyh8876/vinylo-e2b-lyrics. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Vinylo E2B Lyrics

On-device song-lyrics translation between Korean, English, Japanese and Chinese (12 directions), with a sung-pronunciation reading for every line, as JSON.

  • Original model: google/gemma-4-E2B-it (Google DeepMind, Apache 2.0). Fine-tuned and quantized derivative; not an official Google release.
  • Teacher: google/gemma-4-31B-it, which wrote the training lyrics and reference translations.
File Format Size Runtime
vinylo-e2b-lyrics-Q2_K-qat.gguf 2-bit QAT, 52k vocab 0.98 GB llama.cpp
vinylo-e2b-lyrics-Q5_K_M.gguf Q5_K_M + imatrix 3.62 GB llama.cpp
vinylo-e2b-lyrics-int4.litertlm int4 2.64 GB LiteRT-LM (Android)

Text only (no vision/audio encoders).

Size vs quality

Usage

llama-server -m vinylo-e2b-lyrics-Q2_K-qat.gguf -c 4096 -ngl 99 --port 8080
python example.py --target ko lyrics.txt     # one lyric line per text line

example.py builds the exact prompt below and sends 8-line chunks (greedy). Prompt (<TARGET> = Korean (ko), English (en), Japanese (ja) or Simplified Chinese (zh); the reading script is Hangul, Katakana, Pinyin or Latin letters):

<bos><|turn>system
You translate song lyrics for language learners.
Translate each numbered line into natural, idiomatic <TARGET>.
Rules:
- Keep the meaning, tone and register of the song; prefer natural phrasing over literal word order.
- Use the surrounding lines as context for pronouns, tense and slang.
- Return exactly one entry per input index. Never merge or split lines.
- If a line is already in <TARGET NAME>, return it with "copy": true and no translation.
- For every translated line also give "r": how the ORIGINAL line sounds when sung, written in <READING SCRIPT>. Transcribe the sound only; do not translate it. Leave "r" out when the original is already written in that script.
- Do not censor the original meaning.
Respond only with JSON: {"lines":[{"i":0,"t":"...","r":"..."},{"i":1,"copy":true}]}<turn|>
<|turn>user
0	時計の針が 胸を突き
1	眠れぬ夜の 迷い路(みじ)を行く<turn|>
<|turn>model

Output (Q2_K QAT, unedited):

{"lines":[{"i":0,"t":"시계 바늘이 가슴을 찔러","r":"토케이노 하리가 무네오 츠키"},{"i":1,"t":"잠 못 이루는 밤의 미로를 헤매네","r":"네무레누 요루노 미지오 오쿠"}]}

Benchmarks

129 held-out eight-line chunks (12 directions), greedy, llama.cpp. valid = passes the app's JSON/language validator; chrF = agreement with the teacher's translation (t) and reading (r).

Model Size valid % chrF t chrF r
Stock Gemma 4 E2B QAT Q4_0 (Google) 3.35 GB 67.4 33.0 34.7
This model, f16 (not uploaded) 9.27 GB 99.2 48.7 78.3
This model, Q5_K_M 3.62 GB 98.4 48.4 79.1
This model, Q2_K QAT 0.98 GB 100.0 48.4 82.0

LiteRT-LM int4 (mean over directions): 95.2 valid, 37.9 chrF t, 64.1 chrF r.

Per-direction chrF

QAT progress

Examples (Q2_K QAT, unedited)

Direction Original Translation Reading
ja→ko 酒に酔いしれて 夢を請う 술에 취해 꿈을 청하네 사케니 요이시레테 유메오 우타우 ✗
zh→ko 霓虹灯把影子拉得太长 像个还没睡醒的梦在游荡 네온사인이 그림자를 너무 길게 늘어뜨려, 깨어나지 못한 꿈이 방황하는 것 같아 니홍덩 바 잉즈 라더 타이창 샹거 하이메이 슈이싱더 멍 짜이 요우당
en→ja Sick of the games and the snakes in the grass 駆け引きも、裏切り者も、もううんざりだ シック オブ ザ ゲームズ アンド ザ スネイクス イン ザグラス
ko→en 금강산 옥빛보다 찬란한 내 자태여 My figure is more brilliant than the jade-green of Mount Songgang ✗ geumgangsan okbit-boda chanranhan nae jateyeo

✗ = error (請う should read 코우; 금강산 is Mount Geumgang). Inputs are lyrics written by the teacher, not real songs.

How it was made

  1. Data: the teacher wrote 600 original songs (150 per language) and translated each into the other three languages with the app prompt; ~5k validated examples.
  2. SFT: LoRA r=32 on the text decoder, merged.
  3. Q2_K QAT file:
    • vocabulary trimmed 262k → 52k (ko/ja/zh/en, byte fallback)
    • embeddings → Q4_0
    • decoder trained with 2-bit quantization-aware self-distillation in the exact ggml Q2_K format and written bit-exact into the GGUF

Limitations

  • Proper nouns are weak, especially in the 2-bit file (渋谷 → "Shinjuku", 浅草の雷門 → "Senso-ji Torii gate"). Use Q5_K_M when names matter.
  • Occasional homograph or reading errors; rare slang may stay untranslated.
  • Built for this prompt and ≤ 8 lines per request; not a chat model.

License

Apache 2.0, the same as the original model (Gemma 4 license). See LICENSE and NOTICE (attribution and list of modifications). Provided "as is", without warranty. Not affiliated with or endorsed by Google.

Downloads last month
437
GGUF
Model size
2B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

2-bit

5-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for jyh8876/vinylo-e2b-lyrics

Finetuned
(546)
this model