Skip to content

Revamp Inference Providers doc #1652

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

Merged
merged 20 commits into from
Apr 1, 2025
Merged

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Mar 26, 2025

Main pages to look at:


TODO list:

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

| User Tier | Included monthly credits |
| ------------------------ | ---------------------------------- |
| Free Users | subject to change, less than $0.10 |
| PRO and Enterprise Users | $2.00 |
Copy link
Contributor

Choose a reason for hiding this comment

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

it would be great to have a third column with an estimation on how much I can generate (might be hard)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

deleted since duplicate of chat-completion.md

@SBrandeis SBrandeis self-requested a review March 28, 2025 16:43
Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

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

will need more review but a nice start 🔥


**Instant Access to thousands of ML Models for Fast Prototyping**
The Hugging Face Inference Providers API revolutionizes how developers access and run machine learning models by offering a unified, flexible interface to multiple serverless inference providers. This new approach extends our previous Serverless Inference API, providing more models, increased performances and better reliability thanks to our awesome partners.
Copy link
Member

Choose a reason for hiding this comment

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

add nice visual of all providers

Copy link
Contributor

Choose a reason for hiding this comment

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

yes @ChunTeLee did something nice

@Wauplin Wauplin marked this pull request as ready for review March 28, 2025 17:59
Copy link
Collaborator

@burtenshaw burtenshaw left a comment

Choose a reason for hiding this comment

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

Nice few pages. I left some small nits to help with readability.

@Wauplin
Copy link
Contributor Author

Wauplin commented Mar 28, 2025

Valuable feedback, thanks for taking the time Ben! ❤️

Copy link
Member

@Vaibhavs10 Vaibhavs10 left a comment

Choose a reason for hiding this comment

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

Very cool, just one comment about openai snippets - they do get a lot of usage, would be nice to fit them somewhere

print(response.json()["choices"][0]["message"])
```

For convenience, the Python library `huggingface_hub` provides an [`InferenceClient`](https://huggingface.co/docs/huggingface_hub/guides/inference) that handles inference for you. Make sure to install it with `pip install huggingface_hub`.
Copy link
Member

Choose a reason for hiding this comment

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

would it make sense to add an openai snippet too or is it a hassle because of the mapping thingy?

A lot of people use the openai package would be great to figure out a way to showcase that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there will be openai snippets for both Python and JS in individual tasks page (e.g. in chat-completion). This is done in a separate PR: #1643

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but I don't think we'll feature it on the landing page, there are already many snippets on that page

Copy link
Member

@Pierrci Pierrci left a comment

Choose a reason for hiding this comment

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

really nice makeover! 🔥

@Wauplin Wauplin merged commit d290556 into main Apr 1, 2025
2 checks passed
@Wauplin Wauplin deleted the refacto-for-inference-providers-doc branch April 1, 2025 10:34
@Wauplin Wauplin mentioned this pull request Apr 1, 2025
44 tasks
@Wauplin
Copy link
Contributor Author

Wauplin commented Apr 1, 2025

Thanks for the reviews! I just merged it and created #1662 to list remaining items :)

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.

8 participants