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

langchain-huggingface requires torch installaion #29471

Open
5 tasks done
marekb-sci opened this issue Jan 29, 2025 · 1 comment
Open
5 tasks done

langchain-huggingface requires torch installaion #29471

marekb-sci opened this issue Jan 29, 2025 · 1 comment
Labels
investigate Flagged for investigation.

Comments

@marekb-sci
Copy link

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangChain documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangChain rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code

pip install langchain-huggingface

Error Message and Stack Trace (if applicable)

No response

Description

I'm using LLM via inference api from huggingface https://huggingface.co/docs/api-inference/index
I can't use the langchain-huggingface as it has extremly have torch dependency, obsolete for my case

System Info

Python 3.9.18

@langcarl langcarl bot added the investigate Flagged for investigation. label Jan 29, 2025
@DarkDk123
Copy link

Similar issue! I mostly use langchain-huggingface for inference APIs.
And greatly annoyed by unnecessary large installations i.e. cuda liberaries etc.

There must be a minimal installation of langchain-huggingface as:

pip install langchain-huggingface[inference-api]

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

No branches or pull requests

2 participants