[docs] Update CPU/GPU inference docs#26881
Conversation
|
The documentation is not available anymore as the PR was closed or merged. |
MKhalusova
left a comment
There was a problem hiding this comment.
Great work on making the inference docs easier to follow. I found a few typos, but otherwise looks great to me.
|
@lvwerra did you participate in writing the original document as well? Do you have feedback on this refactor? |
|
Nice overhaul! I think it's also an opportunity to mention Optimum as this falls right into what we are doing:
WDYT? |
Only did the general structure of that part so leave it to others to comment on content :) |
Totally aligned with your suggestion @regisss, let us know if we can help @stevhliu |
|
Thanks for the feedback y'all! Let me know what you think of the new Optimum sections @regisss @echarlaix :) |
Co-authored-by: regisss <15324346+regisss@users.noreply.github.com> Co-authored-by: Ella Charlaix <80481427+echarlaix@users.noreply.github.com>
LysandreJik
left a comment
There was a problem hiding this comment.
Looks good! Only left one comment related to redirection
There was a problem hiding this comment.
If this file is deleted, it should redirect to another page with similar information. These pages are linked elsewhere so we should make sure following the previous links don't lead to 404s
There was a problem hiding this comment.
Should be fixed, it was only linked in the performance.md doc!
There was a problem hiding this comment.
I meant that it could have been linked in tweets/blogs/things out of our control. I had a feeling we once redirected deleted pages to their updated counterparts; would it be feasible here? Maybe a question to @mishig25 regarding the doc-builder
There was a problem hiding this comment.
Yes, it's possible writing a _redirects.yml (at the same level as _toctree.yml), here is an example in Optimum: https://github.com/huggingface/optimum/blob/main/docs/source/_redirects.yml
It's quite simple, the old link is to the left of the colon and the new one to the right.
There was a problem hiding this comment.
That's really cool, I didn't know that was possible! I added a _redirects.yml for Transformers, let me know if there is anything else I need to add for it to work 🤗
There was a problem hiding this comment.
It looks good to me, that should work!
LysandreJik
left a comment
There was a problem hiding this comment.
Thanks for your work @stevhliu!
* first draft * remove non-existent paths * edits * feedback * feedback and optimum * Apply suggestions from code review Co-authored-by: regisss <15324346+regisss@users.noreply.github.com> Co-authored-by: Ella Charlaix <80481427+echarlaix@users.noreply.github.com> * redirect to correct doc * _redirects.yml --------- Co-authored-by: regisss <15324346+regisss@users.noreply.github.com> Co-authored-by: Ella Charlaix <80481427+echarlaix@users.noreply.github.com>
Implements the proposal suggested in #26723, namely: