Instructions to use ArthurZ/JEV-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ArthurZ/JEV-9B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ArthurZ/JEV-9B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Decision config, template, head and System 1 LoRA
Browse files- .gitattributes +1 -0
- README.md +27 -0
- adapter_config.json +57 -0
- adapter_model.safetensors +3 -0
- chat_template.jinja +154 -0
- decision_config.json +15 -0
- decision_head/config.json +17 -0
- decision_head/model.safetensors +3 -0
- decision_template.jinja +19 -0
- decision_test.json +225 -0
- tokenizer.json +3 -0
- tokenizer_config.json +32 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: autotrust/JEV-9B
|
| 4 |
+
library_name: transformers
|
| 5 |
+
tags:
|
| 6 |
+
- decision
|
| 7 |
+
- systemone
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# autotrust/JEV-9B: decision files
|
| 11 |
+
|
| 12 |
+
Chat template, settings and head of [autotrust/JEV-9B](https://huggingface.co/autotrust/JEV-9B) for `pipeline("decision")`
|
| 13 |
+
([transformers#49566](https://github.com/huggingface/transformers/pull/49566)). The backbone is the base model at the root of the original with the System 1 LoRA of the original (`adapter_model.safetensors`), loaded by `from_pretrained`.
|
| 14 |
+
|
| 15 |
+
```python
|
| 16 |
+
from transformers import pipeline
|
| 17 |
+
|
| 18 |
+
decide = pipeline("decision", model="ArthurZ/JEV-9B")
|
| 19 |
+
decide({"state": "I was charged twice and want a refund.", "questions": {"refund": {"type": "noul", "instructions": "Is a refund requested?"}}})
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
- `decision_template.jinja`: the chat template; `<|mark|>` marks the positions the head reads.
|
| 23 |
+
- `decision_config.json`: temperatures and option order.
|
| 24 |
+
- `decision_head/`: `JevDecisionHead`, converted from `head.safetensors` of the original.
|
| 25 |
+
- `decision_test.json`: a request and the input ids that the original code builds for it, used by the tests.
|
| 26 |
+
|
| 27 |
+
Derived from [autotrust/JEV-9B](https://huggingface.co/autotrust/JEV-9B) (Apache-2.0).
|
adapter_config.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": {
|
| 6 |
+
"base_model_class": "Qwen3_5ForCausalLM",
|
| 7 |
+
"parent_library": "transformers.models.qwen3_5.modeling_qwen3_5"
|
| 8 |
+
},
|
| 9 |
+
"base_model_name_or_path": "autotrust/JEV-9B",
|
| 10 |
+
"bias": "none",
|
| 11 |
+
"corda_config": null,
|
| 12 |
+
"ensure_weight_tying": false,
|
| 13 |
+
"eva_config": null,
|
| 14 |
+
"exclude_modules": null,
|
| 15 |
+
"fan_in_fan_out": false,
|
| 16 |
+
"inference_mode": true,
|
| 17 |
+
"init_lora_weights": true,
|
| 18 |
+
"kasa_config": null,
|
| 19 |
+
"layer_replication": null,
|
| 20 |
+
"layers_pattern": null,
|
| 21 |
+
"layers_to_transform": null,
|
| 22 |
+
"loftq_config": {},
|
| 23 |
+
"lora_alpha": 32,
|
| 24 |
+
"lora_bias": false,
|
| 25 |
+
"lora_dropout": 0.05,
|
| 26 |
+
"lora_ga_config": null,
|
| 27 |
+
"megatron_config": null,
|
| 28 |
+
"megatron_core": "megatron.core",
|
| 29 |
+
"modules_to_save": null,
|
| 30 |
+
"monteclora_config": null,
|
| 31 |
+
"peft_type": "LORA",
|
| 32 |
+
"peft_version": "0.21.0",
|
| 33 |
+
"qalora_group_size": 16,
|
| 34 |
+
"r": 16,
|
| 35 |
+
"rank_pattern": {},
|
| 36 |
+
"revision": null,
|
| 37 |
+
"target_modules": [
|
| 38 |
+
"gate_proj",
|
| 39 |
+
"in_proj_z",
|
| 40 |
+
"q_proj",
|
| 41 |
+
"up_proj",
|
| 42 |
+
"out_proj",
|
| 43 |
+
"k_proj",
|
| 44 |
+
"in_proj_qkv",
|
| 45 |
+
"v_proj",
|
| 46 |
+
"down_proj",
|
| 47 |
+
"o_proj"
|
| 48 |
+
],
|
| 49 |
+
"target_parameters": null,
|
| 50 |
+
"task_type": null,
|
| 51 |
+
"trainable_token_indices": null,
|
| 52 |
+
"use_bdlora": null,
|
| 53 |
+
"use_dora": false,
|
| 54 |
+
"use_qalora": false,
|
| 55 |
+
"use_rslora": false,
|
| 56 |
+
"velora_config": null
|
| 57 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:796386ace560ec5624bbfe83f5c505121e5c9f9654200a847f032cb333cd1f71
|
| 3 |
+
size 160486456
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set image_count = namespace(value=0) %}
|
| 2 |
+
{%- set video_count = namespace(value=0) %}
|
| 3 |
+
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
+
{%- if content is string %}
|
| 5 |
+
{{- content }}
|
| 6 |
+
{%- elif content is iterable and content is not mapping %}
|
| 7 |
+
{%- for item in content %}
|
| 8 |
+
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
+
{%- if is_system_content %}
|
| 10 |
+
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
+
{%- endif %}
|
| 12 |
+
{%- if do_vision_count %}
|
| 13 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
+
{%- endif %}
|
| 15 |
+
{%- if add_vision_id %}
|
| 16 |
+
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
+
{%- endif %}
|
| 18 |
+
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
+
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
+
{%- if is_system_content %}
|
| 21 |
+
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
+
{%- endif %}
|
| 23 |
+
{%- if do_vision_count %}
|
| 24 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
+
{%- endif %}
|
| 26 |
+
{%- if add_vision_id %}
|
| 27 |
+
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
+
{%- elif 'text' in item %}
|
| 31 |
+
{{- item.text }}
|
| 32 |
+
{%- else %}
|
| 33 |
+
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
+
{%- endif %}
|
| 35 |
+
{%- endfor %}
|
| 36 |
+
{%- elif content is none or content is undefined %}
|
| 37 |
+
{{- '' }}
|
| 38 |
+
{%- else %}
|
| 39 |
+
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
+
{%- endif %}
|
| 41 |
+
{%- endmacro %}
|
| 42 |
+
{%- if not messages %}
|
| 43 |
+
{{- raise_exception('No messages provided.') }}
|
| 44 |
+
{%- endif %}
|
| 45 |
+
{%- if tools and tools is iterable and tools is not mapping %}
|
| 46 |
+
{{- '<|im_start|>system\n' }}
|
| 47 |
+
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 48 |
+
{%- for tool in tools %}
|
| 49 |
+
{{- "\n" }}
|
| 50 |
+
{{- tool | tojson }}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{{- "\n</tools>" }}
|
| 53 |
+
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 54 |
+
{%- if messages[0].role == 'system' %}
|
| 55 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 56 |
+
{%- if content %}
|
| 57 |
+
{{- '\n\n' + content }}
|
| 58 |
+
{%- endif %}
|
| 59 |
+
{%- endif %}
|
| 60 |
+
{{- '<|im_end|>\n' }}
|
| 61 |
+
{%- else %}
|
| 62 |
+
{%- if messages[0].role == 'system' %}
|
| 63 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 64 |
+
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 65 |
+
{%- endif %}
|
| 66 |
+
{%- endif %}
|
| 67 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 68 |
+
{%- for message in messages[::-1] %}
|
| 69 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 70 |
+
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 71 |
+
{%- set content = render_content(message.content, false)|trim %}
|
| 72 |
+
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 73 |
+
{%- set ns.multi_step_tool = false %}
|
| 74 |
+
{%- set ns.last_query_index = index %}
|
| 75 |
+
{%- endif %}
|
| 76 |
+
{%- endif %}
|
| 77 |
+
{%- endfor %}
|
| 78 |
+
{%- if ns.multi_step_tool %}
|
| 79 |
+
{{- raise_exception('No user query found in messages.') }}
|
| 80 |
+
{%- endif %}
|
| 81 |
+
{%- for message in messages %}
|
| 82 |
+
{%- set content = render_content(message.content, true)|trim %}
|
| 83 |
+
{%- if message.role == "system" %}
|
| 84 |
+
{%- if not loop.first %}
|
| 85 |
+
{{- raise_exception('System message must be at the beginning.') }}
|
| 86 |
+
{%- endif %}
|
| 87 |
+
{%- elif message.role == "user" %}
|
| 88 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 89 |
+
{%- elif message.role == "assistant" %}
|
| 90 |
+
{%- set reasoning_content = '' %}
|
| 91 |
+
{%- if message.reasoning_content is string %}
|
| 92 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 93 |
+
{%- else %}
|
| 94 |
+
{%- if '</think>' in content %}
|
| 95 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 96 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 97 |
+
{%- endif %}
|
| 98 |
+
{%- endif %}
|
| 99 |
+
{%- set reasoning_content = reasoning_content|trim %}
|
| 100 |
+
{%- if loop.index0 > ns.last_query_index %}
|
| 101 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 102 |
+
{%- else %}
|
| 103 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 104 |
+
{%- endif %}
|
| 105 |
+
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 106 |
+
{%- for tool_call in message.tool_calls %}
|
| 107 |
+
{%- if tool_call.function is defined %}
|
| 108 |
+
{%- set tool_call = tool_call.function %}
|
| 109 |
+
{%- endif %}
|
| 110 |
+
{%- if loop.first %}
|
| 111 |
+
{%- if content|trim %}
|
| 112 |
+
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 113 |
+
{%- else %}
|
| 114 |
+
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 115 |
+
{%- endif %}
|
| 116 |
+
{%- else %}
|
| 117 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 118 |
+
{%- endif %}
|
| 119 |
+
{%- if tool_call.arguments is defined %}
|
| 120 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 121 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 122 |
+
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 123 |
+
{{- args_value }}
|
| 124 |
+
{{- '\n</parameter>\n' }}
|
| 125 |
+
{%- endfor %}
|
| 126 |
+
{%- endif %}
|
| 127 |
+
{{- '</function>\n</tool_call>' }}
|
| 128 |
+
{%- endfor %}
|
| 129 |
+
{%- endif %}
|
| 130 |
+
{{- '<|im_end|>\n' }}
|
| 131 |
+
{%- elif message.role == "tool" %}
|
| 132 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 133 |
+
{{- '<|im_start|>user' }}
|
| 134 |
+
{%- endif %}
|
| 135 |
+
{{- '\n<tool_response>\n' }}
|
| 136 |
+
{{- content }}
|
| 137 |
+
{{- '\n</tool_response>' }}
|
| 138 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 139 |
+
{{- '<|im_end|>\n' }}
|
| 140 |
+
{%- elif loop.last %}
|
| 141 |
+
{{- '<|im_end|>\n' }}
|
| 142 |
+
{%- endif %}
|
| 143 |
+
{%- else %}
|
| 144 |
+
{{- raise_exception('Unexpected message role.') }}
|
| 145 |
+
{%- endif %}
|
| 146 |
+
{%- endfor %}
|
| 147 |
+
{%- if add_generation_prompt %}
|
| 148 |
+
{{- '<|im_start|>assistant\n' }}
|
| 149 |
+
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 150 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 151 |
+
{%- else %}
|
| 152 |
+
{{- '<think>\n' }}
|
| 153 |
+
{%- endif %}
|
| 154 |
+
{%- endif %}
|
decision_config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"labels": {},
|
| 3 |
+
"temperature": {
|
| 4 |
+
"noul": 1.0022178236691426,
|
| 5 |
+
"choice": 0.9840233476014968,
|
| 6 |
+
"score": 1.012184473350984
|
| 7 |
+
},
|
| 8 |
+
"calibration": null,
|
| 9 |
+
"noul_band": null,
|
| 10 |
+
"noul_options": [
|
| 11 |
+
"false",
|
| 12 |
+
"true"
|
| 13 |
+
],
|
| 14 |
+
"sort_choices": false
|
| 15 |
+
}
|
decision_head/config.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"JevDecisionHead"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "float32",
|
| 6 |
+
"hidden_size": 4096,
|
| 7 |
+
"initializer_range": 0.02,
|
| 8 |
+
"model_type": "jev",
|
| 9 |
+
"num_verbalizers": 24,
|
| 10 |
+
"offsets": {
|
| 11 |
+
"choice": 8,
|
| 12 |
+
"noul": 0,
|
| 13 |
+
"score": 2
|
| 14 |
+
},
|
| 15 |
+
"softcap": null,
|
| 16 |
+
"transformers_version": "5.19.0.dev0"
|
| 17 |
+
}
|
decision_head/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05a3e0af2e5c51b786ec6a8e4929dc425030b778748565d95493097c037004a4
|
| 3 |
+
size 393496
|
decision_template.jinja
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- macro s(x) %}{{ "" if x is none else x if x is string else x|tojson }}{% endmacro -%}
|
| 2 |
+
{%- macro st(x) -%}
|
| 3 |
+
{%- if x is string %}{{ x }}{% elif x is mapping %}{{ x|tojson }}{% else -%}
|
| 4 |
+
{%- for p in x -%}
|
| 5 |
+
{%- if p is string %}{{ p }}
|
| 6 |
+
{%- elif p is mapping and ("image" in p or p.get("type") == "image_url") %}{{ raise_exception("bare-v1 text template: images are not supported") }}
|
| 7 |
+
{%- elif p is mapping and p.get("type") == "text" %}{{ p["text"] }}
|
| 8 |
+
{%- else %}{{ p|tojson }}{% endif -%}
|
| 9 |
+
{%- endfor -%}
|
| 10 |
+
{%- endif -%}
|
| 11 |
+
{%- endmacro -%}
|
| 12 |
+
{{- "[kind] " ~ question.type ~ "\n[state] " ~ st(state) ~ "\n[question] " ~ s(question.instructions) ~ "\n[options]\n" -}}
|
| 13 |
+
{%- for o in question.options -%}
|
| 14 |
+
{%- set d = question.descriptions[loop.index0] -%}
|
| 15 |
+
{%- if question.type == "choice" %}{{ question.labels[loop.index0] ~ ") " ~ o ~ (": " ~ s(d) if d is not none and d != "" else "") }}
|
| 16 |
+
{%- else %}{{ o }}{% endif -%}
|
| 17 |
+
{{- "\n" if not loop.last else "" -}}
|
| 18 |
+
{%- endfor -%}
|
| 19 |
+
{{- "\n[decision]:<|mark|>" -}}
|
decision_test.json
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "autotrust/JEV-9B",
|
| 3 |
+
"revision": "7ac669b8fb476ba926491e3d1c39f9330d68dbed",
|
| 4 |
+
"request": {
|
| 5 |
+
"state": {
|
| 6 |
+
"message": "Charged twice, I want a refund.",
|
| 7 |
+
"plan": "pro"
|
| 8 |
+
},
|
| 9 |
+
"questions": {
|
| 10 |
+
"intent": {
|
| 11 |
+
"type": "choice",
|
| 12 |
+
"instructions": "What does the customer want?",
|
| 13 |
+
"criteria": {
|
| 14 |
+
"refund": "money back",
|
| 15 |
+
"track": "where is my order",
|
| 16 |
+
"other": null
|
| 17 |
+
}
|
| 18 |
+
},
|
| 19 |
+
"urgent": {
|
| 20 |
+
"type": "noul",
|
| 21 |
+
"instructions": "Needs a human now?"
|
| 22 |
+
},
|
| 23 |
+
"anger": {
|
| 24 |
+
"type": "score",
|
| 25 |
+
"instructions": "How angry?",
|
| 26 |
+
"criteria": [
|
| 27 |
+
"none",
|
| 28 |
+
"slight",
|
| 29 |
+
"some",
|
| 30 |
+
"clear",
|
| 31 |
+
"strong",
|
| 32 |
+
"extreme"
|
| 33 |
+
]
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
},
|
| 37 |
+
"sequences": [
|
| 38 |
+
{
|
| 39 |
+
"input_ids": [
|
| 40 |
+
6521,
|
| 41 |
+
474,
|
| 42 |
+
60,
|
| 43 |
+
5576,
|
| 44 |
+
198,
|
| 45 |
+
53990,
|
| 46 |
+
60,
|
| 47 |
+
5046,
|
| 48 |
+
1927,
|
| 49 |
+
763,
|
| 50 |
+
328,
|
| 51 |
+
1106,
|
| 52 |
+
89064,
|
| 53 |
+
10598,
|
| 54 |
+
11,
|
| 55 |
+
353,
|
| 56 |
+
1318,
|
| 57 |
+
264,
|
| 58 |
+
20325,
|
| 59 |
+
10152,
|
| 60 |
+
328,
|
| 61 |
+
10083,
|
| 62 |
+
763,
|
| 63 |
+
328,
|
| 64 |
+
751,
|
| 65 |
+
8934,
|
| 66 |
+
198,
|
| 67 |
+
58,
|
| 68 |
+
7593,
|
| 69 |
+
60,
|
| 70 |
+
3437,
|
| 71 |
+
1503,
|
| 72 |
+
279,
|
| 73 |
+
5813,
|
| 74 |
+
1318,
|
| 75 |
+
30,
|
| 76 |
+
198,
|
| 77 |
+
58,
|
| 78 |
+
2782,
|
| 79 |
+
60,
|
| 80 |
+
198,
|
| 81 |
+
32,
|
| 82 |
+
8,
|
| 83 |
+
20325,
|
| 84 |
+
25,
|
| 85 |
+
3117,
|
| 86 |
+
1142,
|
| 87 |
+
198,
|
| 88 |
+
33,
|
| 89 |
+
8,
|
| 90 |
+
3627,
|
| 91 |
+
25,
|
| 92 |
+
1332,
|
| 93 |
+
369,
|
| 94 |
+
821,
|
| 95 |
+
1906,
|
| 96 |
+
198,
|
| 97 |
+
34,
|
| 98 |
+
8,
|
| 99 |
+
975,
|
| 100 |
+
198,
|
| 101 |
+
58,
|
| 102 |
+
61781,
|
| 103 |
+
5491
|
| 104 |
+
],
|
| 105 |
+
"marks": [
|
| 106 |
+
64
|
| 107 |
+
]
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"input_ids": [
|
| 111 |
+
6521,
|
| 112 |
+
474,
|
| 113 |
+
60,
|
| 114 |
+
307,
|
| 115 |
+
10644,
|
| 116 |
+
198,
|
| 117 |
+
53990,
|
| 118 |
+
60,
|
| 119 |
+
5046,
|
| 120 |
+
1927,
|
| 121 |
+
763,
|
| 122 |
+
328,
|
| 123 |
+
1106,
|
| 124 |
+
89064,
|
| 125 |
+
10598,
|
| 126 |
+
11,
|
| 127 |
+
353,
|
| 128 |
+
1318,
|
| 129 |
+
264,
|
| 130 |
+
20325,
|
| 131 |
+
10152,
|
| 132 |
+
328,
|
| 133 |
+
10083,
|
| 134 |
+
763,
|
| 135 |
+
328,
|
| 136 |
+
751,
|
| 137 |
+
8934,
|
| 138 |
+
198,
|
| 139 |
+
58,
|
| 140 |
+
7593,
|
| 141 |
+
60,
|
| 142 |
+
41717,
|
| 143 |
+
264,
|
| 144 |
+
3611,
|
| 145 |
+
1381,
|
| 146 |
+
30,
|
| 147 |
+
198,
|
| 148 |
+
58,
|
| 149 |
+
2782,
|
| 150 |
+
60,
|
| 151 |
+
198,
|
| 152 |
+
3721,
|
| 153 |
+
198,
|
| 154 |
+
1802,
|
| 155 |
+
198,
|
| 156 |
+
58,
|
| 157 |
+
61781,
|
| 158 |
+
5491
|
| 159 |
+
],
|
| 160 |
+
"marks": [
|
| 161 |
+
48
|
| 162 |
+
]
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"input_ids": [
|
| 166 |
+
6521,
|
| 167 |
+
474,
|
| 168 |
+
60,
|
| 169 |
+
5284,
|
| 170 |
+
198,
|
| 171 |
+
53990,
|
| 172 |
+
60,
|
| 173 |
+
5046,
|
| 174 |
+
1927,
|
| 175 |
+
763,
|
| 176 |
+
328,
|
| 177 |
+
1106,
|
| 178 |
+
89064,
|
| 179 |
+
10598,
|
| 180 |
+
11,
|
| 181 |
+
353,
|
| 182 |
+
1318,
|
| 183 |
+
264,
|
| 184 |
+
20325,
|
| 185 |
+
10152,
|
| 186 |
+
328,
|
| 187 |
+
10083,
|
| 188 |
+
763,
|
| 189 |
+
328,
|
| 190 |
+
751,
|
| 191 |
+
8934,
|
| 192 |
+
198,
|
| 193 |
+
58,
|
| 194 |
+
7593,
|
| 195 |
+
60,
|
| 196 |
+
2500,
|
| 197 |
+
17960,
|
| 198 |
+
30,
|
| 199 |
+
198,
|
| 200 |
+
58,
|
| 201 |
+
2782,
|
| 202 |
+
60,
|
| 203 |
+
198,
|
| 204 |
+
15,
|
| 205 |
+
198,
|
| 206 |
+
16,
|
| 207 |
+
198,
|
| 208 |
+
17,
|
| 209 |
+
198,
|
| 210 |
+
18,
|
| 211 |
+
198,
|
| 212 |
+
19,
|
| 213 |
+
198,
|
| 214 |
+
20,
|
| 215 |
+
198,
|
| 216 |
+
58,
|
| 217 |
+
61781,
|
| 218 |
+
5491
|
| 219 |
+
],
|
| 220 |
+
"marks": [
|
| 221 |
+
53
|
| 222 |
+
]
|
| 223 |
+
}
|
| 224 |
+
]
|
| 225 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
+
size 19989325
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"audio_bos_token": "<|audio_start|>",
|
| 4 |
+
"audio_eos_token": "<|audio_end|>",
|
| 5 |
+
"audio_token": "<|audio_pad|>",
|
| 6 |
+
"backend": "tokenizers",
|
| 7 |
+
"bos_token": null,
|
| 8 |
+
"clean_up_tokenization_spaces": false,
|
| 9 |
+
"eos_token": "<|im_end|>",
|
| 10 |
+
"errors": "replace",
|
| 11 |
+
"image_token": "<|image_pad|>",
|
| 12 |
+
"is_local": true,
|
| 13 |
+
"local_files_only": false,
|
| 14 |
+
"model_max_length": 262144,
|
| 15 |
+
"model_specific_special_tokens": {
|
| 16 |
+
"audio_bos_token": "<|audio_start|>",
|
| 17 |
+
"audio_eos_token": "<|audio_end|>",
|
| 18 |
+
"audio_token": "<|audio_pad|>",
|
| 19 |
+
"image_token": "<|image_pad|>",
|
| 20 |
+
"video_token": "<|video_pad|>",
|
| 21 |
+
"vision_bos_token": "<|vision_start|>",
|
| 22 |
+
"vision_eos_token": "<|vision_end|>"
|
| 23 |
+
},
|
| 24 |
+
"pad_token": "<|endoftext|>",
|
| 25 |
+
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 26 |
+
"split_special_tokens": false,
|
| 27 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 28 |
+
"unk_token": null,
|
| 29 |
+
"video_token": "<|video_pad|>",
|
| 30 |
+
"vision_bos_token": "<|vision_start|>",
|
| 31 |
+
"vision_eos_token": "<|vision_end|>"
|
| 32 |
+
}
|