Bug 2564517

Summary: Review Request: fcitx5-slm-ime - Japanese input method for fcitx5 based on a small Transformer model
Product: [Fedora] Fedora Reporter: Osamu Ogasawara <osamu.ogasawara>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: package-review
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://github.com/oogasawa/fcitx5-slm-ime
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 177841    
Attachments:
Description Flags
fedora-review report (COPR build 11239791, fedora-rawhide-x86_64) none

Description Osamu Ogasawara 2026-11-01 07:48:39 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/oogasawa/fcitx5-slm-ime/fedora-rawhide-x86_64/11239791-fcitx5-slm-ime/fcitx5-slm-ime.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/oogasawa/fcitx5-slm-ime/srpm-builds/11239791/fcitx5-slm-ime-2.0.0-1.fc44.src.rpm

Description:
A Japanese kana-to-kanji input method editor (IME) powered by a small language
model (SLM): a character-level Transformer (encoder-decoder) of about 60
million parameters that converts hiragana into kanji-kana text. The model is
small enough to run on the CPU of an ordinary laptop or mini PC alone; no GPU
is needed. It runs on Linux, on top of fcitx5.

Conventional Japanese input methods first cut the typed hiragana into words
with a morphological analyzer, and choose the kanji using that cut. However, a
correct cut requires understanding the meaning of the whole sentence, and
understanding the meaning of the whole sentence requires a correct cut: there
is a circular dependency.

This program avoids this problem by using a small language model directly: the
small language model reads the typed hiragana and writes the kanji-kana text
together with the phrasal unit (bunsetsu) boundaries in one pass, with no
separate morphological analyzer.

Fedora Account System Username: oogasawa

COPR build (Fedora 43, 44, 45 and Rawhide, x86_64 and aarch64): https://copr.fedorainfracloud.org/coprs/build/11239791
The source package also builds slm-ime-model (noarch), the trained weights under CC-BY-SA-4.0; I have asked legal.org whether they can be packaged as content.
This is my first package, and I need a sponsor.

Comment 1 Osamu Ogasawara 2026-11-01 09:43:15 UTC
Created attachment 2162689 [details]
fedora-review report (COPR build 11239791, fedora-rawhide-x86_64)

fedora-review on the packages of COPR build 11239791 (fedora-rawhide-x86_64, prebuilt mode), full report attached.

- All automatic checks pass; the package installs, and both sources match upstream (SHA256).
- rpmlint: a spelling error for "bunsetsu", the Japanese word for the phrasal unit in the description, and no
  manual page for slm-ime-keys, a small helper that writes the table of the keys and opens it in a browser.
- The mock build was not run here because the review used the prebuilt packages; the package builds on COPR for
  Fedora 43, 44, 45 and Rawhide, x86_64 and aarch64.
- /usr/lib64/fcitx5/llm-ime.so is the fcitx5 addon, in the private addon directory of fcitx5, not a library.
- /usr/share/fcitx5 and its subdirectories are owned by fcitx5, which the package requires.

Comment 2 Osamu Ogasawara 2026-11-01 19:22:31 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/oogasawa/fcitx5-slm-ime/fedora-rawhide-x86_64/11241254-fcitx5-slm-ime/fcitx5-slm-ime.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/oogasawa/fcitx5-slm-ime/srpm-builds/11241254/fcitx5-slm-ime-2.0.1-1.fc44.src.rpm

Updated to 2.0.1: a letter typed during a conversion now commits the conversion and starts the next reading.

The training data of the model (the pairs of a reading and a sentence) is now published under CC BY-SA 4.0:
https://huggingface.co/datasets/oogasawa/fcitx5-slm-ime-training-data

COPR build (all chroots succeeded): https://copr.fedorainfracloud.org/coprs/build/11241254

Comment 3 Osamu Ogasawara 2026-11-02 01:41:59 UTC
Fedora Legal has answered the question about slm-ime-model on legal.org: the trained weights fit the category of "content", and CC-BY-SA-4.0 is an allowed-content license.

https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/QZ7ZQHCYTNZGE7G6UMB4RUNPIDE2VHEQ/

Comment 4 Osamu Ogasawara 2026-11-02 22:41:15 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/oogasawa/fcitx5-slm-ime/fedora-rawhide-x86_64/11246792-fcitx5-slm-ime/fcitx5-slm-ime.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/oogasawa/fcitx5-slm-ime/srpm-builds/11246792/fcitx5-slm-ime-2.1.0-1.fc44.src.rpm

Updated to 2.1.0:
- The candidate list opens once the model's candidates are in it, and its order does not change after that (before, Space and the number keys could choose another word than the one on the screen).
- Page Down and Page Up turn the pages of the candidate list; a number key chooses on the page shown.
- F5 shows the candidates of one kanji.
- Dictionary candidates that keep a small kana cut off from its syllable are no longer offered.
- Digits and punctuation typed twice stay as they are in the reading.

COPR build (all chroots succeeded): https://copr.fedorainfracloud.org/coprs/build/11246792