Downloads · 30 days
0
jamal07/tinyllama-finetuned-dialogue_byjamalnasir
tinyllama-finetuned-dialogue_byjamalnasir is a machine learning model from jamal07. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
- 🦙 TinyLlama Fine-Tuned on DailyDialog (LoRA Adapter)
Downloads · 30 days
0
Access
Public
Updated Jun 15, 2025
Repo size
12.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors12.3 MB · 77%
From the Hugging Face model README
-# 🦙 TinyLlama Fine-Tuned on DailyDialog (LoRA Adapter)
This repository contains LoRA adapter weights for fine-tuning TinyLlama/TinyLlama-1.1B-Chat-v1.0 on the DailyDialog dataset for dialogue-style generation.
These are adapter weights only — not the full model.
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
tokenizer = AutoTokenizer.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "jamal07/tinyllama-finetuned-dialogue_byjamalnasir")
inputs = tokenizer("Hello, how are you?", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))