The EASIEST way to finetune LLAMA-v2 on local machine! @abhishekkrthakur
The EASIEST way to finetune LLAMA-v2 on local machine!  @abhishekkrthakur
Uploaded July 2023 | Updated November 2026, 3 hours ago
In this video, I'll show you the easiest, simplest and fastest way to fine tune llama-v2 on your local machine for a custom dataset! You can also use the tutorial to train/finetune any other Large Language Model (LLM). In this tutorial, we will be using autotrain-advanced.

AutoTrain Advanced github repo: github.com/huggingface/autotrain-advanced

Steps:
Install autotrain-advanced using pip:
- pip install autotrain-advanced

Setup (optional, required on google colab):
- autotrain setup --update-torch

Train:
autotrain llm --train --project_name my-llm --model meta-llama/Llama-2-7b-hf --data_path . --use_peft --use_int4 --learning_rate 2e-4 --train_batch_size 12 --num_train_epochs 3 --trainer sft

If you are on free version of colab, use this model instead: huggingface.co/abhishek/llama-2-7b-hf-small-shards. This is a smaller sharded version of llama-2-7b-hf by meta.

Please subscribe and like the video to help me keep motivated to make awesome videos like this one. :)

My book, Approaching (Almost) Any Machine Learning problem, is available for free here: bit.ly/approachingml

Follow me on:
Twitter: twitter.com/abhi1thakur
LinkedIn: linkedin.com/in/abhi1thakur
Kaggle: kaggle.com/abhishek
The EASIEST way to finetune LLAMA-v2 on local machine!End-to-End: Automated Hyperparameter Tuning For Deep Neural NetworksKaggles 30 Days Of ML (Day-2): Say Hello to Python: variables, types and arithmetic operationsHyperparameter Optimization: This Tutorial Is All You NeedKaggles 30 Days Of ML (Day-13 Part-1): Scikit-Learn PipelinesData Processing For Question & Answering Systems: BERT vs. RoBERTaKaggles 30 Days Of ML (Day-5, Part-2): Python Loops and List ComprehensionVS Code (codeserver) on Google Colab / Kaggle / AnywhereHow to convert almost any PyTorch model to ONNX and serve it using flaskVibe + VSCode + Codex = Search UIBengali.AI: Handwritten Grapheme Classification Using PyTorch (Part-1)Build Your Own PyTorch Trainer!
Abhishek Thakur |

The EASIEST way to finetune LLAMA-v2 on local machine!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER