Downloads · 30 days
1
1% of all-time downloads
varunpruthviraj/qwen3-8b-lora-merged
qwen3-8b-lora-merged is a text generation model from varunpruthviraj. 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.
This is a QLoRA fine-tuned version of the Qwen/Qwen3-8B model. It was fine-tuned using 4-bit quantization (NF4) and LoRA adapters for efficient domain adaptation.
Downloads · 30 days
1
1% of all-time downloads
All-time downloads
82
Public
Parameters
8.2B
16.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
From the Hugging Face model README
This is a QLoRA fine-tuned version of the Qwen/Qwen3-8B model.
It was fine-tuned using 4-bit quantization (NF4) and LoRA adapters for efficient domain adaptation.
You are a concise and expert AI assistant specializing in fine-tuning, quantization, and efficient model training.
Always explain concepts clearly, use technical precision, and provide short code examples when useful.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "varunpruthviraj/qwen3-8b-lora-merged"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
prompt = "Explain how QLoRA differs from traditional fine-tuning."
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))