Which Quantization Method is Right for You? (GPTQ vs. GGUF vs. AWQ)

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • НаукаНаука

Комментарии • 40

  • @cken27
    @cken27 10 месяцев назад +11

    Amazing content! Most youtube tutorials just go into trying out the outputs of pre-made LLMs but rarely dive into this level of technical details.

  • @bibhutibaibhavbora8770
    @bibhutibaibhavbora8770 3 месяца назад

    Great video❤

  • @utsavdavda8419
    @utsavdavda8419 18 дней назад

    Thanks Maarten! I was searching for quantizing exactly the zephyr-7b-beta and I realized you used it halfway in the video!

  • @rubencontesti221
    @rubencontesti221 2 месяца назад

    Thanks, Maarteen. I wish you could share some performance comparison between the difference methods. I have been trying to find some but I couldn't. I do know that AWQ is better than GPTQ, but wish to compare it to GGUF.

  • @BitsNBytesAI
    @BitsNBytesAI 5 месяцев назад +2

    Thanks a lot for clarifying the main differences between quantization methods and also for sharing your code.

  • @asd63103
    @asd63103 18 часов назад

    Thanks

  • @lphiro5602
    @lphiro5602 3 месяца назад

    Bfloat 16-bit is error 1+8+7 format.

  • @wezfaas3546
    @wezfaas3546 8 месяцев назад +1

    Thanks for including the colab, and I wasn't aware of AWQ before this video.
    Would you consider making a video on the efficiency on each, especially when using gpu on gguf model?

  • @sanjayojha1
    @sanjayojha1 10 месяцев назад +2

    Useful information and well made video.

  • @35wangfeng
    @35wangfeng 7 месяцев назад

    what about exllamav2?

  • @toromanow
    @toromanow 8 месяцев назад

    RuntimeError: cutlassF: no kernel found to launch! - it what I'm getting when trying to run your example at step 4:
    outputs = pipe(
    prompt,
    max_new_tokens=256,
    do_sample=True,
    temperature=0.1,
    top_p=0.95
    )

  • @FamilyManMoving
    @FamilyManMoving 8 месяцев назад

    Brilliant video; you have a style that explains things nicely. Thank you. Sub'd.
    If you are looking for ideas, I think an overview of what "weights, biases and parameters" mean for models would be great.

  • @jacehua7334
    @jacehua7334 10 месяцев назад +1

    Thanks didn't want to feel too unproductive on a thanksgiving but didn't want to commit to a full video series. Always releasing timely and great stuff!

  • @maryamashraf6370
    @maryamashraf6370 6 месяцев назад

    Thanks for this video - was a great explanation on the difference between the three models. How's the support for AWQ now? Also I would love it if you could make a video on how to deploy these quantized models for production

  • @silentwindstudio
    @silentwindstudio 7 месяцев назад

    Thanks for the video! What I don't understand is that people always say that AWQ is faster than GPTQ, but in my 3060 12gb they are usually quite slow, around 3t/s, while in gptq I can get from 5 to 20t/s

  • @venushah8179
    @venushah8179 7 месяцев назад

    Really enjoyed your video. It was very informative. Just wanted to know can finetuning be done on these pre-quantized models ??

  • @shekharmeena529
    @shekharmeena529 7 месяцев назад

    inference is tooo slow on the T4 gpu on collab, i fed a football commentary transcribe text line to llm the pre quantized one, it took 3 minutes to obtain the result

  • @JG27Korny
    @JG27Korny 8 месяцев назад

    Thank you for the informative video. I understood how I made a huge mistake using gguf when having the VRAM to use GPU primarily.

  • @gue2212
    @gue2212 7 месяцев назад

    Outstanding! (To put things in perspective: I've seen a LOT of praise for wrapping the obvious or marketing-only BS into lengthy videos and I'm not shy to speak my mind there too!)

  • @efexzium
    @efexzium 9 месяцев назад

    Great video, how ever its quite frustrating trying to run this code in production the dependencies are never correct.

  • @temp911Luke
    @temp911Luke 8 месяцев назад

    Hi, WHich one is faster ?
    GGUF with CUDA or AWQ ?

  • @TheMrguiller1993
    @TheMrguiller1993 8 месяцев назад

    Thank you so much for the video, i would like to know which method is faster at inference time.

  • @naseerfaheem
    @naseerfaheem 8 месяцев назад

    Great video and great comparisons. Can you make a video on how to quantize a model oneself as well?

  • @yueyu8778
    @yueyu8778 10 месяцев назад

    Great content! I am wondering whether nowadays we should choose LLMs over BERT models on most tasks or use seperately based on specific use cases? That could be an interest topic to discuss!

  • @radmilraychev5687
    @radmilraychev5687 9 месяцев назад

    Really enjoyed this session! Any chance you can continue this by showing how to fine-tune this versions of the models?

  • @JuanOrtiz-w4i
    @JuanOrtiz-w4i 9 месяцев назад

    I was struggling with quantization last weekend! very timely! thanks

  • @inakigorostiaga6305
    @inakigorostiaga6305 10 месяцев назад

    Thank you for the great explanations :)
    Does it make sense to do this before trainning? Quantize the model with these tecniques befor doing peft, qlora, p-tunning etc?

    • @MaartenGrootendorst
      @MaartenGrootendorst  10 месяцев назад +1

      It definitely helps with training if the full model does not fit on the GPU. With many of these methods, efficiency is important and quantization is seldom not used.

  • @AmishaHSomaiya
    @AmishaHSomaiya 4 месяца назад

    Thank you for the differences and the code.

  • @denissorn
    @denissorn 9 месяцев назад

    My understanding was GPTQ is recommended when quantized model can fit entirely in vRAM and that with GGUF one can still offload layers to a GPU. If I wanted to try mixtral dolphin ~40GB version (On a system w/4080 16GB VRAM, 64GB RAM) what would be a better choice GPTQ or GGUF?

    • @MaartenGrootendorst
      @MaartenGrootendorst  9 месяцев назад +1

      Definitely GGUF. Mixtral 4bit doesnt dit within 16GB Vram, so offloading layers would be necessary. I remember you could offload around 20 layers if I'm not mistaken. I do think the quantised variants, including the dolphin fine tune, are worth checking out.

    • @denissorn
      @denissorn 9 месяцев назад

      @@MaartenGrootendorst Thanks!

  • @kiiikoooPT
    @kiiikoooPT 9 месяцев назад

    Well what about the title of the video? I still don't know wich one is right for me wich was the point of watching this video. All you did was explain what each method is, not wich one we should use :s
    You have good information here in this video but still you missed the entire point of the title in my opinion.

    • @kiiikoooPT
      @kiiikoooPT 9 месяцев назад

      well nevermind, I paused the video cause it was about to finish and go over to another on the playlist, and guess you do talk about it in the end, my bad. Thats what I get for not finishing the video before coming with stupid questions.

    • @CitizUnReal
      @CitizUnReal 9 месяцев назад

      ​@@kiiikoooPT well i came here for similar reasons and although this is indeed very well explained, i still miss something i was hoping for (kinda like you): which quant works best for what mode? as i have read the other day that for example gptq is less suitable for rp than exl2. why? i dont know. thats why i came here. do the modes chat, cai and instruct have their preferred quantizations? if so, why?
      im leaving without those answers but with further base knowledge, which is more important in the long run. but hey.. there is one answer i was interested in: why do some models assume both the character- and the user role and progress the rp-story themselves instead of letting me guidie it? because now i know thats sort of typical for the awq quant

    • @kiiikoooPT
      @kiiikoooPT 9 месяцев назад

      from the litle I understand, the fact that a model prompt is diferent from model to model, has nothing to do with it being awq or gguf or whatever type off file, that is just about loading the model with diferent loaders. what you are talking about is another topic, you need to see videos about something like mistral vs mistral instruct. or diference betwen those. cause what you are saying has to do with how the model learned stuff, or how it was trained. the instruct models like the name says, are models that are based on instructions, so your prompt cannot be as a role play, cause it will give step by step anwsers instead of a simple conversation. What I really wanted to know is what kind of file is better for low end hardware, since my laptop has an nvidea graphic card with cuda cores, but is so hold that there is not even up to date drivers for it, so I can't install the stupid pytorch with cuda, only cpu mode, and I thought the type of file, gguf and so on, had diferent ways of loading the models, so I could manage to load it without the libraries everyone is using cause they have recent hardware. @@CitizUnReal

  • @rajivraghu9857
    @rajivraghu9857 8 месяцев назад

    Good one..