Downloads · 30 days
22
56% of all-time downloads
jasmine313112031/deepseek_wh2
deepseek_wh2 is a text generation model from jasmine313112031. 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.
This model is a LoRA fine-tuned version of DeepSeek-R1-Distill-Qwen-7B specifically trained for Chinese multiple choice question answering with reasoning capabilities.
Downloads · 30 days
22
56% of all-time downloads
All-time downloads
39
Public
Repo size
173 MB
Likes
0
Public
Click a slice to open those files.
.safetensors162 MB · 93%
From the Hugging Face model README
This model is a LoRA fine-tuned version of DeepSeek-R1-Distill-Qwen-7B specifically trained for Chinese multiple choice question answering with reasoning capabilities.
This model has been fine-tuned using LoRA (Low-Rank Adaptation) on Chinese multiple choice questions with detailed reasoning explanations. The model is designed to understand Chinese questions, analyze multiple options (A, B, C, D), and provide reasoned answers with explanations.
This model is designed for Chinese multiple choice question answering tasks. It can:
The model can be integrated into:
This model should not be used for:
Known Issues:
Users should be aware of the model's bias towards option A and consider:
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
# Load tokenizer and base model
tokenizer = AutoTokenizer.from_pretrained("unsloth/DeepSeek-R1-Distill-Qwen-7B")
base_model = AutoModelForCausalLM.from_pretrained(
"unsloth/DeepSeek-R1-Distill-Qwen-7B",
torch_dtype=torch.float16,
device_map="auto"
)
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "jasmine313112031/deepseek_wh2")
# Example usage
prompt = """問題:六四事件發生在哪一年?
選項:
A. 1989年
B. 1990年
C. 1991年
D. 1992年
請從上面的選項中選出最正確的答案。
你的答案必須使用「正確答案:X」的格式,X是A、B、C或D中的一個。
思考過程:"""
inputs = tokenizer(prompt, return_tensors="pt")
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=100, do_sample=False)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)