-
Notifications
You must be signed in to change notification settings - Fork 297
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
Conversation
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 | |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
There was a problem hiding this 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 🔥
docs/api-inference/index.md
Outdated
|
||
**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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Co-authored-by: Julien Chaumond <[email protected]>
Co-authored-by: Julien Chaumond <[email protected]>
Co-authored-by: Julien Chaumond <[email protected]>
…ingface/hub-docs into refacto-for-inference-providers-doc
Co-authored-by: Julien Chaumond <[email protected]>
…uggingface/hub-docs into refacto-for-inference-providers-doc
There was a problem hiding this 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.
Valuable feedback, thanks for taking the time Ben! ❤️ |
Co-authored-by: burtenshaw <[email protected]>
There was a problem hiding this 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`. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really nice makeover! 🔥
Co-authored-by: Pierric Cistac <[email protected]>
Co-authored-by: Victor Muštar <[email protected]>
Co-authored-by: Victor Muštar <[email protected]>
Thanks for the reviews! I just merged it and created #1662 to list remaining items :) |
Main pages to look at:
TODO list: