Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing dependencies #34

Open
VincyZhang opened this issue Apr 11, 2024 · 3 comments
Open

missing dependencies #34

VincyZhang opened this issue Apr 11, 2024 · 3 comments

Comments

@VincyZhang
Copy link
Owner

Describe the issue
When I use pip install intel-extension-for-transformers in a fresh conda environment, there are some packages missing that I have to manually install before I can run a model.

Please add these to setup.py as deps!

  • accelerate
  • neural-speed
  • gguf
  • there may be others, I installed some other things before I started writing these down

To reproduce, simply:

  • conda create -n itrex python=3.9
  • pip install intel-extension-for-transformers
  • Run the following 3-line python script:
from intel_extension_for_transformers.transformers import AutoModelForCausalLM

model_name = "meta-llama/Llama-2-7b-hf"

model = AutoModelForCausalLM.from_pretrained(model_name, load_in_4bit=True)
@NeuralChatBot
Copy link
Collaborator

The issue you're experiencing is due to the fact that the intel-extension-for-transformers package is not properly handling the installation of its dependencies. It seems like the package is missing some crucial dependencies that are required for it to function properly.

To resolve this issue, you should manually install these dependencies before installing the intel-extension-for-transformers package. Here's how you can do it:

pip install accelerate
pip install neural-speed
pip install gguf

After you've installed these dependencies, you should be able to install the intel-extension-for-transformers package without any issues:

pip install intel-extension-for-transformers

If you're using conda, you can create a new environment and install the dependencies and the intel-extension-for-transformers package in that environment:

conda create -n itrex python=3.9
conda activate itrex
pip install accelerate
pip install neural-speed
pip install gguf
pip install intel-extension-for-transformers

This should resolve the issue you're experiencing. If you have any other questions, feel free to ask.

If you need help, please @NeuralChatBot

@VincyZhang
Copy link
Owner Author

@NeuralChatBot

1 similar comment
@VincyZhang
Copy link
Owner Author

@NeuralChatBot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants