Instructions to use memevis/Affine-ppp0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use memevis/Affine-ppp0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="memevis/Affine-ppp0") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("memevis/Affine-ppp0") model = AutoModelForCausalLM.from_pretrained("memevis/Affine-ppp0") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use memevis/Affine-ppp0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "memevis/Affine-ppp0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "memevis/Affine-ppp0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/memevis/Affine-ppp0
- SGLang
How to use memevis/Affine-ppp0 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "memevis/Affine-ppp0" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "memevis/Affine-ppp0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "memevis/Affine-ppp0" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "memevis/Affine-ppp0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use memevis/Affine-ppp0 with Docker Model Runner:
docker model run hf.co/memevis/Affine-ppp0
Upload tokenizer
Browse files- added_tokens.json +28 -0
- chat_template.jinja +69 -326
- merges.txt +0 -0
- special_tokens_map.json +17 -9
- tokenizer.json +2 -2
- tokenizer_config.json +116 -58
- vocab.json +0 -0
added_tokens.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</think>": 151668,
|
| 3 |
+
"</tool_call>": 151658,
|
| 4 |
+
"</tool_response>": 151666,
|
| 5 |
+
"<think>": 151667,
|
| 6 |
+
"<tool_call>": 151657,
|
| 7 |
+
"<tool_response>": 151665,
|
| 8 |
+
"<|box_end|>": 151649,
|
| 9 |
+
"<|box_start|>": 151648,
|
| 10 |
+
"<|endoftext|>": 151643,
|
| 11 |
+
"<|file_sep|>": 151664,
|
| 12 |
+
"<|fim_middle|>": 151660,
|
| 13 |
+
"<|fim_pad|>": 151662,
|
| 14 |
+
"<|fim_prefix|>": 151659,
|
| 15 |
+
"<|fim_suffix|>": 151661,
|
| 16 |
+
"<|im_end|>": 151645,
|
| 17 |
+
"<|im_start|>": 151644,
|
| 18 |
+
"<|image_pad|>": 151655,
|
| 19 |
+
"<|object_ref_end|>": 151647,
|
| 20 |
+
"<|object_ref_start|>": 151646,
|
| 21 |
+
"<|quad_end|>": 151651,
|
| 22 |
+
"<|quad_start|>": 151650,
|
| 23 |
+
"<|repo_name|>": 151663,
|
| 24 |
+
"<|video_pad|>": 151656,
|
| 25 |
+
"<|vision_end|>": 151653,
|
| 26 |
+
"<|vision_pad|>": 151654,
|
| 27 |
+
"<|vision_start|>": 151652
|
| 28 |
+
}
|
chat_template.jinja
CHANGED
|
@@ -1,337 +1,80 @@
|
|
| 1 |
-
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
{
|
| 9 |
-
{%-
|
| 10 |
-
|
| 11 |
-
{%- if param_spec['items'] -%}
|
| 12 |
-
{%- if param_spec['items']['type'] == "string" -%}
|
| 13 |
-
{{- "string[]" }}
|
| 14 |
-
{%- elif param_spec['items']['type'] == "number" -%}
|
| 15 |
-
{{- "number[]" }}
|
| 16 |
-
{%- elif param_spec['items']['type'] == "integer" -%}
|
| 17 |
-
{{- "number[]" }}
|
| 18 |
-
{%- elif param_spec['items']['type'] == "boolean" -%}
|
| 19 |
-
{{- "boolean[]" }}
|
| 20 |
-
{%- else -%}
|
| 21 |
-
{%- set inner_type = render_typescript_type(param_spec['items'], required_params) -%}
|
| 22 |
-
{%- if inner_type == "object | object" or inner_type|length > 50 -%}
|
| 23 |
-
{{- "any[]" }}
|
| 24 |
-
{%- else -%}
|
| 25 |
-
{{- inner_type + "[]" }}
|
| 26 |
-
{%- endif -%}
|
| 27 |
-
{%- endif -%}
|
| 28 |
-
{%- if param_spec.nullable -%}
|
| 29 |
-
{{- " | null" }}
|
| 30 |
-
{%- endif -%}
|
| 31 |
-
{%- else -%}
|
| 32 |
-
{{- "any[]" }}
|
| 33 |
-
{%- if param_spec.nullable -%}
|
| 34 |
-
{{- " | null" }}
|
| 35 |
-
{%- endif -%}
|
| 36 |
-
{%- endif -%}
|
| 37 |
-
{%- elif param_spec.type is defined and param_spec.type is iterable and param_spec.type is not string and param_spec.type is not mapping and param_spec.type[0] is defined -%}
|
| 38 |
-
{#- Handle array of types like ["object", "object"] from Union[dict, list] #}
|
| 39 |
-
{%- if param_spec.type | length > 1 -%}
|
| 40 |
-
{{- param_spec.type | join(" | ") }}
|
| 41 |
-
{%- else -%}
|
| 42 |
-
{{- param_spec.type[0] }}
|
| 43 |
-
{%- endif -%}
|
| 44 |
-
{%- elif param_spec.oneOf -%}
|
| 45 |
-
{#- Handle oneOf schemas - check for complex unions and fallback to any #}
|
| 46 |
-
{%- set has_object_variants = false -%}
|
| 47 |
-
{%- for variant in param_spec.oneOf -%}
|
| 48 |
-
{%- if variant.type == "object" -%}
|
| 49 |
-
{%- set has_object_variants = true -%}
|
| 50 |
-
{%- endif -%}
|
| 51 |
-
{%- endfor -%}
|
| 52 |
-
{%- if has_object_variants and param_spec.oneOf|length > 1 -%}
|
| 53 |
-
{{- "any" }}
|
| 54 |
-
{%- else -%}
|
| 55 |
-
{%- for variant in param_spec.oneOf -%}
|
| 56 |
-
{{- render_typescript_type(variant, required_params) -}}
|
| 57 |
-
{%- if variant.description %}
|
| 58 |
-
{{- "// " + variant.description }}
|
| 59 |
-
{%- endif -%}
|
| 60 |
-
{%- if variant.default is defined %}
|
| 61 |
-
{{ "// default: " + variant.default|tojson }}
|
| 62 |
-
{%- endif -%}
|
| 63 |
-
{%- if not loop.last %}
|
| 64 |
-
{{- " | " }}
|
| 65 |
-
{% endif -%}
|
| 66 |
-
{%- endfor -%}
|
| 67 |
-
{%- endif -%}
|
| 68 |
-
{%- elif param_spec.type == "string" -%}
|
| 69 |
-
{%- if param_spec.enum -%}
|
| 70 |
-
{{- '"' + param_spec.enum|join('" | "') + '"' -}}
|
| 71 |
-
{%- else -%}
|
| 72 |
-
{{- "string" }}
|
| 73 |
-
{%- if param_spec.nullable %}
|
| 74 |
-
{{- " | null" }}
|
| 75 |
-
{%- endif -%}
|
| 76 |
-
{%- endif -%}
|
| 77 |
-
{%- elif param_spec.type == "number" -%}
|
| 78 |
-
{{- "number" }}
|
| 79 |
-
{%- elif param_spec.type == "integer" -%}
|
| 80 |
-
{{- "number" }}
|
| 81 |
-
{%- elif param_spec.type == "boolean" -%}
|
| 82 |
-
{{- "boolean" }}
|
| 83 |
-
{%- elif param_spec.type == "object" -%}
|
| 84 |
-
{%- if param_spec.properties -%}
|
| 85 |
-
{{- "{\n" }}
|
| 86 |
-
{%- for prop_name, prop_spec in param_spec.properties.items() -%}
|
| 87 |
-
{{- prop_name -}}
|
| 88 |
-
{%- if prop_name not in (param_spec.required or []) -%}
|
| 89 |
-
{{- "?" }}
|
| 90 |
-
{%- endif -%}
|
| 91 |
-
{{- ": " }}
|
| 92 |
-
{{ render_typescript_type(prop_spec, param_spec.required or []) }}
|
| 93 |
-
{%- if not loop.last -%}
|
| 94 |
-
{{-", " }}
|
| 95 |
-
{%- endif -%}
|
| 96 |
-
{%- endfor -%}
|
| 97 |
-
{{- "}" }}
|
| 98 |
-
{%- else -%}
|
| 99 |
-
{{- "object" }}
|
| 100 |
-
{%- endif -%}
|
| 101 |
-
{%- else -%}
|
| 102 |
-
{{- "any" }}
|
| 103 |
{%- endif -%}
|
| 104 |
-
{
|
| 105 |
-
{%-
|
| 106 |
-
|
| 107 |
-
{
|
|
|
|
|
|
|
|
|
|
| 108 |
{%- for tool in tools %}
|
| 109 |
-
{
|
| 110 |
-
{{-
|
| 111 |
-
{{- "type "+ tool.name + " = " }}
|
| 112 |
-
{%- if tool.parameters and tool.parameters.properties %}
|
| 113 |
-
{{- "(_: {\n" }}
|
| 114 |
-
{%- for param_name, param_spec in tool.parameters.properties.items() %}
|
| 115 |
-
{%- if param_spec.description %}
|
| 116 |
-
{{- "// " + param_spec.description + "\n" }}
|
| 117 |
-
{%- endif %}
|
| 118 |
-
{{- param_name }}
|
| 119 |
-
{%- if param_name not in (tool.parameters.required or []) -%}
|
| 120 |
-
{{- "?" }}
|
| 121 |
-
{%- endif -%}
|
| 122 |
-
{{- ": " }}
|
| 123 |
-
{{- render_typescript_type(param_spec, tool.parameters.required or []) }}
|
| 124 |
-
{%- if param_spec.default is defined -%}
|
| 125 |
-
{%- if param_spec.enum %}
|
| 126 |
-
{{- ", // default: " + param_spec.default }}
|
| 127 |
-
{%- elif param_spec.oneOf %}
|
| 128 |
-
{{- "// default: " + param_spec.default }}
|
| 129 |
-
{%- else %}
|
| 130 |
-
{{- ", // default: " + param_spec.default|tojson }}
|
| 131 |
-
{%- endif -%}
|
| 132 |
-
{%- endif -%}
|
| 133 |
-
{%- if not loop.last %}
|
| 134 |
-
{{- ",\n" }}
|
| 135 |
-
{%- else %}
|
| 136 |
-
{{- ",\n" }}
|
| 137 |
-
{%- endif -%}
|
| 138 |
-
{%- endfor %}
|
| 139 |
-
{{- "}) => any;\n\n" }}
|
| 140 |
-
{%- else -%}
|
| 141 |
-
{{- "() => any;\n\n" }}
|
| 142 |
-
{%- endif -%}
|
| 143 |
{%- endfor %}
|
| 144 |
-
{{- "
|
| 145 |
-
{%- endmacro -%}
|
| 146 |
-
{%- macro render_builtin_tools(browser_tool, python_tool) -%}
|
| 147 |
-
{%- if browser_tool %}
|
| 148 |
-
{{- "## browser\n\n" }}
|
| 149 |
-
{{- "// Tool for browsing.\n" }}
|
| 150 |
-
{{- "// The `cursor` appears in brackets before each browsing display: `[{cursor}]`.\n" }}
|
| 151 |
-
{{- "// Cite information from the tool using the following format:\n" }}
|
| 152 |
-
{{- "// `【{cursor}†L{line_start}(-L{line_end})?】`, for example: `【6†L9-L11】` or `【8†L3】`.\n" }}
|
| 153 |
-
{{- "// Do not quote more than 10 words directly from the tool output.\n" }}
|
| 154 |
-
{{- "// sources=web (default: web)\n" }}
|
| 155 |
-
{{- "namespace browser {\n\n" }}
|
| 156 |
-
{{- "// Searches for information related to `query` and displays `topn` results.\n" }}
|
| 157 |
-
{{- "type search = (_: {\n" }}
|
| 158 |
-
{{- "query: string,\n" }}
|
| 159 |
-
{{- "topn?: number, // default: 10\n" }}
|
| 160 |
-
{{- "source?: string,\n" }}
|
| 161 |
-
{{- "}) => any;\n\n" }}
|
| 162 |
-
{{- "// Opens the link `id` from the page indicated by `cursor` starting at line number `loc`, showing `num_lines` lines.\n" }}
|
| 163 |
-
{{- "// Valid link ids are displayed with the formatting: `【{id}†.*】`.\n" }}
|
| 164 |
-
{{- "// If `cursor` is not provided, the most recent page is implied.\n" }}
|
| 165 |
-
{{- "// If `id` is a string, it is treated as a fully qualified URL associated with `source`.\n" }}
|
| 166 |
-
{{- "// If `loc` is not provided, the viewport will be positioned at the beginning of the document or centered on the most relevant passage, if available.\n" }}
|
| 167 |
-
{{- "// Use this function without `id` to scroll to a new location of an opened page.\n" }}
|
| 168 |
-
{{- "type open = (_: {\n" }}
|
| 169 |
-
{{- "id?: number | string, // default: -1\n" }}
|
| 170 |
-
{{- "cursor?: number, // default: -1\n" }}
|
| 171 |
-
{{- "loc?: number, // default: -1\n" }}
|
| 172 |
-
{{- "num_lines?: number, // default: -1\n" }}
|
| 173 |
-
{{- "view_source?: boolean, // default: false\n" }}
|
| 174 |
-
{{- "source?: string,\n" }}
|
| 175 |
-
{{- "}) => any;\n\n" }}
|
| 176 |
-
{{- "// Finds exact matches of `pattern` in the current page, or the page given by `cursor`.\n" }}
|
| 177 |
-
{{- "type find = (_: {\n" }}
|
| 178 |
-
{{- "pattern: string,\n" }}
|
| 179 |
-
{{- "cursor?: number, // default: -1\n" }}
|
| 180 |
-
{{- "}) => any;\n\n" }}
|
| 181 |
-
{{- "} // namespace browser\n\n" }}
|
| 182 |
-
{%- endif -%}
|
| 183 |
-
{%- if python_tool %}
|
| 184 |
-
{{- "## python\n\n" }}
|
| 185 |
-
{{- "Use this tool to execute Python code in your chain of thought. The code will not be shown to the user. This tool should be used for internal reasoning, but not for code that is intended to be visible to the user (e.g. when creating plots, tables, or files).\n\n" }}
|
| 186 |
-
{{- "When you send a message containing Python code to python, it will be executed in a stateful Jupyter notebook environment. python will respond with the output of the execution or time out after 120.0 seconds. The drive at '/mnt/data' can be used to save and persist user files. Internet access for this session is UNKNOWN. Depends on the cluster.\n\n" }}
|
| 187 |
-
{%- endif -%}
|
| 188 |
-
{%- endmacro -%}
|
| 189 |
-
{#- System Message Construction ============================================ #}
|
| 190 |
-
{%- macro build_system_message() -%}
|
| 191 |
-
{%- if model_identity is not defined %}
|
| 192 |
-
{%- set model_identity = "You are ChatGPT, a large language model trained by OpenAI." %}
|
| 193 |
-
{%- endif %}
|
| 194 |
-
{{- model_identity + "\n" }}
|
| 195 |
-
{{- "Knowledge cutoff: 2024-06\n" }}
|
| 196 |
-
{{- "Current date: " + strftime_now("%Y-%m-%d") + "\n\n" }}
|
| 197 |
-
{%- if reasoning_effort is not defined %}
|
| 198 |
-
{%- set reasoning_effort = "medium" %}
|
| 199 |
-
{%- endif %}
|
| 200 |
-
{{- "Reasoning: " + reasoning_effort + "\n\n" }}
|
| 201 |
-
{%- if builtin_tools %}
|
| 202 |
-
{{- "# Tools\n\n" }}
|
| 203 |
-
{%- set available_builtin_tools = namespace(browser=false, python=false) %}
|
| 204 |
-
{%- for tool in builtin_tools %}
|
| 205 |
-
{%- if tool == "browser" %}
|
| 206 |
-
{%- set available_builtin_tools.browser = true %}
|
| 207 |
-
{%- elif tool == "python" %}
|
| 208 |
-
{%- set available_builtin_tools.python = true %}
|
| 209 |
-
{%- endif %}
|
| 210 |
-
{%- endfor %}
|
| 211 |
-
{{- render_builtin_tools(available_builtin_tools.browser, available_builtin_tools.python) }}
|
| 212 |
-
{%- endif -%}
|
| 213 |
-
{{- "# Valid channels: analysis, commentary, final. Channel must be included for every message." }}
|
| 214 |
-
{%- if tools -%}
|
| 215 |
-
{{- "\nCalls to these tools must go to the commentary channel: 'functions'." }}
|
| 216 |
-
{%- endif -%}
|
| 217 |
-
{%- endmacro -%}
|
| 218 |
-
{#- Main Template Logic ================================================= #}
|
| 219 |
-
{#- Set defaults #}
|
| 220 |
-
{#- Render system message #}
|
| 221 |
-
{{- "<|start|>system<|message|>" }}
|
| 222 |
-
{{- build_system_message() }}
|
| 223 |
-
{{- "<|end|>" }}
|
| 224 |
-
{#- Extract developer message #}
|
| 225 |
-
{%- if messages[0].role == "developer" or messages[0].role == "system" %}
|
| 226 |
-
{%- set developer_message = messages[0].content %}
|
| 227 |
-
{%- set loop_messages = messages[1:] %}
|
| 228 |
{%- else %}
|
| 229 |
-
{%-
|
| 230 |
-
|
| 231 |
-
{%-
|
| 232 |
-
{
|
| 233 |
-
{%- if developer_message or tools %}
|
| 234 |
-
{{- "<|start|>developer<|message|>" }}
|
| 235 |
-
{%- if developer_message %}
|
| 236 |
-
{{- "# Instructions\n\n" }}
|
| 237 |
-
{{- developer_message }}
|
| 238 |
-
{{- "\n\n" }}
|
| 239 |
{%- endif %}
|
| 240 |
-
{%- if tools -%}
|
| 241 |
-
{{- "# Tools\n\n" }}
|
| 242 |
-
{{- render_tool_namespace("functions", tools) }}
|
| 243 |
-
{%- endif -%}
|
| 244 |
-
{{- "<|end|>" }}
|
| 245 |
{%- endif %}
|
| 246 |
-
{
|
| 247 |
-
{%-
|
| 248 |
-
{%-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
{
|
| 260 |
-
{%- endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 261 |
{%- endif %}
|
| 262 |
-
{%-
|
| 263 |
-
{
|
| 264 |
-
{#- has output a later <|final|> message, but otherwise we want to retain it. This is the only case #}
|
| 265 |
-
{#- when we render CoT/analysis messages in inference. #}
|
| 266 |
-
{%- set future_final_message = namespace(found=false) %}
|
| 267 |
-
{%- for future_message in loop_messages[loop.index:] %}
|
| 268 |
-
{%- if future_message.role == 'assistant' and "tool_calls" not in future_message %}
|
| 269 |
-
{%- set future_final_message.found = true %}
|
| 270 |
-
{%- endif %}
|
| 271 |
-
{%- endfor %}
|
| 272 |
-
{#- We assume max 1 tool call per message, and so we infer the tool call name #}
|
| 273 |
-
{#- in "tool" messages from the most recent assistant tool call name #}
|
| 274 |
-
{%- set tool_call = message.tool_calls[0] %}
|
| 275 |
-
{%- if tool_call.function %}
|
| 276 |
{%- set tool_call = tool_call.function %}
|
| 277 |
{%- endif %}
|
| 278 |
-
{
|
| 279 |
-
|
| 280 |
-
{
|
| 281 |
-
|
| 282 |
-
{
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
{{-
|
| 288 |
-
{{- tool_call.arguments|tojson }}
|
| 289 |
-
{{- "<|call|>" }}
|
| 290 |
-
{%- set last_tool_call.name = tool_call.name %}
|
| 291 |
-
{%- elif loop.last and not add_generation_prompt %}
|
| 292 |
-
{%- set has_loss = message.loss %}
|
| 293 |
-
{% if not has_loss %}
|
| 294 |
-
{%- if "thinking" in message %}
|
| 295 |
-
{{- "<|start|>assistant<|channel|>analysis<|message|>" + message.thinking + "<|end|>" }}
|
| 296 |
-
{%- endif %}
|
| 297 |
-
{#- <|return|> indicates the end of generation, but <|end|> does not #}
|
| 298 |
-
{#- <|return|> should never be an input to the model, but we include it as the final token #}
|
| 299 |
-
{#- when training, so the model learns to emit it. #}
|
| 300 |
-
{{- "<|start|>assistant<|channel|>final<|message|>" + message.content + "<|return|>" }}
|
| 301 |
-
{%- else %}
|
| 302 |
-
{%- generation %}
|
| 303 |
-
{%- if "thinking" in message %}
|
| 304 |
-
{{- "<|start|>assistant<|channel|>analysis<|message|>" + message.thinking + "<|end|>" }}
|
| 305 |
-
{%- endif %}
|
| 306 |
-
{#- <|return|> indicates the end of generation, but <|end|> does not #}
|
| 307 |
-
{#- <|return|> should never be an input to the model, but we include it as the final token #}
|
| 308 |
-
{#- when training, so the model learns to emit it. #}
|
| 309 |
-
{{- "<|start|>assistant<|channel|>final<|message|>" + message.content + "<|return|>" }}
|
| 310 |
-
{%- endgeneration %}
|
| 311 |
-
{%- endif %}
|
| 312 |
-
{%- else %}
|
| 313 |
-
{#- CoT is dropped during all previous turns, so we never render it for inference #}
|
| 314 |
-
{%- set has_loss = message.loss %}
|
| 315 |
-
{% if not has_loss %}
|
| 316 |
-
{{- "<|start|>assistant<|channel|>final<|message|>" + message.content + "<|return|>" }}
|
| 317 |
-
{%- else %}
|
| 318 |
-
{%- generation %}
|
| 319 |
-
{{- "<|start|>assistant<|channel|>final<|message|>" + message.content + "<|return|>" }}
|
| 320 |
-
{%- endgeneration %}
|
| 321 |
-
{%- endif %}
|
| 322 |
-
{%- set last_tool_call.name = none %}
|
| 323 |
{%- endif %}
|
| 324 |
-
|
| 325 |
-
{
|
| 326 |
-
|
|
|
|
|
|
|
| 327 |
{%- endif %}
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
{%- endfor -%}
|
| 334 |
-
{#- Generation prompt #}
|
| 335 |
-
{%- if add_generation_prompt -%}
|
| 336 |
-
<|start|>assistant
|
| 337 |
-
{%- endif -%}
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages and messages[0]['role'] == 'system' %}
|
| 4 |
+
{{- messages[0]['content'] }}
|
| 5 |
+
{%- else %}
|
| 6 |
+
{{- 'You are a helpful assistant.' }}
|
| 7 |
+
{%- endif %}
|
| 8 |
+
{%- set has_reasoning = tools | selectattr("type", "equalto", "reasoning") | list | length > 0 -%}
|
| 9 |
+
{%- if has_reasoning -%}
|
| 10 |
+
{%- set tools = tools | rejectattr("type", "equalto", "reasoning") | list -%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
{%- endif -%}
|
| 12 |
+
{{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query." }}
|
| 13 |
+
{%- if has_reasoning %}
|
| 14 |
+
{{- " Please generate reasoning before deciding which tools to use." }}
|
| 15 |
+
{%- else %}
|
| 16 |
+
{{- "" }}
|
| 17 |
+
{%- endif %}
|
| 18 |
+
{{- "\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
| 19 |
{%- for tool in tools %}
|
| 20 |
+
{{- "\n" }}
|
| 21 |
+
{{- tool | tojson }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
{%- endfor %}
|
| 23 |
+
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
{%- else %}
|
| 25 |
+
{%- if messages and messages[0]['role'] == 'system' %}
|
| 26 |
+
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
| 27 |
+
{%- else %}
|
| 28 |
+
{{- '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
{%- endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
{%- endif %}
|
| 31 |
+
{%- for message in messages %}
|
| 32 |
+
{%- if message.role == "user" %}
|
| 33 |
+
{%- if message['content'] -%}
|
| 34 |
+
{%- if message['content'] is string -%}
|
| 35 |
+
{{ '<|im_start|>user\n' + message['content'] }}
|
| 36 |
+
{%- else -%}
|
| 37 |
+
{{ '<|im_start|>user\n' }}
|
| 38 |
+
{%- for content in message['content'] -%}
|
| 39 |
+
{%- if content['type'] == 'text' -%}
|
| 40 |
+
{{ content['text'] }}
|
| 41 |
+
{%- else -%}
|
| 42 |
+
{{ '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 43 |
+
{%- endif -%}
|
| 44 |
+
{%- endfor -%}
|
| 45 |
+
{%- endif -%}
|
| 46 |
+
{{ '<|im_end|>\n' }}
|
| 47 |
+
{%- endif -%}
|
| 48 |
+
{%- elif (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
|
| 49 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
| 50 |
+
{%- elif message.role == "assistant" %}
|
| 51 |
+
{{- '<|im_start|>' + message.role }}
|
| 52 |
+
{%- if message.content %}
|
| 53 |
+
{{- '\n' + message.content }}
|
| 54 |
{%- endif %}
|
| 55 |
+
{%- for tool_call in message.tool_calls %}
|
| 56 |
+
{%- if tool_call.function is defined %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
{%- set tool_call = tool_call.function %}
|
| 58 |
{%- endif %}
|
| 59 |
+
{{- '\n<tool_call>\n{"name": "' }}
|
| 60 |
+
{{- tool_call.name }}
|
| 61 |
+
{{- '", "arguments": ' }}
|
| 62 |
+
{{- tool_call.arguments }}
|
| 63 |
+
{{- '}\n</tool_call>' }}
|
| 64 |
+
{%- endfor %}
|
| 65 |
+
{{- '<|im_end|>\n' }}
|
| 66 |
+
{%- elif message.role == "tool" %}
|
| 67 |
+
{%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
|
| 68 |
+
{{- '<|im_start|>user' }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
{%- endif %}
|
| 70 |
+
{{- '\n<tool_response>\n' }}
|
| 71 |
+
{{- message.content }}
|
| 72 |
+
{{- '\n</tool_response>' }}
|
| 73 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 74 |
+
{{- '<|im_end|>\n' }}
|
| 75 |
{%- endif %}
|
| 76 |
+
{%- endif %}
|
| 77 |
+
{%- endfor %}
|
| 78 |
+
{%- if add_generation_prompt %}
|
| 79 |
+
{{- '<|im_start|>assistant\n' }}
|
| 80 |
+
{%- endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
special_tokens_map.json
CHANGED
|
@@ -1,20 +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,
|
|
|
|
| 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": "<|im_end|>",
|
| 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:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
|
| 3 |
+
size 11422654
|
tokenizer_config.json
CHANGED
|
@@ -1,183 +1,241 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
| 2 |
"added_tokens_decoder": {
|
| 3 |
-
"
|
| 4 |
-
"content": "<|
|
| 5 |
"lstrip": false,
|
| 6 |
"normalized": false,
|
| 7 |
"rstrip": false,
|
| 8 |
"single_word": false,
|
| 9 |
"special": true
|
| 10 |
},
|
| 11 |
-
"
|
| 12 |
-
"content": "<|
|
| 13 |
"lstrip": false,
|
| 14 |
"normalized": false,
|
| 15 |
"rstrip": false,
|
| 16 |
"single_word": false,
|
| 17 |
"special": true
|
| 18 |
},
|
| 19 |
-
"
|
| 20 |
-
"content": "<|
|
| 21 |
"lstrip": false,
|
| 22 |
"normalized": false,
|
| 23 |
"rstrip": false,
|
| 24 |
"single_word": false,
|
| 25 |
"special": true
|
| 26 |
},
|
| 27 |
-
"
|
| 28 |
-
"content": "<|
|
| 29 |
"lstrip": false,
|
| 30 |
"normalized": false,
|
| 31 |
"rstrip": false,
|
| 32 |
"single_word": false,
|
| 33 |
"special": true
|
| 34 |
},
|
| 35 |
-
"
|
| 36 |
-
"content": "<|
|
| 37 |
"lstrip": false,
|
| 38 |
"normalized": false,
|
| 39 |
"rstrip": false,
|
| 40 |
"single_word": false,
|
| 41 |
"special": true
|
| 42 |
},
|
| 43 |
-
"
|
| 44 |
-
"content": "<|
|
| 45 |
"lstrip": false,
|
| 46 |
"normalized": false,
|
| 47 |
"rstrip": false,
|
| 48 |
"single_word": false,
|
| 49 |
"special": true
|
| 50 |
},
|
| 51 |
-
"
|
| 52 |
-
"content": "<|
|
| 53 |
"lstrip": false,
|
| 54 |
"normalized": false,
|
| 55 |
"rstrip": false,
|
| 56 |
"single_word": false,
|
| 57 |
"special": true
|
| 58 |
},
|
| 59 |
-
"
|
| 60 |
-
"content": "<|
|
| 61 |
"lstrip": false,
|
| 62 |
"normalized": false,
|
| 63 |
"rstrip": false,
|
| 64 |
"single_word": false,
|
| 65 |
"special": true
|
| 66 |
},
|
| 67 |
-
"
|
| 68 |
-
"content": "<|
|
| 69 |
"lstrip": false,
|
| 70 |
"normalized": false,
|
| 71 |
"rstrip": false,
|
| 72 |
"single_word": false,
|
| 73 |
"special": true
|
| 74 |
},
|
| 75 |
-
"
|
| 76 |
-
"content": "<|
|
| 77 |
"lstrip": false,
|
| 78 |
"normalized": false,
|
| 79 |
"rstrip": false,
|
| 80 |
"single_word": false,
|
| 81 |
"special": true
|
| 82 |
},
|
| 83 |
-
"
|
| 84 |
-
"content": "<|
|
| 85 |
"lstrip": false,
|
| 86 |
"normalized": false,
|
| 87 |
"rstrip": false,
|
| 88 |
"single_word": false,
|
| 89 |
"special": true
|
| 90 |
},
|
| 91 |
-
"
|
| 92 |
-
"content": "<|
|
| 93 |
"lstrip": false,
|
| 94 |
"normalized": false,
|
| 95 |
"rstrip": false,
|
| 96 |
"single_word": false,
|
| 97 |
"special": true
|
| 98 |
},
|
| 99 |
-
"
|
| 100 |
-
"content": "<|
|
| 101 |
"lstrip": false,
|
| 102 |
"normalized": false,
|
| 103 |
"rstrip": false,
|
| 104 |
"single_word": false,
|
| 105 |
"special": true
|
| 106 |
},
|
| 107 |
-
"
|
| 108 |
-
"content": "<|
|
| 109 |
"lstrip": false,
|
| 110 |
"normalized": false,
|
| 111 |
"rstrip": false,
|
| 112 |
"single_word": false,
|
| 113 |
"special": true
|
| 114 |
},
|
| 115 |
-
"
|
| 116 |
-
"content": "<
|
| 117 |
"lstrip": false,
|
| 118 |
"normalized": false,
|
| 119 |
"rstrip": false,
|
| 120 |
"single_word": false,
|
| 121 |
-
"special":
|
| 122 |
},
|
| 123 |
-
"
|
| 124 |
-
"content": "<
|
| 125 |
"lstrip": false,
|
| 126 |
"normalized": false,
|
| 127 |
"rstrip": false,
|
| 128 |
"single_word": false,
|
| 129 |
-
"special":
|
| 130 |
},
|
| 131 |
-
"
|
| 132 |
-
"content": "<|
|
| 133 |
"lstrip": false,
|
| 134 |
"normalized": false,
|
| 135 |
"rstrip": false,
|
| 136 |
"single_word": false,
|
| 137 |
-
"special":
|
| 138 |
},
|
| 139 |
-
"
|
| 140 |
-
"content": "<|
|
| 141 |
"lstrip": false,
|
| 142 |
"normalized": false,
|
| 143 |
"rstrip": false,
|
| 144 |
"single_word": false,
|
| 145 |
-
"special":
|
| 146 |
},
|
| 147 |
-
"
|
| 148 |
-
"content": "<|
|
| 149 |
"lstrip": false,
|
| 150 |
"normalized": false,
|
| 151 |
"rstrip": false,
|
| 152 |
"single_word": false,
|
| 153 |
-
"special":
|
| 154 |
},
|
| 155 |
-
"
|
| 156 |
-
"content": "<|
|
| 157 |
"lstrip": false,
|
| 158 |
"normalized": false,
|
| 159 |
"rstrip": false,
|
| 160 |
"single_word": false,
|
| 161 |
-
"special":
|
| 162 |
},
|
| 163 |
-
"
|
| 164 |
-
"content": "<|
|
| 165 |
"lstrip": false,
|
| 166 |
"normalized": false,
|
| 167 |
"rstrip": false,
|
| 168 |
"single_word": false,
|
| 169 |
-
"special":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
}
|
| 171 |
},
|
| 172 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
"clean_up_tokenization_spaces": false,
|
| 174 |
-
"eos_token": "<|
|
|
|
|
| 175 |
"extra_special_tokens": {},
|
| 176 |
-
"
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
"
|
| 181 |
-
"
|
| 182 |
-
"
|
| 183 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
"added_tokens_decoder": {
|
| 5 |
+
"151643": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
"lstrip": false,
|
| 8 |
"normalized": false,
|
| 9 |
"rstrip": false,
|
| 10 |
"single_word": false,
|
| 11 |
"special": true
|
| 12 |
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
"lstrip": false,
|
| 16 |
"normalized": false,
|
| 17 |
"rstrip": false,
|
| 18 |
"single_word": false,
|
| 19 |
"special": true
|
| 20 |
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
"lstrip": false,
|
| 24 |
"normalized": false,
|
| 25 |
"rstrip": false,
|
| 26 |
"single_word": false,
|
| 27 |
"special": true
|
| 28 |
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
"lstrip": false,
|
| 32 |
"normalized": false,
|
| 33 |
"rstrip": false,
|
| 34 |
"single_word": false,
|
| 35 |
"special": true
|
| 36 |
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
"lstrip": false,
|
| 40 |
"normalized": false,
|
| 41 |
"rstrip": false,
|
| 42 |
"single_word": false,
|
| 43 |
"special": true
|
| 44 |
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
"lstrip": false,
|
| 48 |
"normalized": false,
|
| 49 |
"rstrip": false,
|
| 50 |
"single_word": false,
|
| 51 |
"special": true
|
| 52 |
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
"lstrip": false,
|
| 56 |
"normalized": false,
|
| 57 |
"rstrip": false,
|
| 58 |
"single_word": false,
|
| 59 |
"special": true
|
| 60 |
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
"lstrip": false,
|
| 64 |
"normalized": false,
|
| 65 |
"rstrip": false,
|
| 66 |
"single_word": false,
|
| 67 |
"special": true
|
| 68 |
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
"lstrip": false,
|
| 72 |
"normalized": false,
|
| 73 |
"rstrip": false,
|
| 74 |
"single_word": false,
|
| 75 |
"special": true
|
| 76 |
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
"lstrip": false,
|
| 80 |
"normalized": false,
|
| 81 |
"rstrip": false,
|
| 82 |
"single_word": false,
|
| 83 |
"special": true
|
| 84 |
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
"lstrip": false,
|
| 88 |
"normalized": false,
|
| 89 |
"rstrip": false,
|
| 90 |
"single_word": false,
|
| 91 |
"special": true
|
| 92 |
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
"lstrip": false,
|
| 96 |
"normalized": false,
|
| 97 |
"rstrip": false,
|
| 98 |
"single_word": false,
|
| 99 |
"special": true
|
| 100 |
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
"lstrip": false,
|
| 104 |
"normalized": false,
|
| 105 |
"rstrip": false,
|
| 106 |
"single_word": false,
|
| 107 |
"special": true
|
| 108 |
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
"lstrip": false,
|
| 112 |
"normalized": false,
|
| 113 |
"rstrip": false,
|
| 114 |
"single_word": false,
|
| 115 |
"special": true
|
| 116 |
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
"lstrip": false,
|
| 120 |
"normalized": false,
|
| 121 |
"rstrip": false,
|
| 122 |
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
"lstrip": false,
|
| 128 |
"normalized": false,
|
| 129 |
"rstrip": false,
|
| 130 |
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
"lstrip": false,
|
| 136 |
"normalized": false,
|
| 137 |
"rstrip": false,
|
| 138 |
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
"lstrip": false,
|
| 144 |
"normalized": false,
|
| 145 |
"rstrip": false,
|
| 146 |
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
"lstrip": false,
|
| 152 |
"normalized": false,
|
| 153 |
"rstrip": false,
|
| 154 |
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
"lstrip": false,
|
| 160 |
"normalized": false,
|
| 161 |
"rstrip": false,
|
| 162 |
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
"lstrip": false,
|
| 168 |
"normalized": false,
|
| 169 |
"rstrip": false,
|
| 170 |
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
},
|
| 181 |
+
"151665": {
|
| 182 |
+
"content": "<tool_response>",
|
| 183 |
+
"lstrip": false,
|
| 184 |
+
"normalized": false,
|
| 185 |
+
"rstrip": false,
|
| 186 |
+
"single_word": false,
|
| 187 |
+
"special": false
|
| 188 |
+
},
|
| 189 |
+
"151666": {
|
| 190 |
+
"content": "</tool_response>",
|
| 191 |
+
"lstrip": false,
|
| 192 |
+
"normalized": false,
|
| 193 |
+
"rstrip": false,
|
| 194 |
+
"single_word": false,
|
| 195 |
+
"special": false
|
| 196 |
+
},
|
| 197 |
+
"151667": {
|
| 198 |
+
"content": "<think>",
|
| 199 |
+
"lstrip": false,
|
| 200 |
+
"normalized": false,
|
| 201 |
+
"rstrip": false,
|
| 202 |
+
"single_word": false,
|
| 203 |
+
"special": false
|
| 204 |
+
},
|
| 205 |
+
"151668": {
|
| 206 |
+
"content": "</think>",
|
| 207 |
+
"lstrip": false,
|
| 208 |
+
"normalized": false,
|
| 209 |
+
"rstrip": false,
|
| 210 |
+
"single_word": false,
|
| 211 |
+
"special": false
|
| 212 |
}
|
| 213 |
},
|
| 214 |
+
"additional_special_tokens": [
|
| 215 |
+
"<|im_start|>",
|
| 216 |
+
"<|im_end|>",
|
| 217 |
+
"<|object_ref_start|>",
|
| 218 |
+
"<|object_ref_end|>",
|
| 219 |
+
"<|box_start|>",
|
| 220 |
+
"<|box_end|>",
|
| 221 |
+
"<|quad_start|>",
|
| 222 |
+
"<|quad_end|>",
|
| 223 |
+
"<|vision_start|>",
|
| 224 |
+
"<|vision_end|>",
|
| 225 |
+
"<|vision_pad|>",
|
| 226 |
+
"<|image_pad|>",
|
| 227 |
+
"<|video_pad|>"
|
| 228 |
+
],
|
| 229 |
+
"bos_token": null,
|
| 230 |
"clean_up_tokenization_spaces": false,
|
| 231 |
+
"eos_token": "<|im_end|>",
|
| 232 |
+
"errors": "replace",
|
| 233 |
"extra_special_tokens": {},
|
| 234 |
+
"legacy": true,
|
| 235 |
+
"model_max_length": 16384,
|
| 236 |
+
"pad_token": "<|im_end|>",
|
| 237 |
+
"padding_side": "right",
|
| 238 |
+
"split_special_tokens": false,
|
| 239 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 240 |
+
"unk_token": null
|
| 241 |
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|