AI Project: Efficient Fine-Tuning with LoRA and PEFT (Train LLMs on Consumer Hardware)
In Fine-Tuning (Part 3: Evaluation & Sharing), we fine-tuned a small BERT model. But if you try to fine-tune a modern LLM (like Llama 3…

In Fine-Tuning (Part 3: Evaluation & Sharing), we fine-tuned a small BERT model. But if you try to fine-tune a modern LLM (like Llama 3…

This is the most important AI project of the “2026 Vision.” Building a Python RAG Chatbot is a practical example of how RAG (Retrieval-Augmented Generation)…

In our previous Hugging Face with gpt-2 project, we used the text-generation pipeline. This is great, but it hides all the powerful options. In this…

This is one of the original tasks that made models like BERT famous. A “Masked Language Model” (MLM) is trained by having words randomly “masked”…

This is the cutting-edge of AI, far beyond a simple pipeline. An Agent is an LLM (like ChatGPT) that has been given tools and can…

This is one of the most powerful and “magical” tasks in modern AI. In particular, Hugging Face Zero-Shot is a technique that demonstrates impressive versatility…

We’ve done single-label classification (e.g., “POSITIVE” or “NEGATIVE”). But what if a text can be both? A news article could be about “POLITICS” and “FINANCE”….

We’ve used Hugging Face to understand text and generate text. Now, let’s use it to understand images with Hugging Face Image Classification. Image Classification is…

The Hugging Face pipeline is great for simple tasks, and it’s particularly well-known for Hugging Face Text Classification. But what if you need the raw…

We’ve used the Hugging Face pipeline to understand text (sentiment-analysis) and answer questions (question-answering). Now, let’s use it for its most famous task: Text Generation….