Skip to content

Releases

1.2.1

Choose a tag to compare

@mitmul mitmul released this 30 Nov 08:28
9e0594e

Interactive sessions with PLaMo 3 on MLX no longer pile up GPU memory, and each turn prefills only what is new.

Highlights

  • Memory stays bounded in interactive mode. In 1.2.0, the MLX server kept more GPU memory after every turn of an interactive session, as reported in #41. Each PLaMo 3 request now returns MLX's cached buffers when it ends. (#42)
  • Turns reuse the history they share. Interactive mode sends the whole history with every request, and 1.2.0 prefilled all of it each time. The MLX server now keeps the previous request's keys and values and prefills only the tokens after the prefix that the new prompt shares with them. (#44, #45)
    • In every session compared, at 4bit and bf16, the 384 translations were identical to those of a full prefill.
    • The sliding-window layers keep the last 2,048 tokens. Once a request has passed that length, the server can go back at most one token, so a prompt that shares less is prefilled from the start, as in 1.2.0.
    • The server keeps one sequence. Clients that alternate on a shared server reuse only the prompt header they have in common.
    • Set PLAMO_TRANSLATE_CLI_PROMPT_CACHE=0 to prefill every request from the start. The server rejects values other than 0 and 1 before loading the model.
  • scripts/build_llama_cpp.sh builds again. A fresh build failed while downloading llama-server's web UI: the assets now published no longer match what the pinned llama.cpp checks for. The script now leaves out the web UI, which the CLI does not use, and downloads nothing from Hugging Face. A build directory left by the failed build recovers without cleaning. (#43)

With the 20 sentences from #41, pfnet/plamo-3-translate-2b at 4bit, on an M1 Max with 64 GB:

1.2.0 1.2.1
Server footprint 2 s after the session 31 GB 2.3 GB
Highest footprint during the session 31 GB 2.5 GB
20 turns, driving stream() directly 11.4–11.5 s 3.9–4.0 s

These ran with mlx 0.31.1, the version in uv.lock; installs from PyPI currently resolve mlx 0.32.x (see Validation). Both changes apply to PLaMo 3 on MLX. PLaMo 2 and the llama.cpp backend are unchanged.

Changes to note when upgrading

  • Running servers: stop a plamo-translate server started by 1.2.0 (Ctrl+C in its terminal). Clients keep using a running server, so they would keep its old behavior.
  • Prompt reuse: the keys and values of generated tokens now come from decoding instead of a prefill, so the numerics differ slightly. Translations were identical in every turn measured. If one ever differs, PLAMO_TRANSLATE_CLI_PROMPT_CACHE=0 restores 1.2.0's full prefill.

Thanks

Many thanks to @kmahara for the detailed report in #41: exact reproduction steps, in-process measurements that traced the growth to MLX's buffer cache, and the fix that 1.2.1 applies. The report's observation that every turn prefills the whole history again also led to the prompt reuse in #44.

Model license

The CLI is licensed under Apache-2.0. The models it downloads are under the PLaMo Community License, as in 1.2.0. Commercial use is free after registration when the revenue or sales of the user or its affiliates in the most recent fiscal year were 1 billion yen or less; above that, it needs a separate agreement with PFN. See the License section of the README; the license text is authoritative.

Install or upgrade

In a Python 3.10–3.14 environment:

python -m pip install --upgrade plamo-translate==1.2.1
plamo-translate --version
plamo-translate --from English --to Japanese --input "Proud, but humble"

If you installed it with uv tool, run uv tool upgrade plamo-translate instead.

The package is available on PyPI. The same wheel and its SHA-256 checksum are attached below. On Linux and Intel Macs, install llama-server b11960 or newer first; see Installation.

Validation

The release commit (9e0594e) passed all 20 jobs of CI on main:

  • Real-model tests ran on Python 3.13: MLX on a macOS runner, and llama.cpp on Linux (CPU, the pinned b11960 build) and macOS (Metal, Homebrew).
  • The wheel installed and passed the mock-server tests on macOS and Linux, with Python 3.10 to 3.14.

After publication, pip installed 1.2.1 from PyPI into a fresh Python 3.14 environment on an M1 Max. It resolved mlx 0.32.5 and mlx-lm 0.31.3.

  • The downloaded wheel matches the attached one.
  • pip check passed, and PyTorch was not installed.
  • With the default model, it translated:
    • "Proud, but humble" into čŠ‡ã‚ŠéŦ˜ãã€čŽ™č™šãŦ;
    • GitHub ãŪ README ã‚’čŠ­ã‚“ã§ãã ã•ã„ã€‚ into "Please read the GitHub README.";
    • "completions" from standard input into åŪŒäš† (#10).
  • With a running server, the 20 sentences from #41 took 6 s through --interactive, including the client's start. The server's footprint was 2.45 GB before the session, at most 2.73 GB in 1-second samples during it, and 2.33 GB after it.

Full changelog: 1.2.0...1.2.1

1.2.0

Choose a tag to compare

@mitmul mitmul released this 06 Nov 08:32
8278892

PLaMo 3 Translate is now the default model, on both MLX and llama.cpp.

Highlights

  • PLaMo 3 Translate 2B by default. Without --model or PLAMO_TRANSLATE_CLI_MODEL_NAME, the MLX backend translates with pfnet/plamo-3-translate-2b, and llama.cpp with pfnet/plamo-3-translate-2b-GGUF Q4_K_M (1.81 GB). (#31, #32, #35)

  • MLX on Apple Silicon.

    • The first run downloads the original weights (5.8 GB) into the Hugging Face cache before the server starts, showing their size and progress.
    • Each load quantizes the weights to --precision, 4bit by default. Loading at 4bit peaks at about 2.6 GB of MLX memory; bf16 peaks at 6.0 GB.
    • Greedy decoding at 4bit runs on fused Metal kernels: 170 tok/s on M1 Max, against 107 tok/s with plain MLX ops. A startup self-check compares the two, and falls back to plain ops if they disagree.

    (#31, #38, #39)

  • llama.cpp.

    • --backend-type llama.cpp runs PLaMo 3 GGUFs without conversion. --model also accepts <user>/<repo>[:QUANT or file.gguf], besides local files.
    • With the default model, server and interactive modes also download and load the 0.8B GGUF (Q4_0, 0.55 GB) as a speculative-decoding draft. Choose another draft with the new --draft-model option, or turn it off with --draft-model none.
    • PLaMo 3 needs llama-server b11960 (Homebrew 0.8.0) or newer. CI tests Homebrew's build on Apple Silicon. The RoPE patch in scripts/build_llama_cpp.sh is only needed for PLaMo 2.

    (#35, #36)

  • Long inputs on llama.cpp. llama.cpp rounds PLaMo 3's YaRN correction range, an error that grows with input length. Beyond about 8,000 tokens, it moved predictions more than Q4_K_M quantization did. The backend now passes options that bring the range to the nearest whole dimensions. (#37)

  • Automatic direction. With the default English|Japanese, the target language is chosen from the text's grammar. Japanese that names products or commands, such as GitHub ãŪ README ã‚’čŠ­ã‚“ã§ãã ã•ã„ã€‚, is translated into English. (#31, #38)

  • Linux and Intel Macs.

    • The wheel is now pure Python (py3-none-any).
    • MLX and numba install only on Apple Silicon, and other platforms use llama.cpp by default.
    • Without TMPDIR, as is usual on Linux, server state goes to /tmp/plamo-translate-<uid>/.

    (#38)

Changes to note when upgrading

  • Running servers: stop a plamo-translate server started by an earlier version (Ctrl+C in its terminal). Clients keep using a running server's model, so they would keep translating with PLaMo 2.
  • Precision and PLaMo 2: --precision and PLAMO_TRANSLATE_CLI_PRECISION now apply to the default PLaMo 3 model, and no longer select a PLaMo 2 release. With PLaMo 3, bf16 computes in FP16. (#32)
    • To keep PLaMo 2, pass --model mlx-community/plamo-2-translate (or -8bit, -bf16), or set PLAMO_TRANSLATE_CLI_MODEL_NAME.
  • Quantized PLaMo 3 checkpoints: the MLX backend quantizes original weights on each load. It rejects pre-quantized checkpoints such as pfnet/plamo-3-translate-2b-MLX-4bit.
  • Japanese(easy): it is not on the PLaMo 3 model card's language list. The CLI still passes it to PLaMo 3, as ja(easy).
  • llama.cpp defaults (#35):
    • On Apple Silicon with GPU layers, llama-server now runs 2 CPU threads instead of 8. Pass --threads for partial offload.
    • With PLAMO_TRANSLATE_CLI_TEMP above 0, llama.cpp's default min-p of 0.05 is no longer applied, matching MLX.
  • macOS 13: MLX needs macOS 14 or later. On an Apple Silicon Mac with macOS 13, pip install plamo-translate==1.2.0 fails to resolve, and an unpinned install picks 1.0.5, which has no PLaMo 3.
  • Windows is not supported. The CLI exits with a message pointing to WSL.

Model license

The CLI is licensed under Apache-2.0. The models it downloads are under the PLaMo Community License. These include the defaults (PLaMo 3 Translate 2B, its GGUF and the 0.8B draft GGUF) and the PLaMo 2 Translate models.

  • The license counts use within an organization as commercial use.
  • Commercial use is free after registration when the revenue or sales of the user or its affiliates in the most recent fiscal year were 1 billion yen or less.
  • Above that, it needs a separate agreement with PFN.

The License section of the README summarizes the other conditions, on published translations and on providing the models or their output to others. The license text is authoritative.

Install or upgrade

In a Python 3.10–3.14 environment:

python -m pip install --upgrade plamo-translate==1.2.0
plamo-translate --version
plamo-translate --from English --to Japanese --input "Proud, but humble"

If you installed it with uv tool, run uv tool upgrade plamo-translate instead.

The package is available on PyPI. The same wheel and its SHA-256 checksum are attached below.

On Linux and Intel Macs, install llama-server b11960 or newer first:

  • CI tests the revision that scripts/build_llama_cpp.sh builds, on Linux.
  • Homebrew (brew install llama.cpp) has not been tested on Linux or Intel Macs.

See Installation.

Validation

The release commit (8278892) passed all 20 jobs of CI on main:

  • Real-model tests ran on Python 3.13: MLX on a macOS runner, and llama.cpp on Linux (CPU, the pinned b11960 build) and macOS (Metal, Homebrew).
  • The wheel installed and passed the mock-server tests on macOS and Linux, with Python 3.10 to 3.14.

After publication, pip installed 1.2.0 from PyPI into a fresh Python 3.14 environment on an M1 Max:

  • The downloaded wheel matches the attached one.
  • pip check passed, and PyTorch was not installed.
  • With the default model, it translated:
    • "Proud, but humble" into čŠ‡ã‚ŠéŦ˜ãã€čŽ™č™šãŦ;
    • GitHub ãŪ README ã‚’čŠ­ã‚“ã§ãã ã•ã„ã€‚ into "Please read the GitHub README.";
    • "completions" from standard input into åŪŒäš† (#10).

Full changelog: 1.1.1.post1...1.2.0

1.1.1.post1

Choose a tag to compare

@mitmul mitmul released this 26 Oct 00:14
3bb2e7b

Update the PyPI summary and README introduction to:

A command-line interface for local translation powered by plamo-2-translate, a PFNâ„Ē translation model

This post-release corrects project metadata and documentation. Translation behavior and dependencies are unchanged from 1.1.1.

Validation: wheel metadata and README checks, fresh Python 3.14 installation, dependency consistency, CLI startup, and comparison against the published 1.1.1 wheel. The macOS arm64 distribution tag is preserved.

1.1.1

Choose a tag to compare

@mitmul mitmul released this 10 Oct 19:08
0dab27e

Fixes the normal pip installation failure reported in #27. Version 1.1.0 had conflicting Transformers requirements, which could cause an unpinned install to fall back to 1.0.5.

Fixes

  • Support Transformers 5 and remove the uv-only dependency override, allowing ordinary pip dependency resolution.
  • Load the PLaMo tokenizer without importing the checkpoint's unused PyTorch model configuration. MLX translation does not require PyTorch.
  • Retain the compatible mlx-lm 0.31.x range and MCP <2 constraint.
  • Add clean distribution-wheel installation and tests on macOS/Linux with Python 3.10–3.14. The main-branch real-model integration job now tests the installed wheel as well.

Implementation: #28.

Install or upgrade

python -m pip install --upgrade plamo-translate==1.1.1
python -m pip check
plamo-translate --version

Available on PyPI. The release artifact remains a macOS Apple Silicon wheel. Linux wheel checks exercise package installation and mock tests; this release does not claim a new Linux/Intel inference distribution.

Stop an existing plamo-translate server before testing the updated installation, so the client uses the new runtime. No dependency override, --no-deps, or manual PyTorch installation is needed.

Thanks

Many thanks to @omonomo for the detailed report, exact reproduction steps, correct dependency diagnosis, and workaround in #27. This contribution identified a gap in our release validation and helped us add checks that protect future releases.

Post-publication validation

A fresh Python 3.14.8 / pip 26.2.1 venv on Apple M1 Max installed the published package from PyPI with unpinned ordinary pip and selected 1.1.1. pip check passed, PyTorch was absent, and the downloaded wheel hash matched the release artifact. All 62 unit/mock/numerical tests and 2 real-model CLI integration tests passed against that installed package.

The 4-bit model at revision 900f34ccc16d4e8592b1baa38889e2f53f6717e8 completed the long translation fixture at EOS, preserved eight paragraphs and the checked names, and produced matching full text through direct inference and both CLI output modes. Japanese-to-English translation also passed. These local checks cover specific regressions, not general translation quality.

The release PR CI passed all 17 applicable jobs, including ten clean wheel-install combinations. Hosted real-model CI runs separately on main; the real-model results above are from the published PyPI package tested locally.

1.1.0

Choose a tag to compare

@mitmul mitmul released this 07 Oct 09:39

Highlights

  • Add a native llama.cpp backend for local GGUF inference, with Metal acceleration on Apple Silicon, using the existing CLI and MCP interface. Streaming, batch, interactive, and one-shot translation are supported. (#23)
  • Add a reproducible llama.cpp build and GGUF conversion workflow. The tested runtime includes a PLaMo 2 RoPE loader fix; the recommended Q4_0-ssm-f16 recipe retains the Mamba output projections in F16. See the setup instructions before using this backend.
  • Correct MLX PLaMo 2 inference, including RoPE settings, Mamba state handling, BF16 activations, and BOS prompting. Add local model selection, additional precision modes, and validated standalone 4bit, 8bit, and BF16 model workflows. (#22, #24)
  • Refresh Python 3.10–3.14 support, pin Transformers below version 5 and MCP below version 2, suppress optional GPU dependency warnings, and improve CLI configuration and regression coverage. (#17, #18, #19, #20, #21)

Install or upgrade

python -m pip install --upgrade plamo-translate==1.1.0

Available on PyPI. The same macOS arm64 wheel and its SHA-256 checksum are attached below.

Using llama.cpp

After building the patched runtime and preparing a GGUF model as described in the setup instructions:

plamo-translate server --backend-type llama.cpp \
  --llama-server /path/to/llama-server \
  --model /path/to/plamo-2-translate-Q4_0-ssm-f16.gguf

# In another terminal:
plamo-translate --from English --to Japanese --input 'Hello, world!'

MLX remains the default backend on macOS. The wheel targets macOS 11 or later on Apple Silicon. llama.cpp binaries and model weights are prepared separately.

See the recorded llama.cpp measurements for quality and performance evidence, including the limits of the single-example evaluation.

Full changelog: 1.0.5...1.1.0

1.0.5

Choose a tag to compare

@mitmul mitmul released this 18 Oct 05:21

What's Changed

  • Add --trust-remote-code to mlx-lm by @niw in #12
  • Bump version to 1.0.5 by @mitmul in #13

New Contributors

  • @niw made their first contribution in #12

Full Changelog: 1.0.4...1.0.5

1.0.4

Choose a tag to compare

@mitmul mitmul released this 29 Jun 08:19

What's Changed

New Contributors

Full Changelog: 1.0.3...1.0.4

1.0.3

Choose a tag to compare

@mitmul mitmul released this 20 Jun 07:09

What's Changed

  • Make the timeout minutes longer for CI by @mitmul in #5
  • Add uv tool install by @nzw0301 in #6
  • fix: Use sys.executable for mlx_lm subprocess call by @devoc09 in #7

New Contributors

Full Changelog: 1.0.2...1.0.3

1.0.2

Choose a tag to compare

@mitmul mitmul released this 10 Jun 03:31

What's Changed

  • Update README and package description by @mitmul in #4

Full Changelog: 1.0.1...1.0.2

1.0.1

Choose a tag to compare

@mitmul mitmul released this 10 Jun 02:19

What's Changed

New Contributors

  • @mitmul made their first contribution in #1

Full Changelog: 1.0.0...1.0.1

What's Changed

New Contributors

  • @mitmul made their first contribution in #1

Full Changelog: 1.0.0...1.0.1