Downloads · 30 days
15
27% of all-time downloads
Ursulalala/X_Boundary_DeepSeek_R1_Distill_Qwen_7B_adapter
X_Boundary_DeepSeek_R1_Distill_Qwen_7B_adapter is a machine learning model from Ursulalala. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
XBoundaryDeepSeekR1DistillQwen7Badapter is an LoRA adapter of DeepSeekR1DistillQwen7B trained by X-Boundary.
Downloads · 30 days
15
27% of all-time downloads
All-time downloads
55
Public
Repo size
68.5 MB
Likes
0
Public
Click a slice to open those files.
.safetensors60.6 MB · 100%
From the Hugging Face model README
X_Boundary_DeepSeek_R1_Distill_Qwen_7B_adapter is an LoRA adapter of DeepSeek_R1_Distill_Qwen_7B trained by X-Boundary.
X-Boundary is a method to strike a balance between robust defense against multi-turn jailbreak attacks and the usability of Large Language Model (LLM) by establishing exact distinction boundary between safe and harmful representations.
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model_name = 'deepseek-ai/DeepSeek-R1-Distill-Qwen-7B'
adapter_name = 'Ursulalala/X_Boundary_DeepSeek_R1_Distill_Qwen_7B_adapter'
model = AutoModelForCausalLM.from_pretrained(
base_model_name,
torch_dtype='auto',
device_map='auto'
)
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
model.load_adapter(adapter_name)