お雑煮研究会

好きな焼肉は魚

pfnet/plamo-translate-cli を mise で管理する

先日 PFN からリリースされた plamo-translate-cli が大変便利なので使っている。

github.com

ところで私は PC の構成管理に mise を使っているので、plamo-translate-cli も mise で管理したい。

やってみたらできたので、やり方を紹介する。

やり方

こうするだけ。

注: README にもあるが、Python 3.13 以上だと sentencepiece を GitHub のソースからビルドする必要があるためそちらに合わせている

[tools]
"pipx:plamo-translate" = { version = "latest", uvx_args = "--with mlx_lm --with numba --with git+https://github.com/google/sentencepiece.git@2734490#subdirectory=python" }

[settings.pipx]
# default true  だが、うっかり pipx を使われると困るので
# 明示的に uvx を true にしている
uvx = true

interactive mode を使う際はこういう警告が出るが、python 環境に依存関係を入れずに uvx に解決させているので出ているだけ。 問題ないはず。

❯ plamo-translate
/Users/sushichan044/.local/share/mise/installs/python/3.13.5/bin/python: No module named mlx_lm

おわり

おわり