blog icon indicating copy to clipboard operation
blog copied to clipboard

Blog post on `bitsandbytes` integration on Hugging Face

Open younesbelkada opened this issue 3 years ago • 10 comments

A blog post explaining the method 8-bit Matrix Multiplication for transformers at scale and how this is used under the hood in transformers !

  • Still a WIP PR

TODOs

  • [x] change the main thumbnail
  • [x] add more content
  • [x] correct content
  • [x] re-capture the gif out-quant.gif because we can see the mouse

younesbelkada avatar Aug 11 '22 22:08 younesbelkada

You might want to share in the OP the preview link that will remain fixed through this PR's mods. https://github.com/younesbelkada/blog/blob/add_bnb_inference/hf-bitsandbytes-integration.md it's much easier to read that way.

the broken images in the html header part is normal - will appear normally once published.

stas00 avatar Aug 12 '22 19:08 stas00

Great thanks for the tip! I have changed the previous names of some pictures and now all images should be rendered correctly

younesbelkada avatar Aug 12 '22 19:08 younesbelkada

Thank you very much for your review! This will be extremely helpful Yes we can go for this approach, I can give you access to the google doc I used to write the text if you prefer

younesbelkada avatar Aug 12 '22 20:08 younesbelkada

no google doc needed, we are already editing here, it'd be extremely difficult to keep 2 separate docs in sync. So let's switch to editing here 100%.

As I shared earlier the preview link should serve as a nice visual that's easier to read than raw MD.

stas00 avatar Aug 12 '22 21:08 stas00

I've pushed the rewrite of the first few sections. Please let me know if it feels good and then I will continue reworking the rest when you're asleep next time, so that we don't collide on our edits.

I wonder if perhaps you'd want to first finish the rough version first and I will do the heavy editing afterwards? It's your call.

stas00 avatar Aug 13 '22 05:08 stas00

Thank you very much @stas00 ! I have updated more content and tried to rephrase as much as I could! I would love to have a review pass until How to use it in transformers section 💪

younesbelkada avatar Aug 13 '22 09:08 younesbelkada

I have addressed your points and comment on them! Let me know if they make more sense now 💪

younesbelkada avatar Aug 14 '22 17:08 younesbelkada

Thank you very much @stevhliu for the complete review! I validated them and addressed the points that needed more clarification :pray:

younesbelkada avatar Aug 15 '22 17:08 younesbelkada

I left some comments for myself to integrate @stas00 comment regarding the animations that I will process later ;)

younesbelkada avatar Aug 15 '22 17:08 younesbelkada

Just finished my round of editing @stas00 ! Please let me know if the proposed modifications make sense to you 🙏 Regarding https://github.com/huggingface/blog/pull/463#discussion_r946058286 I will probably let Tim answer on that one! Again thank you for your feedback so far 🔥

younesbelkada avatar Aug 15 '22 22:08 younesbelkada

Looks good to me now! cc @stevhliu I think that we are ready to merge now 💪

younesbelkada avatar Aug 17 '22 00:08 younesbelkada