Skip to content

Commit

Permalink
Support LLM on Ubuntu 24.10
Browse files Browse the repository at this point in the history
requirements.txt
setup/ibus-postinst-hiragana.in
  • Loading branch information
ShikiOkasaka committed Oct 31, 2024
1 parent 8c556a0 commit fa17c18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
PyGObject
packaging >= 20.9
fugashi[unidic-lite] == 1.3.2
dill == 0.3.9
transformers[torch] == 4.44.2
1 change: 1 addition & 0 deletions setup/ibus-postinst-hiragana.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ mkdir -p $PKGDATAHOME
@PYTHON@ -m venv --system-site-packages $PKGDATAHOME/venv
source $PKGDATAHOME/venv/bin/activate
echo "Installing requirements"
python -m pip install unidic-lite==1.0.8
python -m pip install -r @prefix@/share/ibus-hiragana/requirements.txt
python <<EOF
from transformers import AutoModelForMaskedLM, AutoTokenizer
Expand Down

0 comments on commit fa17c18

Please sign in to comment.