update
Browse files- README.md +1 -1
- adapter_config.json +9 -9
- adapter_model.safetensors +2 -2
- added_tokens.json +24 -0
- chat_template.jinja +0 -87
- merges.txt +0 -0
- special_tokens_map.json +17 -16
- tokenizer.json +2 -2
- tokenizer.model +0 -3
- tokenizer_config.json +0 -0
- vocab.json +0 -0
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
base_model:
|
| 3 |
library_name: peft
|
| 4 |
---
|
| 5 |
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: Qwen/Qwen2.5-7B-Instruct
|
| 3 |
library_name: peft
|
| 4 |
---
|
| 5 |
|
adapter_config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"alpha_pattern": {},
|
| 3 |
"auto_mapping": null,
|
| 4 |
-
"base_model_name_or_path": "
|
| 5 |
"bias": "none",
|
| 6 |
"corda_config": null,
|
| 7 |
"eva_config": null,
|
|
@@ -15,25 +15,25 @@
|
|
| 15 |
"loftq_config": {},
|
| 16 |
"lora_alpha": 64,
|
| 17 |
"lora_bias": false,
|
| 18 |
-
"lora_dropout": 0.
|
| 19 |
"megatron_config": null,
|
| 20 |
"megatron_core": "megatron.core",
|
| 21 |
"modules_to_save": null,
|
| 22 |
"peft_type": "LORA",
|
| 23 |
-
"r":
|
| 24 |
"rank_pattern": {},
|
| 25 |
"revision": null,
|
| 26 |
"target_modules": [
|
| 27 |
-
"k_proj",
|
| 28 |
-
"gate_proj",
|
| 29 |
-
"q_proj",
|
| 30 |
"down_proj",
|
|
|
|
| 31 |
"o_proj",
|
|
|
|
| 32 |
"v_proj",
|
| 33 |
-
"up_proj"
|
|
|
|
| 34 |
],
|
| 35 |
"task_type": "CAUSAL_LM",
|
| 36 |
"trainable_token_indices": null,
|
| 37 |
-
"use_dora":
|
| 38 |
-
"use_rslora":
|
| 39 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"alpha_pattern": {},
|
| 3 |
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "Qwen/Qwen2.5-7B-Instruct",
|
| 5 |
"bias": "none",
|
| 6 |
"corda_config": null,
|
| 7 |
"eva_config": null,
|
|
|
|
| 15 |
"loftq_config": {},
|
| 16 |
"lora_alpha": 64,
|
| 17 |
"lora_bias": false,
|
| 18 |
+
"lora_dropout": 0.1,
|
| 19 |
"megatron_config": null,
|
| 20 |
"megatron_core": "megatron.core",
|
| 21 |
"modules_to_save": null,
|
| 22 |
"peft_type": "LORA",
|
| 23 |
+
"r": 32,
|
| 24 |
"rank_pattern": {},
|
| 25 |
"revision": null,
|
| 26 |
"target_modules": [
|
|
|
|
|
|
|
|
|
|
| 27 |
"down_proj",
|
| 28 |
+
"q_proj",
|
| 29 |
"o_proj",
|
| 30 |
+
"k_proj",
|
| 31 |
"v_proj",
|
| 32 |
+
"up_proj",
|
| 33 |
+
"gate_proj"
|
| 34 |
],
|
| 35 |
"task_type": "CAUSAL_LM",
|
| 36 |
"trainable_token_indices": null,
|
| 37 |
+
"use_dora": false,
|
| 38 |
+
"use_rslora": false
|
| 39 |
}
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c59df14199bdfe86154b8f1d86be70f7ed5787786665e3d60e037787befaca4
|
| 3 |
+
size 323014168
|
added_tokens.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</tool_call>": 151658,
|
| 3 |
+
"<tool_call>": 151657,
|
| 4 |
+
"<|box_end|>": 151649,
|
| 5 |
+
"<|box_start|>": 151648,
|
| 6 |
+
"<|endoftext|>": 151643,
|
| 7 |
+
"<|file_sep|>": 151664,
|
| 8 |
+
"<|fim_middle|>": 151660,
|
| 9 |
+
"<|fim_pad|>": 151662,
|
| 10 |
+
"<|fim_prefix|>": 151659,
|
| 11 |
+
"<|fim_suffix|>": 151661,
|
| 12 |
+
"<|im_end|>": 151645,
|
| 13 |
+
"<|im_start|>": 151644,
|
| 14 |
+
"<|image_pad|>": 151655,
|
| 15 |
+
"<|object_ref_end|>": 151647,
|
| 16 |
+
"<|object_ref_start|>": 151646,
|
| 17 |
+
"<|quad_end|>": 151651,
|
| 18 |
+
"<|quad_start|>": 151650,
|
| 19 |
+
"<|repo_name|>": 151663,
|
| 20 |
+
"<|video_pad|>": 151656,
|
| 21 |
+
"<|vision_end|>": 151653,
|
| 22 |
+
"<|vision_pad|>": 151654,
|
| 23 |
+
"<|vision_start|>": 151652
|
| 24 |
+
}
|
chat_template.jinja
DELETED
|
@@ -1,87 +0,0 @@
|
|
| 1 |
-
{%- if messages[0]["role"] == "system" %}
|
| 2 |
-
{%- set system_message = messages[0]["content"] %}
|
| 3 |
-
{%- set loop_messages = messages[1:] %}
|
| 4 |
-
{%- else %}
|
| 5 |
-
{%- set loop_messages = messages %}
|
| 6 |
-
{%- endif %}
|
| 7 |
-
{%- if not tools is defined %}
|
| 8 |
-
{%- set tools = none %}
|
| 9 |
-
{%- endif %}
|
| 10 |
-
{%- set user_messages = loop_messages | selectattr("role", "equalto", "user") | list %}
|
| 11 |
-
|
| 12 |
-
{#- This block checks for alternating user/assistant messages, skipping tool calling messages #}
|
| 13 |
-
{%- set ns = namespace() %}
|
| 14 |
-
{%- set ns.index = 0 %}
|
| 15 |
-
{%- for message in loop_messages %}
|
| 16 |
-
{%- if not (message.role == "tool" or message.role == "tool_results" or (message.tool_calls is defined and message.tool_calls is not none)) %}
|
| 17 |
-
{%- if (message["role"] == "user") != (ns.index % 2 == 0) %}
|
| 18 |
-
{{- raise_exception("After the optional system message, conversation roles must alternate user/assistant/user/assistant/...") }}
|
| 19 |
-
{%- endif %}
|
| 20 |
-
{%- set ns.index = ns.index + 1 %}
|
| 21 |
-
{%- endif %}
|
| 22 |
-
{%- endfor %}
|
| 23 |
-
|
| 24 |
-
{{- bos_token }}
|
| 25 |
-
{%- for message in loop_messages %}
|
| 26 |
-
{%- if message["role"] == "user" %}
|
| 27 |
-
{%- if tools is not none and (message == user_messages[-1]) %}
|
| 28 |
-
{{- "[AVAILABLE_TOOLS] [" }}
|
| 29 |
-
{%- for tool in tools %}
|
| 30 |
-
{%- set tool = tool.function %}
|
| 31 |
-
{{- '{"type": "function", "function": {' }}
|
| 32 |
-
{%- for key, val in tool.items() if key != "return" %}
|
| 33 |
-
{%- if val is string %}
|
| 34 |
-
{{- '"' + key + '": "' + val + '"' }}
|
| 35 |
-
{%- else %}
|
| 36 |
-
{{- '"' + key + '": ' + val|tojson }}
|
| 37 |
-
{%- endif %}
|
| 38 |
-
{%- if not loop.last %}
|
| 39 |
-
{{- ", " }}
|
| 40 |
-
{%- endif %}
|
| 41 |
-
{%- endfor %}
|
| 42 |
-
{{- "}}" }}
|
| 43 |
-
{%- if not loop.last %}
|
| 44 |
-
{{- ", " }}
|
| 45 |
-
{%- else %}
|
| 46 |
-
{{- "]" }}
|
| 47 |
-
{%- endif %}
|
| 48 |
-
{%- endfor %}
|
| 49 |
-
{{- "[/AVAILABLE_TOOLS]" }}
|
| 50 |
-
{%- endif %}
|
| 51 |
-
{%- if loop.last and system_message is defined %}
|
| 52 |
-
{{- "[INST] " + system_message + "\n\n" + message["content"] + "[/INST]" }}
|
| 53 |
-
{%- else %}
|
| 54 |
-
{{- "[INST] " + message["content"] + "[/INST]" }}
|
| 55 |
-
{%- endif %}
|
| 56 |
-
{%- elif message.tool_calls is defined and message.tool_calls is not none %}
|
| 57 |
-
{{- "[TOOL_CALLS] [" }}
|
| 58 |
-
{%- for tool_call in message.tool_calls %}
|
| 59 |
-
{%- set out = tool_call.function|tojson %}
|
| 60 |
-
{{- out[:-1] }}
|
| 61 |
-
{%- if not tool_call.id is defined or tool_call.id|length != 9 %}
|
| 62 |
-
{{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }}
|
| 63 |
-
{%- endif %}
|
| 64 |
-
{{- ', "id": "' + tool_call.id + '"}' }}
|
| 65 |
-
{%- if not loop.last %}
|
| 66 |
-
{{- ", " }}
|
| 67 |
-
{%- else %}
|
| 68 |
-
{{- "]" + eos_token }}
|
| 69 |
-
{%- endif %}
|
| 70 |
-
{%- endfor %}
|
| 71 |
-
{%- elif message["role"] == "assistant" %}
|
| 72 |
-
{{- " " + message["content"]|trim + eos_token}}
|
| 73 |
-
{%- elif message["role"] == "tool_results" or message["role"] == "tool" %}
|
| 74 |
-
{%- if message.content is defined and message.content.content is defined %}
|
| 75 |
-
{%- set content = message.content.content %}
|
| 76 |
-
{%- else %}
|
| 77 |
-
{%- set content = message.content %}
|
| 78 |
-
{%- endif %}
|
| 79 |
-
{{- '[TOOL_RESULTS] {"content": ' + content|string + ", " }}
|
| 80 |
-
{%- if not message.tool_call_id is defined or message.tool_call_id|length != 9 %}
|
| 81 |
-
{{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }}
|
| 82 |
-
{%- endif %}
|
| 83 |
-
{{- '"call_id": "' + message.tool_call_id + '"}[/TOOL_RESULTS]' }}
|
| 84 |
-
{%- else %}
|
| 85 |
-
{{- raise_exception("Only user and assistant roles are supported, with the exception of an initial optional system message!") }}
|
| 86 |
-
{%- endif %}
|
| 87 |
-
{%- endfor %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
special_tokens_map.json
CHANGED
|
@@ -1,27 +1,28 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
"
|
| 4 |
-
"
|
| 5 |
-
"
|
| 6 |
-
"
|
| 7 |
-
"
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
"eos_token": {
|
| 10 |
-
"content": "<
|
| 11 |
"lstrip": false,
|
| 12 |
"normalized": false,
|
| 13 |
"rstrip": false,
|
| 14 |
"single_word": false
|
| 15 |
},
|
| 16 |
"pad_token": {
|
| 17 |
-
"content": "
|
| 18 |
-
"lstrip": false,
|
| 19 |
-
"normalized": false,
|
| 20 |
-
"rstrip": false,
|
| 21 |
-
"single_word": false
|
| 22 |
-
},
|
| 23 |
-
"unk_token": {
|
| 24 |
-
"content": "<unk>",
|
| 25 |
"lstrip": false,
|
| 26 |
"normalized": false,
|
| 27 |
"rstrip": false,
|
|
|
|
| 1 |
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>",
|
| 5 |
+
"<|object_ref_start|>",
|
| 6 |
+
"<|object_ref_end|>",
|
| 7 |
+
"<|box_start|>",
|
| 8 |
+
"<|box_end|>",
|
| 9 |
+
"<|quad_start|>",
|
| 10 |
+
"<|quad_end|>",
|
| 11 |
+
"<|vision_start|>",
|
| 12 |
+
"<|vision_end|>",
|
| 13 |
+
"<|vision_pad|>",
|
| 14 |
+
"<|image_pad|>",
|
| 15 |
+
"<|video_pad|>"
|
| 16 |
+
],
|
| 17 |
"eos_token": {
|
| 18 |
+
"content": "<|im_end|>",
|
| 19 |
"lstrip": false,
|
| 20 |
"normalized": false,
|
| 21 |
"rstrip": false,
|
| 22 |
"single_word": false
|
| 23 |
},
|
| 24 |
"pad_token": {
|
| 25 |
+
"content": "<|endoftext|>",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
"lstrip": false,
|
| 27 |
"normalized": false,
|
| 28 |
"rstrip": false,
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
|
| 3 |
+
size 11421896
|
tokenizer.model
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:37f00374dea48658ee8f5d0f21895b9bc55cb0103939607c8185bfd1c6ca1f89
|
| 3 |
-
size 587404
|
|
|
|
|
|
|
|
|
|
|
|
tokenizer_config.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|