pip install transformers fork: Permission denied (publickey)
Would be good to know that this all seems for Linux only and immediately throws an error on Windows. (Needs some escaped chars?)
Invalid requirement: "'transformers": Expected package name at the start of dependency specifier 'transformers
Ubuntu 24.04: I checked that the transformers repo is public. Cmd looks exotic. What goes wrong?
Running...
G.
(xlstm) gy@gnu24:~/dl/LinuxSetup$ pip install 'transformers @ git+ssh://[email protected]/NX-AI/transformers.git@integrate_xlstm'
Collecting transformers@ git+ssh://@github.com/NX-AI/transformers.git@integrate_xlstm
Cloning ssh://@github.com/NX-AI/transformers.git (to revision integrate_xlstm) to /tmp/pip-install-2i23szpi/transformers_fa5295df2e654943b16dd5bcf288cbd1
Running command git clone --filter=blob:none --quiet 'ssh://****@github.com/NX-AI/transformers.git' /tmp/pip-install-2i23szpi/transformers_fa5295df2e654943b16dd5bcf288cbd1
The authenticity of host 'github.com (140.82.121.4)' can't be established.
...key fingerprint is SHA256:+...
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com' (...) to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
error: subprocess-exited-with-error
Γ git clone --filter=blob:none --quiet 'ssh://****@github.com/NX-AI/transformers.git' /tmp/pip-install-2i23szpi/transformers_fa5295df2e654943b16dd5bcf288cbd1 did not run successfully.
β exit code: 128
β°β> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Γ git clone --filter=blob:none --quiet 'ssh://****@github.com/NX-AI/transformers.git' /tmp/pip-install-2i23szpi/transformers_fa5295df2e654943b16dd5bcf288cbd1 did not run successfully.
β exit code: 128
β°β> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
The cause is likely that you do not have a github account or any ssh key in your shell linked to github - so the repo cannot be cloned via ssh.
Please use:
pip install 'transformers @ git+https://github.com/NX-AI/transformers.git@integrate_xlstm'
I will update this also in the main description.
Thanks for the light-speed late-evening response and the immediate HF docs update!
I spent the morning to test variants:pip install 'transformers @ git+https://github.com/NX-AI/transformers.git@integrate_xlstm'
#DOES work for me on Ubuntu 24.04
I do have a Github account and ssh user@machine
does work with a fingerprint for my gadgets, but didn't try anything such with GH so far.
Naturally I began with inference and I expected this to work on Windows, but for this the pip
needs another twist:pip install git+https://[email protected]/NX-AI/transformers.git@integrate_xlstm#egg=transformers
#DOES work on Windows 11; not tested on Ubuntu
Finally, for this response: The native PyTorch example lacks the AutoConfig import.from transformers import AutoModelForCausalLM, AutoTokenizer, AutoConfig
Then it began to download the model files, but didn't get very far due to some Internet hickup.
Mahlzeit! ;-)
PS 13:15: Almost got to run the inference example on Ubuntu with the model local, but it won't auto-span my 2 x 20GB RTX 4000. Difficult?
G.