Downloads · 30 days
12
35% of all-time downloads
Shankarblr/Qwen2.5-1.5B-TechWriter-LoRA
Qwen2.5-1.5B-TechWriter-LoRA is a text generation model from Shankarblr. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Downloads · 30 days
12
35% of all-time downloads
All-time downloads
34
Public
Repo size
85.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors73.9 MB · 87%
From the Hugging Face model README
This is not a standalone model.
It is the PEFT LoRA adapter trained with QLoRA on Qwen/Qwen2.5-1.5B-Instruct for semiconductor / data-center interconnect technical writing.
For drop-in inference, use the merged repo:
Shankarblr/Qwen2.5-1.5B-TechWriter-Instruct
Use this repo to resume training, attach the adapter on the frozen 4-bit base, or keep a small artifact.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
from peft import PeftModel
BASE = "Qwen/Qwen2.5-1.5B-Instruct"
ADAPTER = "Shankarblr/Qwen2.5-1.5B-TechWriter-LoRA"
tok = AutoTokenizer.from_pretrained(ADAPTER)
bnb = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_use_double_quant=True,
bnb_4bit_compute_dtype=torch.float16,
)
base = AutoModelForCausalLM.from_pretrained(BASE, quantization_config=bnb, device_map="auto")
model = PeftModel.from_pretrained(base, ADAPTER)
model.eval()
Merge if you want a single folder like the inference repo:
merged = model.merge_and_unload()
merged.save_pretrained("./qwen-techwriter-merged")
tok.save_pretrained("./qwen-techwriter-merged")
Same run as the merged card:
q/k/v/o/gate/up/down_projUpload only adapter_config.json, adapter_model.safetensors, tokenizer files, and this README. Leave out checkpoint-* and optimizer states.
Apache 2.0. Unofficial style model; not affiliated with any semiconductor vendor.