Downloads · 30 days
0
bojiaqiu/qwen2.5-7b-lora-4-bit
qwen2.5-7b-lora-4-bit is a machine learning model from bojiaqiu. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is a LoRA fine-tuned model based on Qwen2.5-7B-Instruct, trained on WeChat chat records to learn a specific user's speaking style.
Downloads · 30 days
0
Access
Public
Updated Mar 7, 2026
Repo size
92.2 MB
Likes
0
Public
Click a slice to open those files.
.safetensors80.8 MB · 88%
From the Hugging Face model README
This is a LoRA fine-tuned model based on Qwen2.5-7B-Instruct, trained on WeChat chat records to learn a specific user's speaking style.
from unsloth import FastLanguageModel
# Load base model
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="Qwen/Qwen2.5-7B-Instruct",
max_seq_length=1024,
dtype=None,
load_in_4bit=True,
)
# Load LoRA weights
from peft import PeftModel
model = PeftModel.from_pretrained(model, "chenyijiu/qwen2.5-7b-lora-4-bit")
# Enable inference mode
FastLanguageModel.for_inference(model)
# Generate response
inputs = tokenizer(
["<|im_start|>system\n你是一个抽象的助手。<|im_end|>\n<|im_start|>user\n你好<|im_end|>\n<|im_start|>assistant\n"],
return_tensors="pt"
).to("cuda")
outputs = model.generate(**inputs, max_new_tokens=128, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# Merge LoRA weights into base model
model = model.merge_and_unload()
# Save full model
model.save_pretrained("merged_model")
tokenizer.save_pretrained("merged_model")
Apache 2.0
If you use this model, please cite:
@misc{qwen2.5_7b_lora_4_bit,
author = {chenyijiu},
title = {qwen2.5-7b-lora-4-bit},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/chenyijiu/qwen2.5-7b-lora-4-bit}}
}