Downloads · 30 days
6
8% of all-time downloads
mohd-musheer/Llama-3b-q
Llama-3b-q is a text generation model from mohd-musheer. Use it when you need the model to write or continue text. It is set up for peft.
This repository contains a fine-tuned LoRA adapter built on top of a LLaMA-based model using efficient parameter-efficient fine-tuning (PEFT). The model is trained to improve structured reasoning and solution generati…
Downloads · 30 days
6
8% of all-time downloads
All-time downloads
75
Public
Repo size
115 MB
Likes
0
Public
Click a slice to open those files.
.safetensors97.3 MB · 85%
From the Hugging Face model README
This repository contains a fine-tuned LoRA adapter built on top of a LLaMA-based model using efficient parameter-efficient fine-tuning (PEFT). The model is trained to improve structured reasoning and solution generation from problem-based inputs.
⚠️ This repository contains LoRA adapter weights only, not the full base model.
meta-llama/Meta-Llama-3-3B (or your exact base model name — update if needed)float16| Component | Value |
|---|---|
| Hidden Size | 3072 |
| Layers | 28 |
| Attention Heads | 24 |
| KV Heads | 8 |
| Intermediate Size | 8192 |
| Activation | SiLU |
| Max Context Length | 131072 |
| Vocabulary Size | 128256 |
float16This allows the model to run efficiently on low-memory systems.
Method: LoRA (Low-Rank Adaptation)
Framework: Unsloth + Hugging Face Transformers
Objective: Improve reasoning, structured outputs, and problem-solving capability
Dataset: Custom dataset with:
pip install transformers peft bitsandbytes
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_name = "meta-llama/Meta-Llama-3-3B"
base_model = AutoModelForCausalLM.from_pretrained(
base_model_name,
load_in_4bit=True,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
model = PeftModel.from_pretrained(base_model, "musheer/your-model-name")
input_text = "Solve: What is 2+2?"
inputs = tokenizer(input_text, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=200
)
print(tokenizer.decode(outputs[0]))
To create a standalone full model:
model = model.merge_and_unload()
model.save_pretrained("merged_model")
⚠️ This will increase size to ~7+ GB
Mohd. Musheer