Downloads · 30 days
5
16% of all-time downloads
aryantyagi0/llama-3.2-1b-aiml-assistant
llama-3.2-1b-aiml-assistant is a machine learning model from aryantyagi0. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as llama3.2.
A domain-specific AI/ML assistant fine-tuned on the Open-Platypus dataset using QLoRA on Google Colab (T4 GPU).
Downloads · 30 days
5
16% of all-time downloads
All-time downloads
31
Public
Repo size
62.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors45.1 MB · 72%
From the Hugging Face model README
A domain-specific AI/ML assistant fine-tuned on the Open-Platypus dataset using QLoRA on Google Colab (T4 GPU).
Built by Aryan Tyagi — AI/ML Engineer specializing in LangChain, LangGraph, and Agentic AI.
Answers questions about Artificial Intelligence and Machine Learning clearly and accurately — including topics like:
| Parameter | Value |
|---|---|
| Base Model | Llama 3.2 1B Instruct |
| Method | QLoRA (4-bit quantization) |
| Dataset | garage-bAInd/Open-Platypus |
| Training Samples | 2,000 |
| Epochs | 2 |
| LoRA Rank (r) | 16 |
| LoRA Alpha | 32 |
| Learning Rate | 2e-4 |
| Optimizer | AdamW 8-bit |
| Hardware | Google Colab T4 GPU |
| Training Loss | 1.02 → 0.63 |
| Library | Unsloth + PEFT + TRL |
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"unsloth/Llama-3.2-1B-Instruct",
load_in_4bit=True
)
# Load fine-tuned adapter
model = PeftModel.from_pretrained(
base_model,
"aryantyagi0/llama-3.2-1b-aiml-assistant"
)
tokenizer = AutoTokenizer.from_pretrained(
"aryantyagi0/llama-3.2-1b-aiml-assistant"
)
prompt = """Below is a question about Artificial Intelligence or Machine Learning.
Provide a clear, accurate and detailed answer.
### Question:
{}
### Answer:
{}"""
inputs = tokenizer(
[prompt.format("What is backpropagation?", "")],
return_tensors="pt"
)
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
| Step | Loss |
|---|---|
| 20 | 1.029 |
| 80 | 0.769 |
| 140 | 0.760 |
| 200 | 0.718 |
| 220 | 0.636 |
Loss converged from 1.02 → 0.63 — indicating strong domain adaptation.
Aryan Tyagi — AI/ML Engineer
🔗 GitHub ·
LinkedIn
Specializes in LangChain · LangGraph · RAG · Agentic AI · LLM Fine-tuning
This model is fine-tuned from Llama 3.2 and follows the Llama 3.2 Community License.