nbeerbower commited on
Commit
d8a9e4c
·
verified ·
1 Parent(s): b8051e3

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +30 -0
  2. adapter_config.json +38 -0
  3. adapter_model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - Qwen/Qwen2.5-Math-7B
4
+ - deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
5
+ library_name: transformers
6
+ tags:
7
+ - mergekit
8
+ - peft
9
+
10
+ ---
11
+ # R1-Qwen-7B-LORA
12
+
13
+ This is a LoRA extracted from a language model. It was extracted using [mergekit](https://github.com/arcee-ai/mergekit).
14
+
15
+ ## LoRA Details
16
+
17
+ This LoRA adapter was extracted from [deepseek-ai/DeepSeek-R1-Distill-Qwen-7B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B) and uses [Qwen/Qwen2.5-Math-7B](https://huggingface.co/Qwen/Qwen2.5-Math-7B) as a base.
18
+
19
+ ### Parameters
20
+
21
+ The following command was used to extract this LoRA adapter:
22
+
23
+ ```sh
24
+ git clone https://github.com/arcee-ai/mergekit.git
25
+ cd mergekit
26
+ git checkout 9017715655bfc346db0fd1f156f3799084b95b9e
27
+ pip install -e .
28
+
29
+ mergekit-extract-lora deepseek-ai/DeepSeek-R1-Distill-Qwen-7B Qwen/Qwen2.5-Math-7B OUTPUT_PATH --rank=64
30
+ ```
adapter_config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Qwen/Qwen2.5-Math-7B",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "loftq_config": {},
12
+ "lora_alpha": 64,
13
+ "lora_dropout": 0,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": [
17
+ "post_attention_layernorm",
18
+ "norm",
19
+ "input_layernorm"
20
+ ],
21
+ "peft_type": "LORA",
22
+ "r": 64,
23
+ "rank_pattern": {},
24
+ "revision": null,
25
+ "target_modules": [
26
+ "down_proj",
27
+ "lm_head",
28
+ "k_proj",
29
+ "o_proj",
30
+ "gate_proj",
31
+ "q_proj",
32
+ "up_proj",
33
+ "v_proj",
34
+ "embed_tokens"
35
+ ],
36
+ "task_type": "CAUSAL_LM",
37
+ "use_rslora": false
38
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:045963d1f685bb2950bf65ddf2564f7fe89d36d16a4994d89537cb9d41b689c2
3
+ size 363277008