Skip to content

Add inference providers details #37

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

aymeric-roucher
Copy link

No description provided.

@aymeric-roucher aymeric-roucher marked this pull request as draft June 20, 2025 18:57
Comment on lines 169 to 177
const [modelData, inferenceProviders] = await Promise.all([
modelInfo<(typeof additionalFields)[number]>({
name: modelId,
additionalFields: Array.from(additionalFields),
...(this.accessToken && { credentials: { accessToken: this.accessToken } }),
...(this.hubUrl && { hubUrl: this.hubUrl }),
}),
this.fetchInferenceProviders(modelId),
]);
Copy link
Contributor

Choose a reason for hiding this comment

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

i think you should be able to do it in the same HTTP call! (i.e directly in modelInfo)

@aymeric-roucher aymeric-roucher marked this pull request as ready for review June 21, 2025 10:56
@aymeric-roucher
Copy link
Author

@julien-c the new section looks like this for Llama-3.1-8B:

## Inference Providers
- **hf-inference** (live) | Provider ID: meta-llama/Llama-3.1-8B-Instruct | Task: conversational
- **featherless-ai** (live) | Provider ID: meta-llama/Meta-Llama-3.1-8B-Instruct | Task: conversational
- **sambanova** (live) | Provider ID: Meta-Llama-3.1-8B-Instruct | Task: conversational
- **nscale** (live) | Provider ID: meta-llama/Llama-3.1-8B-Instruct | Task: conversational
- **novita** (live) | Provider ID: meta-llama/llama-3.1-8b-instruct | Task: conversational
- **nebius** (live) | Provider ID: meta-llama/Meta-Llama-3.1-8B-Instruct-fast | Task: conversational
- **hyperbolic** (staging) | Provider ID: meta-llama/Meta-Llama-3.1-8B-Instruct | Task: conversational
- **fireworks-ai** (live) | Provider ID: accounts/fireworks/models/llama-v3p1-8b-instruct | Task: conversational

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

Successfully merging this pull request may close these issues.

2 participants