plamo-tr-local: a pipeable CLI that runs PLaMo 3 Translate fully offline
- Hardware
- Author's CPU measurements used an Intel Core Ultra 5 225U (14 logical CPUs); default threads are 3/4 of logical CPUs (10 on that machine), overridable with PLAMO_TR_LOCAL_THREADS
- Models & engines
- Default model size is 2b; 0.8b, 8b, and 31b are selectable with --model-size
Pinned llama-cpp-rs revision that includes llama.cpp v0.8.0 because crates.io 0.1.161 failed with `unknown tokenizer: 'plamo3'` - Key gotcha
- Model load time is paid on every CLI invocation (about 2.8–3.4 s in the author's table) and stacks if you translate many short paragraphs one process at a time; a long-running server is listed as future work.
What they built
When Preferred Networks released PLaMo 3 Translate weights on 2026-11-05, Conao3 wanted a shell-friendly way to run them without hand-building PFML3 prompts each time, after seeing kat0h pipe Claude replies through a local PLaMo.
plamo-tr-local (Apache-2.0) embeds llama.cpp via llama-cpp-rs, auto-downloads `pfnet/plamo-3-translate-<size>-GGUF` Q4_K_M into `~/.cache/plamo-tr-local` on Linux, and translates without an account or API key so source text never leaves the machine.
Long inputs are split on blank lines into chunks under 4,096 tokens, translated greedily, and rejoined with the original blank lines; glossary, context, writing style (plain/polite), and model size (0.8b–31b, default 2b) are CLI flags.
Setup
- Run with Nix (`nix run github:conao3/rust-plamo-tr-local -- ...`) or `cargo install --git https://github.com/conao3/rust-plamo-tr-local` (needs CMake, a C++ compiler, and libclang)
- Default model size is 2b; 0.8b, 8b, and 31b are selectable with --model-size
- Author's CPU measurements used an Intel Core Ultra 5 225U (14 logical CPUs); default threads are 3/4 of logical CPUs (10 on that machine), overridable with PLAMO_TR_LOCAL_THREADS
- Pinned llama-cpp-rs revision that includes llama.cpp v0.8.0 because crates.io 0.1.161 failed with `unknown tokenizer: 'plamo3'`
How it works
- Translate a string: `plamo-tr-local text translate-text --text '今日はいい天気ですね。'` and read the JSON `TranslatedText` field.
- Pipe stdin and extract the translation with jq: `echo "..." | plamo-tr-local text translate-text | jq -r .TranslatedText`.
- Pin terms with `--glossary Source=owner,Target=担当者` and Japanese formality with `--writing-style polite` or `plain`.
- Build with AVX2 on x86_64 Linux (`target-cpu=x86-64-v3`) so llama.cpp is not stuck on SSE2-only defaults that the author found 3–4× slower.
Results & numbers
- Example: Japanese `今日はいい天気ですね。` → `The weather is nice today, isn't it?`; an English sentence about staying home in the rain came back as natural Japanese.
- On the Core Ultra 5 225U, translating the MIT license text (English ~169 words / 252-token prompt) took about 6.9 s end-to-end with 0.8b (71 tok/s decode) and about 15.9 s with 2b (23 tok/s), medians of several runs.
- Thread sweep for the 2b MIT translation: 10 threads were fastest for decode; 14 threads were slightly slower on generation than 10.
Gotchas
- Model load time is paid on every CLI invocation (about 2.8–3.4 s in the author's table) and stacks if you translate many short paragraphs one process at a time; a long-running server is listed as future work.
- ojousama/Kansai dialect experiments via lang/form/context/few-shot did not produce those styles on 2B or 8B in the author's llama-server tests.
- Source text containing `<|plamo:` is rejected with exit code 254 because it collides with PFML3 delimiters.
- Generated translations that are published must mark PLaMo provenance under the PLaMo Community License; commercial use has revenue thresholds described in the post.
“文章を端末の外に出さずに訳したいときに使ってください。”— Conao3
Do it yourself
- Install plamo-tr-local with Nix or cargo from the public repo.
- Run one short `--text` translation so the GGUF caches locally.
- Pipe a real paragraph through stdin and confirm the JSON translation with the network unplugged if you need an offline check.
- Add glossary entries for product names before translating docs you care about.
$ echo "Since it's raining today, I think I'll relax at home and read a book." \
| plamo-tr-local text translate-text | jq -r .TranslatedText
今日は雨だから、家でゆっくり本を読んでいようと思う。Similar setups
Local PLaMo 3 Translate API plus a game diff-translator that keeps human edits
Tom's Go tools run PLaMo 3 Translate 0.8B via llama-server as a loopback HTTP API, then a second CLI retranslates only new or changed Godot strings while preserving manual and approved translations.
A private OpenAI-compatible LLM API on an AMD GPU with llama.cpp
A Vietnamese developer's notes on building llama.cpp for AMD cards, choosing between Vulkan and ROCm, and running llama-server as a locked-down systemd service that existing OpenAI SDK code can call.
llama.cpp 1.0 on a handheld PC's integrated GPU: 2x faster long prompts with flash attention
Before-and-after llama.cpp 1.0 tests on an MSI Claw's Intel Arc 140V found long prompts read about twice as fast only with flash attention on, and the new MoE cache lost to full GPU offload.
Typd: offline voice dictation where one fine-tuned Qwen3-ASR model in llama.cpp writes the finished text
Mehmet Dedeler built Typd, a GPL-3.0 Electron app for Windows and Apple-silicon Macs that runs a dictation model fine-tuned from Qwen3-ASR 1.7B in llama-server and pastes cleaned-up text into whatever app you're typing in.