-
Notifications
You must be signed in to change notification settings - Fork 110
feat(weave): Implement integration with 🤗 inference client #2795
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
Conversation
Preview this PR with FeatureBee: https://beta.wandb.ai/?betaVersion=456b0ec6e0e09fc5e286f6225ae018a273c42317 |
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
Hey @soumik12345 can you ensure a green CI? Hey @wandb/weave-team, this integration will help us gain more traction with the open models and projects that use HF inference. Can we get some review time on this PR? |
Made the ci green, however llamaindex and langchain tests keep failing (don't think that's because of the PR). |
Continuing at #3612 |
Description
Implement autopatch integration with 🤗 inference client.
Multi-modal text completion
Sync generation
Expand to see code snippets and traces
Without streaming
Sample Trace
With streaming
Sample Trace
Note: Usage metadata is coming as
None
. This is becausevalue.usage
is always comingNone
whenstream=True
. This might be due to a bug inhuggingface_hub.InferenceClient
.Async generation
Expand to see code snippets and traces
Without streaming
Sample Trace
With streaming
Sample Trace
Text-to-image generation
Expand to see code snippets and traces
Sample Trace