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

community: Chat Huggingface and HuggingFace TGI llms #15582

Closed
wants to merge 24 commits into from

Conversation

minhna1112
Copy link

@minhna1112 minhna1112 commented Jan 5, 2024

community:

  • Description:
  • The method _resolve_model_id() is only called when model_id is not explicitly defined, in order to avoid calling list_inference_endpoints when connecting HuggingFaceTextGenInference to a self-hosted TGI server.
  • For HuggingFaceTextGenInference clients that send request to a HuggingFace-deployed Inference Endpoints, a Bearer Token is needed for authorization.
  • More integrations tests is added for HuggingFaceTextGenInference
  • Issue: Referring to this current issue in HuggingFace TGI repo
  • Dependencies: No dependencies for this change
  • Twitter handle: @MinhN2804

Copy link

vercel bot commented Jan 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Feb 15, 2024 3:59pm

@minhna1112 minhna1112 marked this pull request as ready for review January 5, 2024 12:01
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. Ɑ: models Related to LLMs or chat model modules 🤖:improvement Medium size change to existing code to handle new use-cases labels Jan 5, 2024
@minhna1112
Copy link
Author

@hwchase17 Can you please help me merge this PR?

Copy link
Collaborator

@baskaryan baskaryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@minhna1112
Copy link
Author

@andrewrreed @baskaryan I have fixed the spelling error occurred during the last check.

minhna1112 and others added 5 commits January 24, 2024 13:31
- Re-lock the `libs/community/poetry.lock` file
- Add `text-generation` to `libs/community/pyproject.toml`
- Add `pytest` for `libs/community/tests/integration_tests/llms/test_huggingface_text_gen_inference.py`
- Re-lint and format
@minhna1112
Copy link
Author

@baskaryan I have pushed 0f9784c to resolve library diffs during CI. Just tell me if there are more things need to be changed. Thanks a lot!

@hwchase17 hwchase17 closed this Jan 30, 2024
@baskaryan baskaryan reopened this Jan 30, 2024
@minhna1112
Copy link
Author

@baskaryan Can you please help me merge and close this PR? Thanks a lot!

@ccurme ccurme added the community Related to langchain-community label Jun 18, 2024
@efriis
Copy link
Member

efriis commented Aug 30, 2024

closing because this is against the deprecated community huggingface integrations. Feel free to resubmit against the partner package (libs/partners/huggingface) if it's still missing there!

@efriis efriis closed this Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community 🤖:improvement Medium size change to existing code to handle new use-cases Ɑ: models Related to LLMs or chat model modules size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants