!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

322 Members
https://github.com/nix-community/poetry2nix62 Servers

Load older messages


SenderMessageTime
9 Nov 2023
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howThis is what happens after I fix safetensors to be importable23:00:00
@k900:0upti.meK900
In reply to @matthewcroughan:defenestrate.it
ls result/lib/python3.11/site-packages/tokenizers
tokenizers/                         tokenizers_python-0.14.1.dist-info/ 

user: matthew 🌐 swordfish in privateGPT on  main [!?⇡] is 📦 v0.1.0 via 🐍 
✦ ❯ ls result/lib/python3.11/site-packages/tokenizers
__init__.py  __pycache__  tokenizers.cpython-311-x86_64-linux-gnu.so
That module is literally not there
23:01:38
@k900:0upti.meK900Why it's not there, I don't know 23:01:43
@k900:0upti.meK900But it isn't 23:01:45
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howhttps://huggingface.co/docs/tokenizers/api/models23:03:57
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howmaybe because it's a wheel?23:05:10
@k900:0upti.meK900Wheels generally don't make modules disappear 23:05:46
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howhttps://github.com/huggingface/tokenizers/blob/648b33a09ee8da40a5b4599054eb855a7a875ca5/bindings/python/src/models.rs#L84023:12:19
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howlooks like it's part of the rust code 23:12:39
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how

During the build log for tokenizers it says

python3.11-tokenizers> ⚠️  Warning: You're building a library without activating pyo3's `extension-module` feature. See https://pyo3.rs/v0.19.2/building_and_distribution.html#linking
python3.11-tokenizers> 🔗 Found pyo3 bindings
python3.11-tokenizers> 🐍 Found CPython 3.11 at /nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/bin/python3
python3.11-tokenizers>    Compiling autocfg v1.1.
23:14:26
@k900:0upti.meK900https://github.com/huggingface/tokenizers/blob/648b33a09ee8da40a5b4599054eb855a7a875ca5/bindings/python/py_src/tokenizers/models/__init__.py23:20:49
@k900:0upti.meK900No it's not23:20:51
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howthe transformers from nixpkgs can do this import, that is good 23:22:11
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how K900 ⚡️: I literally copy pasted the derivation form nixpkgs, and made an override like this transformers = super.pythonPackages.callPackage ./f.nix {}; 23:32:45
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howis that dumb, or a good debugging step?23:33:02
@k900:0upti.meK900Could work23:33:11
@k900:0upti.meK900Could also not work23:33:14
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how because in this case, the transformers can't import tokenizers.models and the one from nixpkgs can 23:33:23
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howthey seem in the logs to build the same 23:33:45
10 Nov 2023
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how K900 ⚡️: the reason is because the version of transformers in the poetry.lock of privateGPT is 0.14.1 01:00:02
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howwhereas the version that had the method is 0.14.0, not 0.14.101:00:04
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howthey removed the method it's looking for in 0.14.101:04:20
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howsemantic versioning fail01:04:21
@adis:blad.isadisbladisThis is really cool if I say so myself https://github.com/adisbladis/pdm2nix/tree/master/tests/nested-poetry 03:31:10
@adis:blad.isadisbladis a is a PDM project
b is a Poetry project
03:31:20
@adis:blad.isadisbladishttps://github.com/adisbladis/pdm2nix/blob/master/lib/lock.nix#L314-L32803:32:19
@connorbaker:matrix.org@connorbaker:matrix.org changed their display name from connor (he/him) (UTC-4) to connor (he/him) (UTC-5).12:33:39
@pareto-optimal-dev:matrix.orgpareto-optimal-devmatthewcroughan Your flake built for me just now, I thought you'd want to know. I don't do much python programming anymore though, so I'm not sure what to do at the python prompt it drops me into to further test PrivateGPT. I tried `import PrivateGPT` so that later I could do `dir(PrivateGPT)` and discover how to run it, but that didn't work.16:31:58
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how pareto-optimal-dev: python -m private_gpt 17:22:42
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howpython is not for the faint of heart, it's the hardest ecosystem and language ever devised17:23:09

Show newer messages


Back to Room ListRoom Version: 6