Uploaded December 2024 | Updated November 2026, 3 hours ago
Full-text tutorial (requires MLExpert Pro): mlexpert.io/bootcamp/quantize-your-llm
Want to deploy a large language model (LLM) on a device with limited resources? In this tutorial, we'll see how to quantize a fine-tuned LLM and run it on your machine with llama.cpp or Ollama. We'll evaluate the model's performance and see if we lose any accuracy compared to the full-precision model.
Quantization Strategies Evaluation paper: arxiv.org/html/2402.16775v1
Model on HuggingFace: huggingface.co/curiousily/Llama-3.2-1B-Mental-Health-Sentiment
AI Bootcamp: mlexpert.io
LinkedIn: linkedin.com/in/venelin-valkov
Follow me on X: twitter.com/venelin_valkov
Discord: discord.gg/UaNPxVD6tv
Subscribe: bit.ly/venelin-subscribe
GitHub repository: github.com/curiousily/AI-Bootcamp
👍 Don't Forget to Like, Comment, and Subscribe for More Tutorials!
00:00 - Welcome
00:27 - Text tutorial on MLExpert.io
00:55 - Fine-tuned model on HuggingFace
01:35 - Why quantize your model?
03:18 - Google Colab Setup
04:41 - Install llama.cpp
05:30 - Convert HF model to GGUF
07:26 - Run the quantized model with llama-cpp-python
09:44 - Evaluate full-precision vs quantized model
10:57 - Use your quantized model in Ollama
11:55 - Conclusion
Join this channel to get access to the perks and support my work:
youtube.com/channel/UCoW_WzQNJVAjxo4osNAxd_g/join
#quantization #ollama #llamacpp #llama3 #llm #chatgpt #python #artificialintelligence
Full-text tutorial (requires MLExpert Pro): mlexpert.io/bootcamp/quantize-your-llm
Want to deploy a large language model (LLM) on a device with limited resources? In this tutorial, we'll see how to quantize a fine-tuned LLM and run it on your machine with llama.cpp or Ollama. We'll evaluate the model's performance and see if we lose any accuracy compared to the full-precision model.
Quantization Strategies Evaluation paper: arxiv.org/html/2402.16775v1
Model on HuggingFace: huggingface.co/curiousily/Llama-3.2-1B-Mental-Health-Sentiment
AI Bootcamp: mlexpert.io
LinkedIn: linkedin.com/in/venelin-valkov
Follow me on X: twitter.com/venelin_valkov
Discord: discord.gg/UaNPxVD6tv
Subscribe: bit.ly/venelin-subscribe
GitHub repository: github.com/curiousily/AI-Bootcamp
👍 Don't Forget to Like, Comment, and Subscribe for More Tutorials!
00:00 - Welcome
00:27 - Text tutorial on MLExpert.io
00:55 - Fine-tuned model on HuggingFace
01:35 - Why quantize your model?
03:18 - Google Colab Setup
04:41 - Install llama.cpp
05:30 - Convert HF model to GGUF
07:26 - Run the quantized model with llama-cpp-python
09:44 - Evaluate full-precision vs quantized model
10:57 - Use your quantized model in Ollama
11:55 - Conclusion
Join this channel to get access to the perks and support my work:
youtube.com/channel/UCoW_WzQNJVAjxo4osNAxd_g/join
#quantization #ollama #llamacpp #llama3 #llm #chatgpt #python #artificialintelligence










