kromeurus commited on
Commit
0112fc1
1 Parent(s): 7c76413

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,33 +1,34 @@
1
  ---
2
  base_model:
3
- - crestf411/L3.1-8B-sunfall-v0.6.1-dpo
4
  library_name: transformers
5
  tags:
6
  - mergekit
7
  - merge
8
 
9
  ---
10
- # lemoist
11
 
12
  This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
13
 
14
  ## Merge Details
15
  ### Merge Method
16
 
17
- This model was merged using the linear [DARE](https://arxiv.org/abs/2311.03099) merge method using [crestf411/L3.1-8B-sunfall-v0.6.1-dpo](https://huggingface.co/crestf411/L3.1-8B-sunfall-v0.6.1-dpo) as a base.
18
 
19
  ### Models Merged
20
 
21
  The following models were included in the merge:
22
- * merge/lemoist.b
23
- * merge/lemoist.a
 
24
 
25
  ### Configuration
26
 
27
  The following YAML configuration was used to produce this model:
28
 
29
  ```yaml
30
- base_model: crestf411/L3.1-8B-sunfall-v0.6.1-dpo
31
  dtype: float32
32
  merge_method: dare_linear
33
  out_dtype: bfloat16
@@ -37,14 +38,18 @@ parameters:
37
  slices:
38
  - sources:
39
  - layer_range: [0, 32]
40
- model: merge/lemoist.b
41
  parameters:
42
- weight: 0.5
43
  - layer_range: [0, 32]
44
- model: merge/lemoist.a
45
  parameters:
46
- weight: 0.6
47
  - layer_range: [0, 32]
48
- model: crestf411/L3.1-8B-sunfall-v0.6.1-dpo
 
 
 
 
49
  tokenizer_source: base
50
  ```
 
1
  ---
2
  base_model:
3
+ - Undi95/Meta-Llama-3.1-8B-Claude
4
  library_name: transformers
5
  tags:
6
  - mergekit
7
  - merge
8
 
9
  ---
10
+ # stablerp
11
 
12
  This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
13
 
14
  ## Merge Details
15
  ### Merge Method
16
 
17
+ This model was merged using the linear [DARE](https://arxiv.org/abs/2311.03099) merge method using [Undi95/Meta-Llama-3.1-8B-Claude](https://huggingface.co/Undi95/Meta-Llama-3.1-8B-Claude) as a base.
18
 
19
  ### Models Merged
20
 
21
  The following models were included in the merge:
22
+ * merge/stablerp.c
23
+ * merge/stablerp.a
24
+ * merge/stablerp.b
25
 
26
  ### Configuration
27
 
28
  The following YAML configuration was used to produce this model:
29
 
30
  ```yaml
31
+ base_model: Undi95/Meta-Llama-3.1-8B-Claude
32
  dtype: float32
33
  merge_method: dare_linear
34
  out_dtype: bfloat16
 
38
  slices:
39
  - sources:
40
  - layer_range: [0, 32]
41
+ model: merge/stablerp.b
42
  parameters:
43
+ weight: [1.0, 0.2]
44
  - layer_range: [0, 32]
45
+ model: merge/stablerp.a
46
  parameters:
47
+ weight: [0.1, 0.5]
48
  - layer_range: [0, 32]
49
+ model: merge/stablerp.c
50
+ parameters:
51
+ weight: [0.1, 0.5]
52
+ - layer_range: [0, 32]
53
+ model: Undi95/Meta-Llama-3.1-8B-Claude
54
  tokenizer_source: base
55
  ```
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "crestf411/L3.1-8B-sunfall-v0.6.1-dpo",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
 
1
  {
2
+ "_name_or_path": "Undi95/Meta-Llama-3.1-8B-Claude",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
mergekit_config.yml CHANGED
@@ -1,4 +1,4 @@
1
- base_model: crestf411/L3.1-8B-sunfall-v0.6.1-dpo
2
  dtype: float32
3
  merge_method: dare_linear
4
  out_dtype: bfloat16
@@ -8,13 +8,17 @@ parameters:
8
  slices:
9
  - sources:
10
  - layer_range: [0, 32]
11
- model: merge/lemoist.b
12
  parameters:
13
- weight: 0.5
14
  - layer_range: [0, 32]
15
- model: merge/lemoist.a
16
  parameters:
17
- weight: 0.6
18
  - layer_range: [0, 32]
19
- model: crestf411/L3.1-8B-sunfall-v0.6.1-dpo
 
 
 
 
20
  tokenizer_source: base
 
1
+ base_model: Undi95/Meta-Llama-3.1-8B-Claude
2
  dtype: float32
3
  merge_method: dare_linear
4
  out_dtype: bfloat16
 
8
  slices:
9
  - sources:
10
  - layer_range: [0, 32]
11
+ model: merge/stablerp.b
12
  parameters:
13
+ weight: [1.0, 0.2]
14
  - layer_range: [0, 32]
15
+ model: merge/stablerp.a
16
  parameters:
17
+ weight: [0.1, 0.5]
18
  - layer_range: [0, 32]
19
+ model: merge/stablerp.c
20
+ parameters:
21
+ weight: [0.1, 0.5]
22
+ - layer_range: [0, 32]
23
+ model: Undi95/Meta-Llama-3.1-8B-Claude
24
  tokenizer_source: base
model-00001-of-00006.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7922e2d89aebed031e43c79c3e4cd0e73c496ac6f3489bebf63cdb819c06e3f3
3
  size 2973804928
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ed44f3f8fae973becdb6b0fa185ce906ba885442b24dda399a34e3d9b8afd60
3
  size 2973804928
model-00002-of-00006.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f0ac2265545acf59558f0f4b6c609ab9dc117e5b49b74e6a51bf2898dff4a2fe
3
  size 2978069224
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa4308798be701284de395d2cecf3c39193a8d8a7c6cb45043e4374793fae43d
3
  size 2978069224
model-00003-of-00006.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e72901f4081dc874a31c327f0643121ef06c3b72f0d019dcdf1faa03c89480cd
3
  size 2927737664
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52a7049cd0657ebb78a38a5b84252906948dd42d2628d10926b5530037bb9134
3
  size 2927737664
model-00004-of-00006.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c59bbd4bf737fe225eabaad8d53cc95c579e9147ff945ba8639081c6d0143be2
3
  size 2936134720
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32ea55be452886499ff7fa8c2eefd02fdd942dfc2e1c7d6dbd78a57603e60069
3
  size 2936134720
model-00005-of-00006.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ae70c1cb6d1c526bb9c0cc9a99cb1dc4043503a9d971cfa792f38e86d47324b7
3
  size 2936134688
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:587c055310cd18b4e881e5e20a7bfcf10f33eecace9c9740198d154560cb1675
3
  size 2936134688
model-00006-of-00006.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d22b09cb5f704994e9b91ef605a08bbd7e33f34d22ed93ba3774184764841fe1
3
  size 1308675104
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38bde6312d031a03211f14a787829da6ab645718fbcc2bc61f6f189ee4f08c33
3
  size 1308675104
special_tokens_map.json CHANGED
@@ -12,12 +12,5 @@
12
  "normalized": false,
13
  "rstrip": false,
14
  "single_word": false
15
- },
16
- "pad_token": {
17
- "content": "<|end_of_text|>",
18
- "lstrip": false,
19
- "normalized": false,
20
- "rstrip": false,
21
- "single_word": false
22
  }
23
  }
 
12
  "normalized": false,
13
  "rstrip": false,
14
  "single_word": false
 
 
 
 
 
 
 
15
  }
16
  }
tokenizer_config.json CHANGED
@@ -2050,7 +2050,7 @@
2050
  }
2051
  },
2052
  "bos_token": "<|begin_of_text|>",
2053
- "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}{% endif %}",
2054
  "clean_up_tokenization_spaces": true,
2055
  "eos_token": "<|eot_id|>",
2056
  "model_input_names": [
@@ -2058,6 +2058,5 @@
2058
  "attention_mask"
2059
  ],
2060
  "model_max_length": 131072,
2061
- "pad_token": "<|end_of_text|>",
2062
  "tokenizer_class": "PreTrainedTokenizerFast"
2063
  }
 
2050
  }
2051
  },
2052
  "bos_token": "<|begin_of_text|>",
2053
+ "chat_template": "{{- bos_token }}\n{%- if custom_tools is defined %}\n {%- set tools = custom_tools %}\n{%- endif %}\n{%- if not tools_in_user_message is defined %}\n {%- set tools_in_user_message = true %}\n{%- endif %}\n{%- if not date_string is defined %}\n {%- set date_string = \"26 Jul 2024\" %}\n{%- endif %}\n{%- if not tools is defined %}\n {%- set tools = none %}\n{%- endif %}\n\n{#- This block extracts the system message, so we can slot it into the right place. #}\n{%- if messages[0]['role'] == 'system' %}\n {%- set system_message = messages[0]['content']|trim %}\n {%- set messages = messages[1:] %}\n{%- else %}\n {%- set system_message = \"\" %}\n{%- endif %}\n\n{#- System message + builtin tools #}\n{{- \"<|start_header_id|>system<|end_header_id|>\\n\\n\" }}\n{%- if builtin_tools is defined or tools is not none %}\n {{- \"Environment: ipython\\n\" }}\n{%- endif %}\n{%- if builtin_tools is defined %}\n {{- \"Tools: \" + builtin_tools | reject('equalto', 'code_interpreter') | join(\", \") + \"\\n\\n\"}}\n{%- endif %}\n{{- \"Cutting Knowledge Date: December 2023\\n\" }}\n{{- \"Today Date: \" + date_string + \"\\n\\n\" }}\n{%- if tools is not none and not tools_in_user_message %}\n {{- \"You have access to the following functions. To call a function, please respond with JSON for a function call.\" }}\n {{- 'Respond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.' }}\n {{- \"Do not use variables.\\n\\n\" }}\n {%- for t in tools %}\n {{- t | tojson(indent=4) }}\n {{- \"\\n\\n\" }}\n {%- endfor %}\n{%- endif %}\n{{- system_message }}\n{{- \"<|eot_id|>\" }}\n\n{#- Custom tools are passed in a user message with some extra guidance #}\n{%- if tools_in_user_message and not tools is none %}\n {#- Extract the first user message so we can plug it in here #}\n {%- if messages | length != 0 %}\n {%- set first_user_message = messages[0]['content']|trim %}\n {%- set messages = messages[1:] %}\n {%- else %}\n {{- raise_exception(\"Cannot put tools in the first user message when there's no first user message!\") }}\n{%- endif %}\n {{- '<|start_header_id|>user<|end_header_id|>\\n\\n' -}}\n {{- \"Given the following functions, please respond with a JSON for a function call \" }}\n {{- \"with its proper arguments that best answers the given prompt.\\n\\n\" }}\n {{- 'Respond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.' }}\n {{- \"Do not use variables.\\n\\n\" }}\n {%- for t in tools %}\n {{- t | tojson(indent=4) }}\n {{- \"\\n\\n\" }}\n {%- endfor %}\n {{- first_user_message + \"<|eot_id|>\"}}\n{%- endif %}\n\n{%- for message in messages %}\n {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}\n {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\\n\\n'+ message['content'] | trim + '<|eot_id|>' }}\n {%- elif 'tool_calls' in message %}\n {%- if not message.tool_calls|length == 1 %}\n {{- raise_exception(\"This model only supports single tool-calls at once!\") }}\n {%- endif %}\n {%- set tool_call = message.tool_calls[0].function %}\n {%- if builtin_tools is defined and tool_call.name in builtin_tools %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\\n\\n' -}}\n {{- \"<|python_tag|>\" + tool_call.name + \".call(\" }}\n {%- for arg_name, arg_val in tool_call.arguments | items %}\n {{- arg_name + '=\"' + arg_val + '\"' }}\n {%- if not loop.last %}\n {{- \", \" }}\n {%- endif %}\n {%- endfor %}\n {{- \")\" }}\n {%- else %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\\n\\n' -}}\n {{- '{\"name\": \"' + tool_call.name + '\", ' }}\n {{- '\"parameters\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- \"}\" }}\n {%- endif %}\n {%- if builtin_tools is defined %}\n {#- This means we're in ipython mode #}\n {{- \"<|eom_id|>\" }}\n {%- else %}\n {{- \"<|eot_id|>\" }}\n {%- endif %}\n {%- elif message.role == \"tool\" or message.role == \"ipython\" %}\n {{- \"<|start_header_id|>ipython<|end_header_id|>\\n\\n\" }}\n {%- if message.content is mapping or message.content is iterable %}\n {{- message.content | tojson }}\n {%- else %}\n {{- message.content }}\n {%- endif %}\n {{- \"<|eot_id|>\" }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\\n\\n' }}\n{%- endif %}\n",
2054
  "clean_up_tokenization_spaces": true,
2055
  "eos_token": "<|eot_id|>",
2056
  "model_input_names": [
 
2058
  "attention_mask"
2059
  ],
2060
  "model_max_length": 131072,
 
2061
  "tokenizer_class": "PreTrainedTokenizerFast"
2062
  }