Downloads · 30 days
42
3% of all-time downloads
devshaheen/llama-3.2-3b-Instruct-finetune
llama-3.2-3b-Instruct-finetune is a text generation model from devshaheen. 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: devshaheen - License: Apache-2.0 - Finetuned from model: unsloth/llama-3.2-3b-instruct-bnb-4bit - Languages Supported: - English (en) for general-purpose text generation and instruction-following tasks…
Downloads · 30 days
42
3% of all-time downloads
All-time downloads
1.2K
Public
Parameters
3.3B
2.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.2 GB · 99%
How the weights are stored.
U82.9B · 88%
From the Hugging Face model README
unsloth/llama-3.2-3b-instruct-bnb-4biten) for general-purpose text generation and instruction-following tasks.kn) with a focus on localized and culturally aware text generation.This model is a fine-tuned version of LLaMA, optimized for multilingual instruction-following tasks with a specific emphasis on English and Kannada. It utilizes 4-bit quantization for efficient deployment in low-resource environments without compromising performance.
The model is trained to follow a wide range of instructions and generate contextually relevant responses. It excels in both creative and factual text generation tasks.
The model is capable of generating text in Kannada and English, making it suitable for users requiring bilingual capabilities.
Training was accelerated using Unsloth, achieving 2x faster training compared to conventional methods. This was complemented by HuggingFace's TRL (Transformers Reinforcement Learning) library to ensure high performance.
Built on the bnb-4bit quantized model, it is designed for optimal performance in environments with limited computational resources while maintaining precision and depth in output.
The model was fine-tuned on charanhu/kannada-instruct-dataset-390k, a comprehensive dataset designed for Kannada instruction tuning.
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load model and tokenizer
model_name = "devshaheen/llama-3.2-3b-Instruct-finetune"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Generate text
input_text = "How does climate change affect the monsoon in Karnataka?"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=150)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))