Views
No views yet
| Parameter | Value |
|---|---|
| Base model | TinyLlama 1.1B Chat |
| Fine-tuning method | QLoRA (4-bit NF4 quantisation) |
| LoRA rank | 16 |
| LoRA alpha | 16 |
| Training examples | 10 instruction pairs |
| Epochs | 3 |
| Learning rate | 2e-4 |
| Hardware | NVIDIA T4 GPU (Google Colab free tier) |
| Library | Unsloth (2x faster than standard HuggingFace) |
| Parameters trained | ~0.089% of total parameters |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4# Load base model + fine-tuned adapters
5base_model = AutoModelForCausalLM.from_pretrained(
6 "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
7)
8model = PeftModel.from_pretrained(base_model, "Rohith2026/nlp-rag-expert")
9tokenizer = AutoTokenizer.from_pretrained("Rohith2026/nlp-rag-expert")
10
11# Ask a question
12prompt = "### Instruction:\nWhat is RAG?\n\n### Response:\n"
13inputs = tokenizer(prompt, return_tensors="pt")
14outputs = model.generate(**inputs, max_new_tokens=200)
15print(tokenizer.decode(outputs[0], skip_special_tokens=True))| Project | Description | Live Demo |
|---|---|---|
| Hybrid RAG System | BM25 + dense embeddings, 93% Recall@10, 8.84M passages | Live Demo |
| AI Agent System | ReAct agent with 3 tools — web search, calculator, RAG | Live Demo |
| LLM Fine-Tuning (this) | QLoRA fine-tuning on NLP/RAG domain | Model |