Text Generation
LiteRT-LM
GGUF
on-device
translation
lyrics
gemma4
distillation
quantization-aware-training
conversational
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.
Instructions to use jyh8876/vinylo-e2b-lyrics with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use jyh8876/vinylo-e2b-lyrics with LiteRT-LM:
# LiteRT-LM runs on various platforms (Android, iOS, Windows, Linux, macOS, IoT, Web/WASM) # and supports many APIs (C++, Python, Kotlin, Swift, JavaScript, Flutter). # For platform-specific integration guides, please refer to the official developer website: # https://ai.google.dev/edge/litert-lm # To try LiteRT-LM, the easiest way is to use our CLI tool. # 1. Install the LiteRT-LM CLI tool: pip install -U litert-lm # 2. Download and run this model locally: # See: https://ai.google.dev/edge/litert-lm/cli # A single .litertlm file in the repo is picked automatically; otherwise the CLI asks which one to run # (or pass its name right after the repo id). litert-lm run \ --from-huggingface-repo=jyh8876/vinylo-e2b-lyrics \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use jyh8876/vinylo-e2b-lyrics 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 jyh8876/vinylo-e2b-lyrics:Q2_K # Run inference directly in the terminal: llama cli -hf jyh8876/vinylo-e2b-lyrics:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf jyh8876/vinylo-e2b-lyrics:Q2_K # Run inference directly in the terminal: llama cli -hf jyh8876/vinylo-e2b-lyrics:Q2_K
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf jyh8876/vinylo-e2b-lyrics:Q2_K # Run inference directly in the terminal: ./build/bin/llama cli -hf jyh8876/vinylo-e2b-lyrics:Q2_K
Use Docker
docker model run hf.co/jyh8876/vinylo-e2b-lyrics:Q2_K
- Llama new
- LM Studio
- Jan
- vLLM
How to use jyh8876/vinylo-e2b-lyrics with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jyh8876/vinylo-e2b-lyrics" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jyh8876/vinylo-e2b-lyrics", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jyh8876/vinylo-e2b-lyrics:Q2_K
- Ollama
How to use jyh8876/vinylo-e2b-lyrics with Ollama:
ollama run hf.co/jyh8876/vinylo-e2b-lyrics:Q2_K
- Unsloth Desktop
- Pi
How to use jyh8876/vinylo-e2b-lyrics with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jyh8876/vinylo-e2b-lyrics:Q2_K
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "jyh8876/vinylo-e2b-lyrics:Q2_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use jyh8876/vinylo-e2b-lyrics with Docker Model Runner:
docker model run hf.co/jyh8876/vinylo-e2b-lyrics:Q2_K
- Lemonade
How to use jyh8876/vinylo-e2b-lyrics with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jyh8876/vinylo-e2b-lyrics:Q2_K
Run and chat with the model
lemonade run user.vinylo-e2b-lyrics-Q2_K
List all available models
lemonade list
- Hermes Agent
How to use jyh8876/vinylo-e2b-lyrics with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jyh8876/vinylo-e2b-lyrics:Q2_K
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default jyh8876/vinylo-e2b-lyrics:Q2_K
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use jyh8876/vinylo-e2b-lyrics with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jyh8876/vinylo-e2b-lyrics:Q2_K
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "jyh8876/vinylo-e2b-lyrics:Q2_K" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download example.py from jyh8876/vinylo-e2b-lyrics: direct link, hf CLI and curl.
- Browser
- Download file 3.26 kB
-
https://huggingface.co/jyh8876/vinylo-e2b-lyrics/resolve/main/example.py
- Command line
-
hf download hf://jyh8876/vinylo-e2b-lyrics/example.py
-
curl -L -o example.py https://huggingface.co/jyh8876/vinylo-e2b-lyrics/resolve/main/example.py
3.26 kB
| """Minimal client for vinylo-e2b-lyrics GGUF via llama-server (same prompt and chunking as the Vinylo app). | |
| 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 | |
| echo "ๆ่จใฎ้ใใ่ธใ็ชใ" | python example.py --target en - | |
| Prints one JSON object per line: {"i": index, "src": original, "t": translation, "r": reading} ("copy": true when the | |
| line is already in the target language). Standard library only.""" | |
| import argparse, json, sys, urllib.request | |
| LANGS = {"ko": "Korean", "en": "English", "zh": "Simplified Chinese", "ja": "Japanese"} | |
| READING = {"ko": "Hangul (Korean ๋ ์, e.g. ๅใฎๅใฏ โ ํค๋ฏธ๋ ธ ๋์)", "ja": "Katakana", | |
| "zh": "Pinyin with tone marks for Chinese lines, otherwise Latin letters"} | |
| def system_prompt(code): | |
| name = LANGS[code] | |
| return f'''You translate song lyrics for language learners. | |
| Translate each numbered line into natural, idiomatic {name} ({code}). | |
| 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 {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.get(code, "Latin letters (romanization)")}. 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}}]}}''' | |
| def translate_chunk(url, target, lines, start): | |
| user = "\n".join(f"{start + k}\t{t}" for k, t in enumerate(lines)) | |
| prompt = f"<|turn>system\n{system_prompt(target)}<turn|>\n<|turn>user\n{user}<turn|>\n<|turn>model\n" # server adds <bos> | |
| body = {"prompt": prompt, "temperature": 0, "top_k": 1, "n_predict": 1024, "stop": ["<turn|>"]} | |
| req = urllib.request.Request(url + "/completion", json.dumps(body).encode(), {"content-type": "application/json"}) | |
| text = json.load(urllib.request.urlopen(req, timeout=600))["content"] | |
| return {e["i"]: e for e in json.loads(text[text.find("{"):text.rfind("}") + 1])["lines"]} | |
| def main(): | |
| ap = argparse.ArgumentParser() | |
| ap.add_argument("file", help="lyrics file, one line per lyric line ('-' = stdin)") | |
| ap.add_argument("--target", required=True, choices=LANGS) | |
| ap.add_argument("--url", default="http://127.0.0.1:8080") | |
| ap.add_argument("--chunk", type=int, default=8, help="lines per request (the model was trained on 8)") | |
| a = ap.parse_args() | |
| src = [l.rstrip("\n") for l in (sys.stdin if a.file == "-" else open(a.file, encoding="utf-8")) if l.strip()] | |
| for s in range(0, len(src), a.chunk): | |
| got = translate_chunk(a.url, a.target, src[s:s + a.chunk], s) | |
| for i in range(s, min(s + a.chunk, len(src))): | |
| e = got.get(i, {}) | |
| print(json.dumps({"i": i, "src": src[i], **{k: v for k, v in e.items() if k != "i"}}, ensure_ascii=False)) | |
| if __name__ == "__main__": | |
| main() | |