Files changed (1) hide show
  1. README.md +45 -31
README.md CHANGED
@@ -1,32 +1,46 @@
1
- ---
2
- base_model: Qwen/Qwen2.5-7B-Instruct
3
- library_name: peft
4
- ---
5
-
6
- # Model Card for X-Boundary-Qwen2.5-7B-adapter
7
-
8
- <!-- Provide a quick summary of what the model is/does. -->
9
-
10
- X-Boundary-Qwen2.5-7B-adapter is an LoRA adapter of Qwen2.5-7B trained by X-Boundary.
11
-
12
- 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.
13
-
14
- ## Quick Start
15
-
16
- ``` python
17
- from transformers import AutoModelForCausalLM, AutoTokenizer
18
-
19
- base_model_name = 'Qwen/Qwen2.5-7B-Instruct'
20
- adapter_name = 'Ursulalala/X-Boundary-Qwen2.5-7B-adapter'
21
- model = AutoModelForCausalLM.from_pretrained(
22
- base_model_name,
23
- torch_dtype='auto',
24
- device_map='auto'
25
- )
26
- tokenizer = AutoTokenizer.from_pretrained(base_model_name)
27
- model.load_adapter(adapter_name)
28
- ```
29
-
30
- ## Framework versions
31
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  - PEFT 0.13.2
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-7B-Instruct
3
+ library_name: peft
4
+ language:
5
+ - zho
6
+ - eng
7
+ - fra
8
+ - spa
9
+ - por
10
+ - deu
11
+ - ita
12
+ - rus
13
+ - jpn
14
+ - kor
15
+ - vie
16
+ - tha
17
+ - ara
18
+ ---
19
+
20
+ # Model Card for X-Boundary-Qwen2.5-7B-adapter
21
+
22
+ <!-- Provide a quick summary of what the model is/does. -->
23
+
24
+ X-Boundary-Qwen2.5-7B-adapter is an LoRA adapter of Qwen2.5-7B trained by X-Boundary.
25
+
26
+ 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.
27
+
28
+ ## Quick Start
29
+
30
+ ``` python
31
+ from transformers import AutoModelForCausalLM, AutoTokenizer
32
+
33
+ base_model_name = 'Qwen/Qwen2.5-7B-Instruct'
34
+ adapter_name = 'Ursulalala/X-Boundary-Qwen2.5-7B-adapter'
35
+ model = AutoModelForCausalLM.from_pretrained(
36
+ base_model_name,
37
+ torch_dtype='auto',
38
+ device_map='auto'
39
+ )
40
+ tokenizer = AutoTokenizer.from_pretrained(base_model_name)
41
+ model.load_adapter(adapter_name)
42
+ ```
43
+
44
+ ## Framework versions
45
+
46
  - PEFT 0.13.2