unslothai / unsloth

Finetune Llama 3, Mistral, Phi & Gemma LLMs 2-5x faster with 80% less memory
https://unsloth.ai
Apache License 2.0
12.35k stars 799 forks source link

Conda Installation #395

Open bywmm opened 2 months ago

bywmm commented 2 months ago

Hi there, I follow your instruction to install unsloth. When using pip install "unsloth[conda] @ git+https://github.com/unslothai/unsloth.git", I meet the following error. Can you give me any suggestion for this issue?

Collecting unsloth[conda]@ git+https://github.com/unslothai/unsloth.git
  Cloning https://github.com/unslothai/unsloth.git to /tmp/pip-install-4dfu3ocp/unsloth_53a65e86402d49509c7e9f94556a3429
  Running command git clone --filter=blob:none --quiet https://github.com/unslothai/unsloth.git /tmp/pip-install-4dfu3ocp/unsloth_53a65e86402d49509c7e9f94556a3429
  /usr/lib/git-core/git-remote-https: symbol lookup error: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0
  error: subprocess-exited-with-error

  × git clone --filter=blob:none --quiet https://github.com/unslothai/unsloth.git /tmp/pip-install-4dfu3ocp/unsloth_53a65e86402d49509c7e9f94556a3429 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 https://github.com/unslothai/unsloth.git /tmp/pip-install-4dfu3ocp/unsloth_53a65e86402d49509c7e9f94556a3429 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.
erwe324 commented 2 months ago

See this [https://stackoverflow.com/questions/75973072/unable-to-git-clone-by-symbol-lookup-error-lib-x86-64-linux-gnu-libp11-kit-so]()

Basically try this conda install -c anaconda git

And then try pip install