Downloads · 30 days
12
9% of all-time downloads
skshmjn/RAG-LLAMA-3.2-3b-INSTRUCT
RAG-LLAMA-3.2-3b-INSTRUCT is a text generation model from skshmjn. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
- Developed by: skshmjn - License: apache-2.0 - Finetuned from model: unsloth/Llama-3.2-3B-Instruct - Dataset Used: skshmjn/RAG-INSTRUCT-1.1 - Supports: Transformers & GGUF (for fast inference on CPU/GPU)
Downloads · 30 days
12
9% of all-time downloads
All-time downloads
141
Public
Parameters
3.2B
6.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.4 GB · 100%
From the Hugging Face model README
This model is fine-tuned on the RAG-INSTRUCT-1.1 dataset using Unsloth to enhance text generation.
It is optimized for instruction-following while reducing hallucination, ensuring that responses remain factual and concise.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "skshmjn/Llama-3.2-3B-RAG-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = """You are an assistant for question-answering tasks.
Use the following pieces of retrieved context to answer the question.
If you don't know the answer, just say that you don't know.
Use three sentences maximum and keep the answer concise.
Question: Who discovered the first exoplanet?
Context: [No relevant context available]
Answer:"""
inputs = tokenizer(prompt, return_tensors="pt")
output = model.generate(**inputs, max_length=100)
response = tokenizer.decode(output[0], skip_special_tokens=True)
print(response)