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

ENH: Add llm_kwargs for Xinference LLMs #10354

Merged
merged 2 commits into from Sep 18, 2023

Conversation

jiayini1119
Copy link
Contributor

@jiayini1119 jiayini1119 commented Sep 8, 2023

  • This pr adds llm_kwargs to the initialization of Xinference LLMs (integrated in FEAT: Integrate Xinference LLMs and Embeddings #8171 ).
  • With this enhancement, users can not only provide generate_configs when calling the llms for generation but also during the initialization process. This allows users to include custom configurations when utilizing LangChain features like LLMChain.
  • It also fixes some format issues for the docstrings.

@vercel
Copy link

vercel bot commented Sep 8, 2023

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

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2023 6:08am
langchain-deprecated ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2023 6:08am

@dosubot dosubot bot added Ɑ: models Related to LLMs or chat model modules 🤖:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features labels Sep 8, 2023
Copy link
Collaborator

@eyurtsev eyurtsev left a comment

Choose a reason for hiding this comment

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

Change looks good to me

libs/langchain/langchain/llms/xinference.py Show resolved Hide resolved
@eyurtsev eyurtsev self-assigned this Sep 8, 2023
@eyurtsev eyurtsev merged commit ce61840 into langchain-ai:master Sep 18, 2023
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features Ɑ: models Related to LLMs or chat model modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants