Add files using upload-large-folder tool
Browse files- .gitattributes +5 -0
- chat_template.jinja +6 -6
- config.json +108 -0
- cpu/chat_template.jinja +7 -0
- cpu/config.json +108 -0
- cpu/embedding.onnx +3 -0
- cpu/embedding.onnx.data +3 -0
- cpu/genai_config.json +89 -0
- cpu/generation_config.json +12 -0
- cpu/model_config.json +174 -0
- cpu/processor_config.json +76 -0
- cpu/text.onnx +3 -0
- cpu/text.onnx.data +3 -0
- cpu/tokenizer.json +3 -0
- cpu/tokenizer_config.json +16 -0
- cpu/vision.onnx +3 -0
- cpu/vision.onnx.data +3 -0
- embedding.onnx +3 -0
- embedding.onnx.data +3 -0
- genai_config.json +109 -52
- generation_config.json +12 -0
- model.onnx +2 -2
- model_config.json +174 -0
- processor_config.json +76 -0
- tokenizer_config.json +16 -15
- vision.onnx +3 -0
- vision.onnx.data +3 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,8 @@ saved_model/**/* 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
|
| 37 |
model.onnx.data 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
|
| 37 |
model.onnx.data filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
cpu/embedding.onnx.data filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
cpu/vision.onnx.data filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
embedding.onnx.data filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
vision.onnx.data filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
cpu/text.onnx.data filter=lfs diff=lfs merge=lfs -text
|
chat_template.jinja
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system
|
| 2 |
-
You are a helpful assistant.<|im_end|>
|
| 3 |
-
{% endif %}<|im_start|>{{ message['role'] }}
|
| 4 |
-
{% if message['content'] is string %}{{ message['content'] }}<|im_end|>
|
| 5 |
-
{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>
|
| 6 |
-
{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
|
| 7 |
{% endif %}
|
|
|
|
| 1 |
+
{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system
|
| 2 |
+
You are a helpful assistant.<|im_end|>
|
| 3 |
+
{% endif %}<|im_start|>{{ message['role'] }}
|
| 4 |
+
{% if message['content'] is string %}{{ message['content'] }}<|im_end|>
|
| 5 |
+
{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>
|
| 6 |
+
{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
|
| 7 |
{% endif %}
|
config.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen2_5_VLForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "bfloat16",
|
| 6 |
+
"image_token_id": 151655,
|
| 7 |
+
"model_type": "qwen2_5_vl",
|
| 8 |
+
"text_config": {
|
| 9 |
+
"architectures": [
|
| 10 |
+
"Qwen2_5_VLForConditionalGeneration"
|
| 11 |
+
],
|
| 12 |
+
"attention_dropout": 0.0,
|
| 13 |
+
"bos_token_id": 151643,
|
| 14 |
+
"dtype": "bfloat16",
|
| 15 |
+
"eos_token_id": 151645,
|
| 16 |
+
"hidden_act": "silu",
|
| 17 |
+
"hidden_size": 3584,
|
| 18 |
+
"image_token_id": null,
|
| 19 |
+
"initializer_range": 0.02,
|
| 20 |
+
"intermediate_size": 18944,
|
| 21 |
+
"layer_types": [
|
| 22 |
+
"full_attention",
|
| 23 |
+
"full_attention",
|
| 24 |
+
"full_attention",
|
| 25 |
+
"full_attention",
|
| 26 |
+
"full_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"full_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"full_attention",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"full_attention",
|
| 38 |
+
"full_attention",
|
| 39 |
+
"full_attention",
|
| 40 |
+
"full_attention",
|
| 41 |
+
"full_attention",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"full_attention",
|
| 44 |
+
"full_attention",
|
| 45 |
+
"full_attention",
|
| 46 |
+
"full_attention",
|
| 47 |
+
"full_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"full_attention"
|
| 50 |
+
],
|
| 51 |
+
"max_position_embeddings": 128000,
|
| 52 |
+
"max_window_layers": 28,
|
| 53 |
+
"model_type": "qwen2_5_vl_text",
|
| 54 |
+
"num_attention_heads": 28,
|
| 55 |
+
"num_hidden_layers": 28,
|
| 56 |
+
"num_key_value_heads": 4,
|
| 57 |
+
"pad_token_id": null,
|
| 58 |
+
"rms_norm_eps": 1e-06,
|
| 59 |
+
"rope_parameters": {
|
| 60 |
+
"mrope_section": [
|
| 61 |
+
16,
|
| 62 |
+
24,
|
| 63 |
+
24
|
| 64 |
+
],
|
| 65 |
+
"rope_theta": 1000000.0,
|
| 66 |
+
"rope_type": "default",
|
| 67 |
+
"type": "default"
|
| 68 |
+
},
|
| 69 |
+
"sliding_window": null,
|
| 70 |
+
"use_cache": true,
|
| 71 |
+
"use_sliding_window": false,
|
| 72 |
+
"video_token_id": null,
|
| 73 |
+
"vision_end_token_id": 151653,
|
| 74 |
+
"vision_start_token_id": 151652,
|
| 75 |
+
"vision_token_id": 151654,
|
| 76 |
+
"vocab_size": 152064
|
| 77 |
+
},
|
| 78 |
+
"tie_word_embeddings": false,
|
| 79 |
+
"transformers_version": "5.10.2",
|
| 80 |
+
"video_token_id": 151656,
|
| 81 |
+
"vision_config": {
|
| 82 |
+
"depth": 32,
|
| 83 |
+
"fullatt_block_indexes": [
|
| 84 |
+
7,
|
| 85 |
+
15,
|
| 86 |
+
23,
|
| 87 |
+
31
|
| 88 |
+
],
|
| 89 |
+
"hidden_act": "silu",
|
| 90 |
+
"hidden_size": 1280,
|
| 91 |
+
"in_channels": 3,
|
| 92 |
+
"in_chans": 3,
|
| 93 |
+
"initializer_range": 0.02,
|
| 94 |
+
"intermediate_size": 3420,
|
| 95 |
+
"model_type": "qwen2_5_vl_vision",
|
| 96 |
+
"num_heads": 16,
|
| 97 |
+
"out_hidden_size": 3584,
|
| 98 |
+
"patch_size": 14,
|
| 99 |
+
"spatial_merge_size": 2,
|
| 100 |
+
"spatial_patch_size": 14,
|
| 101 |
+
"temporal_patch_size": 2,
|
| 102 |
+
"tokens_per_second": 2,
|
| 103 |
+
"window_size": 112
|
| 104 |
+
},
|
| 105 |
+
"vision_end_token_id": 151653,
|
| 106 |
+
"vision_start_token_id": 151652,
|
| 107 |
+
"vision_token_id": 151654
|
| 108 |
+
}
|
cpu/chat_template.jinja
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system
|
| 2 |
+
You are a helpful assistant.<|im_end|>
|
| 3 |
+
{% endif %}<|im_start|>{{ message['role'] }}
|
| 4 |
+
{% if message['content'] is string %}{{ message['content'] }}<|im_end|>
|
| 5 |
+
{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>
|
| 6 |
+
{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
|
| 7 |
+
{% endif %}
|
cpu/config.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen2_5_VLForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "bfloat16",
|
| 6 |
+
"image_token_id": 151655,
|
| 7 |
+
"model_type": "qwen2_5_vl",
|
| 8 |
+
"text_config": {
|
| 9 |
+
"architectures": [
|
| 10 |
+
"Qwen2_5_VLForConditionalGeneration"
|
| 11 |
+
],
|
| 12 |
+
"attention_dropout": 0.0,
|
| 13 |
+
"bos_token_id": 151643,
|
| 14 |
+
"dtype": "bfloat16",
|
| 15 |
+
"eos_token_id": 151645,
|
| 16 |
+
"hidden_act": "silu",
|
| 17 |
+
"hidden_size": 3584,
|
| 18 |
+
"image_token_id": null,
|
| 19 |
+
"initializer_range": 0.02,
|
| 20 |
+
"intermediate_size": 18944,
|
| 21 |
+
"layer_types": [
|
| 22 |
+
"full_attention",
|
| 23 |
+
"full_attention",
|
| 24 |
+
"full_attention",
|
| 25 |
+
"full_attention",
|
| 26 |
+
"full_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"full_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"full_attention",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"full_attention",
|
| 38 |
+
"full_attention",
|
| 39 |
+
"full_attention",
|
| 40 |
+
"full_attention",
|
| 41 |
+
"full_attention",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"full_attention",
|
| 44 |
+
"full_attention",
|
| 45 |
+
"full_attention",
|
| 46 |
+
"full_attention",
|
| 47 |
+
"full_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"full_attention"
|
| 50 |
+
],
|
| 51 |
+
"max_position_embeddings": 128000,
|
| 52 |
+
"max_window_layers": 28,
|
| 53 |
+
"model_type": "qwen2_5_vl_text",
|
| 54 |
+
"num_attention_heads": 28,
|
| 55 |
+
"num_hidden_layers": 28,
|
| 56 |
+
"num_key_value_heads": 4,
|
| 57 |
+
"pad_token_id": null,
|
| 58 |
+
"rms_norm_eps": 1e-06,
|
| 59 |
+
"rope_parameters": {
|
| 60 |
+
"mrope_section": [
|
| 61 |
+
16,
|
| 62 |
+
24,
|
| 63 |
+
24
|
| 64 |
+
],
|
| 65 |
+
"rope_theta": 1000000.0,
|
| 66 |
+
"rope_type": "default",
|
| 67 |
+
"type": "default"
|
| 68 |
+
},
|
| 69 |
+
"sliding_window": null,
|
| 70 |
+
"use_cache": true,
|
| 71 |
+
"use_sliding_window": false,
|
| 72 |
+
"video_token_id": null,
|
| 73 |
+
"vision_end_token_id": 151653,
|
| 74 |
+
"vision_start_token_id": 151652,
|
| 75 |
+
"vision_token_id": 151654,
|
| 76 |
+
"vocab_size": 152064
|
| 77 |
+
},
|
| 78 |
+
"tie_word_embeddings": false,
|
| 79 |
+
"transformers_version": "5.10.2",
|
| 80 |
+
"video_token_id": 151656,
|
| 81 |
+
"vision_config": {
|
| 82 |
+
"depth": 32,
|
| 83 |
+
"fullatt_block_indexes": [
|
| 84 |
+
7,
|
| 85 |
+
15,
|
| 86 |
+
23,
|
| 87 |
+
31
|
| 88 |
+
],
|
| 89 |
+
"hidden_act": "silu",
|
| 90 |
+
"hidden_size": 1280,
|
| 91 |
+
"in_channels": 3,
|
| 92 |
+
"in_chans": 3,
|
| 93 |
+
"initializer_range": 0.02,
|
| 94 |
+
"intermediate_size": 3420,
|
| 95 |
+
"model_type": "qwen2_5_vl_vision",
|
| 96 |
+
"num_heads": 16,
|
| 97 |
+
"out_hidden_size": 3584,
|
| 98 |
+
"patch_size": 14,
|
| 99 |
+
"spatial_merge_size": 2,
|
| 100 |
+
"spatial_patch_size": 14,
|
| 101 |
+
"temporal_patch_size": 2,
|
| 102 |
+
"tokens_per_second": 2,
|
| 103 |
+
"window_size": 112
|
| 104 |
+
},
|
| 105 |
+
"vision_end_token_id": 151653,
|
| 106 |
+
"vision_start_token_id": 151652,
|
| 107 |
+
"vision_token_id": 151654
|
| 108 |
+
}
|
cpu/embedding.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:285a561d11f6ac4f0c60ad45b4458774419d62366b78706632b3e57eccad32b0
|
| 3 |
+
size 2979
|
cpu/embedding.onnx.data
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7bfd201128cf6227f2215702552dc7f9cd077331d3eaa849eaa4dae57db7a4ae
|
| 3 |
+
size 289538048
|
cpu/genai_config.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": {
|
| 3 |
+
"bos_token_id": 151643,
|
| 4 |
+
"context_length": 128000,
|
| 5 |
+
"decoder": {
|
| 6 |
+
"session_options": {
|
| 7 |
+
"log_id": "onnxruntime-genai",
|
| 8 |
+
"provider_options": []
|
| 9 |
+
},
|
| 10 |
+
"filename": "text.onnx",
|
| 11 |
+
"head_size": 128,
|
| 12 |
+
"hidden_size": 3584,
|
| 13 |
+
"inputs": {
|
| 14 |
+
"inputs_embeds": "inputs_embeds",
|
| 15 |
+
"attention_mask": "attention_mask",
|
| 16 |
+
"position_ids": "position_ids",
|
| 17 |
+
"past_key_names": "past_key_values.%d.key",
|
| 18 |
+
"past_value_names": "past_key_values.%d.value"
|
| 19 |
+
},
|
| 20 |
+
"outputs": {
|
| 21 |
+
"logits": "logits",
|
| 22 |
+
"present_key_names": "present.%d.key",
|
| 23 |
+
"present_value_names": "present.%d.value"
|
| 24 |
+
},
|
| 25 |
+
"num_attention_heads": 28,
|
| 26 |
+
"num_hidden_layers": 28,
|
| 27 |
+
"num_key_value_heads": 4
|
| 28 |
+
},
|
| 29 |
+
"eos_token_id": [
|
| 30 |
+
151645,
|
| 31 |
+
151643
|
| 32 |
+
],
|
| 33 |
+
"pad_token_id": 151643,
|
| 34 |
+
"type": "qwen2_5_vl",
|
| 35 |
+
"vocab_size": 152064,
|
| 36 |
+
"embedding": {
|
| 37 |
+
"filename": "embedding.onnx",
|
| 38 |
+
"inputs": {
|
| 39 |
+
"input_ids": "input_ids",
|
| 40 |
+
"image_features": "image_features"
|
| 41 |
+
},
|
| 42 |
+
"outputs": {
|
| 43 |
+
"inputs_embeds": "inputs_embeds"
|
| 44 |
+
},
|
| 45 |
+
"session_options": {
|
| 46 |
+
"log_id": "onnxruntime-genai",
|
| 47 |
+
"provider_options": []
|
| 48 |
+
}
|
| 49 |
+
},
|
| 50 |
+
"vision": {
|
| 51 |
+
"filename": "vision.onnx",
|
| 52 |
+
"config_filename": "processor_config.json",
|
| 53 |
+
"spatial_merge_size": 2,
|
| 54 |
+
"tokens_per_second": 2.0,
|
| 55 |
+
"patch_size": 14,
|
| 56 |
+
"window_size": 112,
|
| 57 |
+
"inputs": {
|
| 58 |
+
"pixel_values": "pixel_values",
|
| 59 |
+
"image_grid_thw": "image_grid_thw"
|
| 60 |
+
},
|
| 61 |
+
"outputs": {
|
| 62 |
+
"image_features": "image_features"
|
| 63 |
+
},
|
| 64 |
+
"session_options": {
|
| 65 |
+
"log_id": "onnxruntime-genai",
|
| 66 |
+
"provider_options": []
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
"image_token_id": 151655,
|
| 70 |
+
"video_token_id": 151656,
|
| 71 |
+
"vision_start_token_id": 151652
|
| 72 |
+
},
|
| 73 |
+
"search": {
|
| 74 |
+
"diversity_penalty": 0.0,
|
| 75 |
+
"do_sample": true,
|
| 76 |
+
"early_stopping": true,
|
| 77 |
+
"length_penalty": 1.0,
|
| 78 |
+
"max_length": 128000,
|
| 79 |
+
"min_length": 0,
|
| 80 |
+
"no_repeat_ngram_size": 0,
|
| 81 |
+
"num_beams": 1,
|
| 82 |
+
"num_return_sequences": 1,
|
| 83 |
+
"past_present_share_buffer": true,
|
| 84 |
+
"repetition_penalty": 1.0,
|
| 85 |
+
"temperature": 1e-06,
|
| 86 |
+
"top_k": 50,
|
| 87 |
+
"top_p": 1.0
|
| 88 |
+
}
|
| 89 |
+
}
|
cpu/generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151645,
|
| 6 |
+
151643
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 151643,
|
| 9 |
+
"repetition_penalty": 1.05,
|
| 10 |
+
"temperature": 1e-06,
|
| 11 |
+
"transformers_version": "5.10.2"
|
| 12 |
+
}
|
cpu/model_config.json
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"type": "onnxmodel",
|
| 3 |
+
"config": {
|
| 4 |
+
"model_path": "/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cpu_and_mobile/models",
|
| 5 |
+
"onnx_file_name": "text.onnx",
|
| 6 |
+
"inference_settings": null,
|
| 7 |
+
"use_ort_extensions": false,
|
| 8 |
+
"external_initializers_file_name": null,
|
| 9 |
+
"constant_inputs_file_name": null,
|
| 10 |
+
"model_attributes": {
|
| 11 |
+
"transformers_version": "5.10.2",
|
| 12 |
+
"architectures": [
|
| 13 |
+
"Qwen2_5_VLForConditionalGeneration"
|
| 14 |
+
],
|
| 15 |
+
"output_hidden_states": false,
|
| 16 |
+
"return_dict": true,
|
| 17 |
+
"dtype": "bfloat16",
|
| 18 |
+
"chunk_size_feed_forward": 0,
|
| 19 |
+
"is_encoder_decoder": false,
|
| 20 |
+
"id2label": {
|
| 21 |
+
"0": "LABEL_0",
|
| 22 |
+
"1": "LABEL_1"
|
| 23 |
+
},
|
| 24 |
+
"label2id": {
|
| 25 |
+
"LABEL_0": 0,
|
| 26 |
+
"LABEL_1": 1
|
| 27 |
+
},
|
| 28 |
+
"problem_type": null,
|
| 29 |
+
"text_config": {
|
| 30 |
+
"architectures": [
|
| 31 |
+
"Qwen2_5_VLForConditionalGeneration"
|
| 32 |
+
],
|
| 33 |
+
"output_hidden_states": false,
|
| 34 |
+
"return_dict": true,
|
| 35 |
+
"dtype": "bfloat16",
|
| 36 |
+
"chunk_size_feed_forward": 0,
|
| 37 |
+
"is_encoder_decoder": false,
|
| 38 |
+
"id2label": {
|
| 39 |
+
"0": "LABEL_0",
|
| 40 |
+
"1": "LABEL_1"
|
| 41 |
+
},
|
| 42 |
+
"label2id": {
|
| 43 |
+
"LABEL_0": 0,
|
| 44 |
+
"LABEL_1": 1
|
| 45 |
+
},
|
| 46 |
+
"problem_type": null,
|
| 47 |
+
"vocab_size": 152064,
|
| 48 |
+
"hidden_size": 3584,
|
| 49 |
+
"intermediate_size": 18944,
|
| 50 |
+
"num_hidden_layers": 28,
|
| 51 |
+
"num_attention_heads": 28,
|
| 52 |
+
"num_key_value_heads": 4,
|
| 53 |
+
"hidden_act": "silu",
|
| 54 |
+
"max_position_embeddings": 128000,
|
| 55 |
+
"initializer_range": 0.02,
|
| 56 |
+
"rms_norm_eps": 1e-06,
|
| 57 |
+
"use_cache": true,
|
| 58 |
+
"use_sliding_window": false,
|
| 59 |
+
"sliding_window": null,
|
| 60 |
+
"max_window_layers": 28,
|
| 61 |
+
"layer_types": [
|
| 62 |
+
"full_attention",
|
| 63 |
+
"full_attention",
|
| 64 |
+
"full_attention",
|
| 65 |
+
"full_attention",
|
| 66 |
+
"full_attention",
|
| 67 |
+
"full_attention",
|
| 68 |
+
"full_attention",
|
| 69 |
+
"full_attention",
|
| 70 |
+
"full_attention",
|
| 71 |
+
"full_attention",
|
| 72 |
+
"full_attention",
|
| 73 |
+
"full_attention",
|
| 74 |
+
"full_attention",
|
| 75 |
+
"full_attention",
|
| 76 |
+
"full_attention",
|
| 77 |
+
"full_attention",
|
| 78 |
+
"full_attention",
|
| 79 |
+
"full_attention",
|
| 80 |
+
"full_attention",
|
| 81 |
+
"full_attention",
|
| 82 |
+
"full_attention",
|
| 83 |
+
"full_attention",
|
| 84 |
+
"full_attention",
|
| 85 |
+
"full_attention",
|
| 86 |
+
"full_attention",
|
| 87 |
+
"full_attention",
|
| 88 |
+
"full_attention",
|
| 89 |
+
"full_attention"
|
| 90 |
+
],
|
| 91 |
+
"attention_dropout": 0.0,
|
| 92 |
+
"rope_parameters": {
|
| 93 |
+
"mrope_section": [
|
| 94 |
+
16,
|
| 95 |
+
24,
|
| 96 |
+
24
|
| 97 |
+
],
|
| 98 |
+
"rope_type": "default",
|
| 99 |
+
"type": "default",
|
| 100 |
+
"rope_theta": 1000000.0
|
| 101 |
+
},
|
| 102 |
+
"bos_token_id": 151643,
|
| 103 |
+
"eos_token_id": 151645,
|
| 104 |
+
"pad_token_id": null,
|
| 105 |
+
"_name_or_path": "",
|
| 106 |
+
"image_token_id": null,
|
| 107 |
+
"model_type": "qwen2_5_vl_text",
|
| 108 |
+
"video_token_id": null,
|
| 109 |
+
"vision_end_token_id": 151653,
|
| 110 |
+
"vision_start_token_id": 151652,
|
| 111 |
+
"vision_token_id": 151654,
|
| 112 |
+
"output_attentions": false
|
| 113 |
+
},
|
| 114 |
+
"vision_config": {
|
| 115 |
+
"architectures": null,
|
| 116 |
+
"output_hidden_states": false,
|
| 117 |
+
"return_dict": true,
|
| 118 |
+
"dtype": null,
|
| 119 |
+
"chunk_size_feed_forward": 0,
|
| 120 |
+
"is_encoder_decoder": false,
|
| 121 |
+
"id2label": {
|
| 122 |
+
"0": "LABEL_0",
|
| 123 |
+
"1": "LABEL_1"
|
| 124 |
+
},
|
| 125 |
+
"label2id": {
|
| 126 |
+
"LABEL_0": 0,
|
| 127 |
+
"LABEL_1": 1
|
| 128 |
+
},
|
| 129 |
+
"problem_type": null,
|
| 130 |
+
"depth": 32,
|
| 131 |
+
"hidden_size": 1280,
|
| 132 |
+
"hidden_act": "silu",
|
| 133 |
+
"intermediate_size": 3420,
|
| 134 |
+
"num_heads": 16,
|
| 135 |
+
"in_channels": 3,
|
| 136 |
+
"patch_size": 14,
|
| 137 |
+
"spatial_merge_size": 2,
|
| 138 |
+
"temporal_patch_size": 2,
|
| 139 |
+
"tokens_per_second": 2,
|
| 140 |
+
"window_size": 112,
|
| 141 |
+
"out_hidden_size": 3584,
|
| 142 |
+
"fullatt_block_indexes": [
|
| 143 |
+
7,
|
| 144 |
+
15,
|
| 145 |
+
23,
|
| 146 |
+
31
|
| 147 |
+
],
|
| 148 |
+
"initializer_range": 0.02,
|
| 149 |
+
"_name_or_path": "",
|
| 150 |
+
"in_chans": 3,
|
| 151 |
+
"model_type": "qwen2_5_vl_vision",
|
| 152 |
+
"spatial_patch_size": 14,
|
| 153 |
+
"output_attentions": false
|
| 154 |
+
},
|
| 155 |
+
"image_token_id": 151655,
|
| 156 |
+
"video_token_id": 151656,
|
| 157 |
+
"vision_start_token_id": 151652,
|
| 158 |
+
"vision_end_token_id": 151653,
|
| 159 |
+
"tie_word_embeddings": false,
|
| 160 |
+
"_name_or_path": "microsoft/Fara-7B",
|
| 161 |
+
"model_type": "qwen2_5_vl",
|
| 162 |
+
"vision_token_id": 151654,
|
| 163 |
+
"output_attentions": false,
|
| 164 |
+
"additional_files": [
|
| 165 |
+
"/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cpu_and_mobile/models/chat_template.jinja",
|
| 166 |
+
"/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cpu_and_mobile/models/config.json",
|
| 167 |
+
"/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cpu_and_mobile/models/genai_config.json",
|
| 168 |
+
"/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cpu_and_mobile/models/generation_config.json",
|
| 169 |
+
"/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cpu_and_mobile/models/tokenizer.json",
|
| 170 |
+
"/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cpu_and_mobile/models/tokenizer_config.json"
|
| 171 |
+
]
|
| 172 |
+
}
|
| 173 |
+
}
|
| 174 |
+
}
|
cpu/processor_config.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"processor": {
|
| 3 |
+
"name": "qwen2_5_image_processor",
|
| 4 |
+
"transforms": [
|
| 5 |
+
{
|
| 6 |
+
"operation": {
|
| 7 |
+
"name": "decode_image",
|
| 8 |
+
"type": "DecodeImage",
|
| 9 |
+
"attrs": {
|
| 10 |
+
"color_space": "RGB"
|
| 11 |
+
}
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"operation": {
|
| 16 |
+
"name": "convert_to_rgb",
|
| 17 |
+
"type": "ConvertRGB"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"operation": {
|
| 22 |
+
"name": "resize",
|
| 23 |
+
"type": "Resize",
|
| 24 |
+
"attrs": {
|
| 25 |
+
"width": 540,
|
| 26 |
+
"height": 360,
|
| 27 |
+
"smart_resize": 1,
|
| 28 |
+
"min_pixels": 3136,
|
| 29 |
+
"max_pixels": 12845056,
|
| 30 |
+
"patch_size": 14,
|
| 31 |
+
"merge_size": 2
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"operation": {
|
| 37 |
+
"name": "rescale",
|
| 38 |
+
"type": "Rescale",
|
| 39 |
+
"attrs": {
|
| 40 |
+
"rescale_factor": 0.00392156862745098
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"operation": {
|
| 46 |
+
"name": "normalize",
|
| 47 |
+
"type": "Normalize",
|
| 48 |
+
"attrs": {
|
| 49 |
+
"mean": [
|
| 50 |
+
0.48145466,
|
| 51 |
+
0.4578275,
|
| 52 |
+
0.40821073
|
| 53 |
+
],
|
| 54 |
+
"std": [
|
| 55 |
+
0.26862954,
|
| 56 |
+
0.26130258,
|
| 57 |
+
0.27577711
|
| 58 |
+
],
|
| 59 |
+
"qwen2_5_vl": 1
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"operation": {
|
| 65 |
+
"name": "patch_image",
|
| 66 |
+
"type": "PatchImage",
|
| 67 |
+
"attrs": {
|
| 68 |
+
"patch_size": 14,
|
| 69 |
+
"temporal_patch_size": 2,
|
| 70 |
+
"merge_size": 2
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
}
|
| 74 |
+
]
|
| 75 |
+
}
|
| 76 |
+
}
|
cpu/text.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa4c5aea977a6334aa720945fa217fd597430b3d37b3f69aff1b279f28ea06dd
|
| 3 |
+
size 812140
|
cpu/text.onnx.data
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a168365d303422e8dcaf6a57d025a5b5cbd95188629a853881bd6998621f2e6
|
| 3 |
+
size 4424925184
|
cpu/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8
|
| 3 |
+
size 11421892
|
cpu/tokenizer_config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": null,
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|im_end|>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"is_local": false,
|
| 9 |
+
"local_files_only": false,
|
| 10 |
+
"model_max_length": 128000,
|
| 11 |
+
"pad_token": "<|endoftext|>",
|
| 12 |
+
"processor_class": "Qwen2_5_VLProcessor",
|
| 13 |
+
"split_special_tokens": false,
|
| 14 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 15 |
+
"unk_token": null
|
| 16 |
+
}
|
cpu/vision.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2b9e88c9895381ceae294a1c8f874ef32ee633ab0061570fed94e0de9642d23
|
| 3 |
+
size 4648455
|
cpu/vision.onnx.data
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0144c090ddb8edafc15c1108871ee5b720f6a307110dcddb20a358a6a32e5bd9
|
| 3 |
+
size 371326976
|
embedding.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28bd742794bd3d688de1296d83386e3bacf43e914fe62f86a4ccf5b81859f40b
|
| 3 |
+
size 3063
|
embedding.onnx.data
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8553af1eebe326f48b7b091ce433465127363d33ddc0af5a0062e9dade5a46c2
|
| 3 |
+
size 1089994752
|
genai_config.json
CHANGED
|
@@ -1,53 +1,110 @@
|
|
| 1 |
-
{
|
| 2 |
-
"model": {
|
| 3 |
-
"bos_token_id": 151643,
|
| 4 |
-
"context_length": 128000,
|
| 5 |
-
"decoder": {
|
| 6 |
-
"session_options": {
|
| 7 |
-
"log_id": "onnxruntime-genai",
|
| 8 |
-
"provider_options": [
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
"
|
| 21 |
-
"
|
| 22 |
-
"
|
| 23 |
-
"
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
"
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
"
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
}
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": {
|
| 3 |
+
"bos_token_id": 151643,
|
| 4 |
+
"context_length": 128000,
|
| 5 |
+
"decoder": {
|
| 6 |
+
"session_options": {
|
| 7 |
+
"log_id": "onnxruntime-genai",
|
| 8 |
+
"provider_options": [
|
| 9 |
+
{
|
| 10 |
+
"cuda": {
|
| 11 |
+
"enable_cuda_graph": "0",
|
| 12 |
+
"enable_skip_layer_norm_strict_mode": "1"
|
| 13 |
+
}
|
| 14 |
+
}
|
| 15 |
+
]
|
| 16 |
+
},
|
| 17 |
+
"filename": "model.onnx",
|
| 18 |
+
"head_size": 128,
|
| 19 |
+
"hidden_size": 3584,
|
| 20 |
+
"inputs": {
|
| 21 |
+
"inputs_embeds": "inputs_embeds",
|
| 22 |
+
"attention_mask": "attention_mask",
|
| 23 |
+
"position_ids": "position_ids",
|
| 24 |
+
"past_key_names": "past_key_values.%d.key",
|
| 25 |
+
"past_value_names": "past_key_values.%d.value"
|
| 26 |
+
},
|
| 27 |
+
"outputs": {
|
| 28 |
+
"logits": "logits",
|
| 29 |
+
"present_key_names": "present.%d.key",
|
| 30 |
+
"present_value_names": "present.%d.value"
|
| 31 |
+
},
|
| 32 |
+
"num_attention_heads": 28,
|
| 33 |
+
"num_hidden_layers": 28,
|
| 34 |
+
"num_key_value_heads": 4
|
| 35 |
+
},
|
| 36 |
+
"eos_token_id": [
|
| 37 |
+
151645,
|
| 38 |
+
151643
|
| 39 |
+
],
|
| 40 |
+
"pad_token_id": 151643,
|
| 41 |
+
"type": "qwen2_5_vl",
|
| 42 |
+
"vocab_size": 152064,
|
| 43 |
+
"embedding": {
|
| 44 |
+
"filename": "embedding.onnx",
|
| 45 |
+
"inputs": {
|
| 46 |
+
"input_ids": "input_ids",
|
| 47 |
+
"image_features": "image_features"
|
| 48 |
+
},
|
| 49 |
+
"outputs": {
|
| 50 |
+
"inputs_embeds": "inputs_embeds"
|
| 51 |
+
},
|
| 52 |
+
"session_options": {
|
| 53 |
+
"log_id": "onnxruntime-genai",
|
| 54 |
+
"provider_options": [
|
| 55 |
+
{
|
| 56 |
+
"cuda": {
|
| 57 |
+
"enable_cuda_graph": "0",
|
| 58 |
+
"enable_skip_layer_norm_strict_mode": "1"
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
| 63 |
+
},
|
| 64 |
+
"vision": {
|
| 65 |
+
"filename": "vision.onnx",
|
| 66 |
+
"config_filename": "processor_config.json",
|
| 67 |
+
"spatial_merge_size": 2,
|
| 68 |
+
"tokens_per_second": 2.0,
|
| 69 |
+
"patch_size": 14,
|
| 70 |
+
"window_size": 112,
|
| 71 |
+
"inputs": {
|
| 72 |
+
"pixel_values": "pixel_values",
|
| 73 |
+
"image_grid_thw": "image_grid_thw"
|
| 74 |
+
},
|
| 75 |
+
"outputs": {
|
| 76 |
+
"image_features": "image_features"
|
| 77 |
+
},
|
| 78 |
+
"session_options": {
|
| 79 |
+
"log_id": "onnxruntime-genai",
|
| 80 |
+
"provider_options": [
|
| 81 |
+
{
|
| 82 |
+
"cuda": {
|
| 83 |
+
"enable_cuda_graph": "0",
|
| 84 |
+
"enable_skip_layer_norm_strict_mode": "1"
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
]
|
| 88 |
+
}
|
| 89 |
+
},
|
| 90 |
+
"image_token_id": 151655,
|
| 91 |
+
"video_token_id": 151656,
|
| 92 |
+
"vision_start_token_id": 151652
|
| 93 |
+
},
|
| 94 |
+
"search": {
|
| 95 |
+
"diversity_penalty": 0.0,
|
| 96 |
+
"do_sample": true,
|
| 97 |
+
"early_stopping": true,
|
| 98 |
+
"length_penalty": 1.0,
|
| 99 |
+
"max_length": 128000,
|
| 100 |
+
"min_length": 0,
|
| 101 |
+
"no_repeat_ngram_size": 0,
|
| 102 |
+
"num_beams": 1,
|
| 103 |
+
"num_return_sequences": 1,
|
| 104 |
+
"past_present_share_buffer": true,
|
| 105 |
+
"repetition_penalty": 1.0,
|
| 106 |
+
"temperature": 1e-06,
|
| 107 |
+
"top_k": 50,
|
| 108 |
+
"top_p": 1.0
|
| 109 |
+
}
|
| 110 |
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151645,
|
| 6 |
+
151643
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 151643,
|
| 9 |
+
"repetition_penalty": 1.05,
|
| 10 |
+
"temperature": 1e-06,
|
| 11 |
+
"transformers_version": "5.10.2"
|
| 12 |
+
}
|
model.onnx
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:e92fcffc30794e34f55956a26f833f5f48c24fb518909cba8adc98336074b79e
|
| 3 |
+
size 853108
|
model_config.json
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"type": "onnxmodel",
|
| 3 |
+
"config": {
|
| 4 |
+
"model_path": "/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cuda/models",
|
| 5 |
+
"onnx_file_name": "model.onnx",
|
| 6 |
+
"inference_settings": null,
|
| 7 |
+
"use_ort_extensions": false,
|
| 8 |
+
"external_initializers_file_name": null,
|
| 9 |
+
"constant_inputs_file_name": null,
|
| 10 |
+
"model_attributes": {
|
| 11 |
+
"transformers_version": "5.10.2",
|
| 12 |
+
"architectures": [
|
| 13 |
+
"Qwen2_5_VLForConditionalGeneration"
|
| 14 |
+
],
|
| 15 |
+
"output_hidden_states": false,
|
| 16 |
+
"return_dict": true,
|
| 17 |
+
"dtype": "bfloat16",
|
| 18 |
+
"chunk_size_feed_forward": 0,
|
| 19 |
+
"is_encoder_decoder": false,
|
| 20 |
+
"id2label": {
|
| 21 |
+
"0": "LABEL_0",
|
| 22 |
+
"1": "LABEL_1"
|
| 23 |
+
},
|
| 24 |
+
"label2id": {
|
| 25 |
+
"LABEL_0": 0,
|
| 26 |
+
"LABEL_1": 1
|
| 27 |
+
},
|
| 28 |
+
"problem_type": null,
|
| 29 |
+
"text_config": {
|
| 30 |
+
"architectures": [
|
| 31 |
+
"Qwen2_5_VLForConditionalGeneration"
|
| 32 |
+
],
|
| 33 |
+
"output_hidden_states": false,
|
| 34 |
+
"return_dict": true,
|
| 35 |
+
"dtype": "bfloat16",
|
| 36 |
+
"chunk_size_feed_forward": 0,
|
| 37 |
+
"is_encoder_decoder": false,
|
| 38 |
+
"id2label": {
|
| 39 |
+
"0": "LABEL_0",
|
| 40 |
+
"1": "LABEL_1"
|
| 41 |
+
},
|
| 42 |
+
"label2id": {
|
| 43 |
+
"LABEL_0": 0,
|
| 44 |
+
"LABEL_1": 1
|
| 45 |
+
},
|
| 46 |
+
"problem_type": null,
|
| 47 |
+
"vocab_size": 152064,
|
| 48 |
+
"hidden_size": 3584,
|
| 49 |
+
"intermediate_size": 18944,
|
| 50 |
+
"num_hidden_layers": 28,
|
| 51 |
+
"num_attention_heads": 28,
|
| 52 |
+
"num_key_value_heads": 4,
|
| 53 |
+
"hidden_act": "silu",
|
| 54 |
+
"max_position_embeddings": 128000,
|
| 55 |
+
"initializer_range": 0.02,
|
| 56 |
+
"rms_norm_eps": 1e-06,
|
| 57 |
+
"use_cache": true,
|
| 58 |
+
"use_sliding_window": false,
|
| 59 |
+
"sliding_window": null,
|
| 60 |
+
"max_window_layers": 28,
|
| 61 |
+
"layer_types": [
|
| 62 |
+
"full_attention",
|
| 63 |
+
"full_attention",
|
| 64 |
+
"full_attention",
|
| 65 |
+
"full_attention",
|
| 66 |
+
"full_attention",
|
| 67 |
+
"full_attention",
|
| 68 |
+
"full_attention",
|
| 69 |
+
"full_attention",
|
| 70 |
+
"full_attention",
|
| 71 |
+
"full_attention",
|
| 72 |
+
"full_attention",
|
| 73 |
+
"full_attention",
|
| 74 |
+
"full_attention",
|
| 75 |
+
"full_attention",
|
| 76 |
+
"full_attention",
|
| 77 |
+
"full_attention",
|
| 78 |
+
"full_attention",
|
| 79 |
+
"full_attention",
|
| 80 |
+
"full_attention",
|
| 81 |
+
"full_attention",
|
| 82 |
+
"full_attention",
|
| 83 |
+
"full_attention",
|
| 84 |
+
"full_attention",
|
| 85 |
+
"full_attention",
|
| 86 |
+
"full_attention",
|
| 87 |
+
"full_attention",
|
| 88 |
+
"full_attention",
|
| 89 |
+
"full_attention"
|
| 90 |
+
],
|
| 91 |
+
"attention_dropout": 0.0,
|
| 92 |
+
"rope_parameters": {
|
| 93 |
+
"mrope_section": [
|
| 94 |
+
16,
|
| 95 |
+
24,
|
| 96 |
+
24
|
| 97 |
+
],
|
| 98 |
+
"rope_type": "default",
|
| 99 |
+
"type": "default",
|
| 100 |
+
"rope_theta": 1000000.0
|
| 101 |
+
},
|
| 102 |
+
"bos_token_id": 151643,
|
| 103 |
+
"eos_token_id": 151645,
|
| 104 |
+
"pad_token_id": null,
|
| 105 |
+
"_name_or_path": "",
|
| 106 |
+
"image_token_id": null,
|
| 107 |
+
"model_type": "qwen2_5_vl_text",
|
| 108 |
+
"video_token_id": null,
|
| 109 |
+
"vision_end_token_id": 151653,
|
| 110 |
+
"vision_start_token_id": 151652,
|
| 111 |
+
"vision_token_id": 151654,
|
| 112 |
+
"output_attentions": false
|
| 113 |
+
},
|
| 114 |
+
"vision_config": {
|
| 115 |
+
"architectures": null,
|
| 116 |
+
"output_hidden_states": false,
|
| 117 |
+
"return_dict": true,
|
| 118 |
+
"dtype": null,
|
| 119 |
+
"chunk_size_feed_forward": 0,
|
| 120 |
+
"is_encoder_decoder": false,
|
| 121 |
+
"id2label": {
|
| 122 |
+
"0": "LABEL_0",
|
| 123 |
+
"1": "LABEL_1"
|
| 124 |
+
},
|
| 125 |
+
"label2id": {
|
| 126 |
+
"LABEL_0": 0,
|
| 127 |
+
"LABEL_1": 1
|
| 128 |
+
},
|
| 129 |
+
"problem_type": null,
|
| 130 |
+
"depth": 32,
|
| 131 |
+
"hidden_size": 1280,
|
| 132 |
+
"hidden_act": "silu",
|
| 133 |
+
"intermediate_size": 3420,
|
| 134 |
+
"num_heads": 16,
|
| 135 |
+
"in_channels": 3,
|
| 136 |
+
"patch_size": 14,
|
| 137 |
+
"spatial_merge_size": 2,
|
| 138 |
+
"temporal_patch_size": 2,
|
| 139 |
+
"tokens_per_second": 2,
|
| 140 |
+
"window_size": 112,
|
| 141 |
+
"out_hidden_size": 3584,
|
| 142 |
+
"fullatt_block_indexes": [
|
| 143 |
+
7,
|
| 144 |
+
15,
|
| 145 |
+
23,
|
| 146 |
+
31
|
| 147 |
+
],
|
| 148 |
+
"initializer_range": 0.02,
|
| 149 |
+
"_name_or_path": "",
|
| 150 |
+
"in_chans": 3,
|
| 151 |
+
"model_type": "qwen2_5_vl_vision",
|
| 152 |
+
"spatial_patch_size": 14,
|
| 153 |
+
"output_attentions": false
|
| 154 |
+
},
|
| 155 |
+
"image_token_id": 151655,
|
| 156 |
+
"video_token_id": 151656,
|
| 157 |
+
"vision_start_token_id": 151652,
|
| 158 |
+
"vision_end_token_id": 151653,
|
| 159 |
+
"tie_word_embeddings": false,
|
| 160 |
+
"_name_or_path": "microsoft/Fara-7B",
|
| 161 |
+
"model_type": "qwen2_5_vl",
|
| 162 |
+
"vision_token_id": 151654,
|
| 163 |
+
"output_attentions": false,
|
| 164 |
+
"additional_files": [
|
| 165 |
+
"/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cuda/models/chat_template.jinja",
|
| 166 |
+
"/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cuda/models/config.json",
|
| 167 |
+
"/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cuda/models/genai_config.json",
|
| 168 |
+
"/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cuda/models/generation_config.json",
|
| 169 |
+
"/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cuda/models/tokenizer.json",
|
| 170 |
+
"/teamspace/studios/this_studio/olive-recipes/Fara-7b/builtin/cuda/models/tokenizer_config.json"
|
| 171 |
+
]
|
| 172 |
+
}
|
| 173 |
+
}
|
| 174 |
+
}
|
processor_config.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"processor": {
|
| 3 |
+
"name": "qwen2_5_image_processor",
|
| 4 |
+
"transforms": [
|
| 5 |
+
{
|
| 6 |
+
"operation": {
|
| 7 |
+
"name": "decode_image",
|
| 8 |
+
"type": "DecodeImage",
|
| 9 |
+
"attrs": {
|
| 10 |
+
"color_space": "RGB"
|
| 11 |
+
}
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"operation": {
|
| 16 |
+
"name": "convert_to_rgb",
|
| 17 |
+
"type": "ConvertRGB"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"operation": {
|
| 22 |
+
"name": "resize",
|
| 23 |
+
"type": "Resize",
|
| 24 |
+
"attrs": {
|
| 25 |
+
"width": 540,
|
| 26 |
+
"height": 360,
|
| 27 |
+
"smart_resize": 1,
|
| 28 |
+
"min_pixels": 3136,
|
| 29 |
+
"max_pixels": 12845056,
|
| 30 |
+
"patch_size": 14,
|
| 31 |
+
"merge_size": 2
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"operation": {
|
| 37 |
+
"name": "rescale",
|
| 38 |
+
"type": "Rescale",
|
| 39 |
+
"attrs": {
|
| 40 |
+
"rescale_factor": 0.00392156862745098
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"operation": {
|
| 46 |
+
"name": "normalize",
|
| 47 |
+
"type": "Normalize",
|
| 48 |
+
"attrs": {
|
| 49 |
+
"mean": [
|
| 50 |
+
0.48145466,
|
| 51 |
+
0.4578275,
|
| 52 |
+
0.40821073
|
| 53 |
+
],
|
| 54 |
+
"std": [
|
| 55 |
+
0.26862954,
|
| 56 |
+
0.26130258,
|
| 57 |
+
0.27577711
|
| 58 |
+
],
|
| 59 |
+
"qwen2_5_vl": 1
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"operation": {
|
| 65 |
+
"name": "patch_image",
|
| 66 |
+
"type": "PatchImage",
|
| 67 |
+
"attrs": {
|
| 68 |
+
"patch_size": 14,
|
| 69 |
+
"temporal_patch_size": 2,
|
| 70 |
+
"merge_size": 2
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
}
|
| 74 |
+
]
|
| 75 |
+
}
|
| 76 |
+
}
|
tokenizer_config.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
| 1 |
-
{
|
| 2 |
-
"add_prefix_space": false,
|
| 3 |
-
"backend": "tokenizers",
|
| 4 |
-
"bos_token": null,
|
| 5 |
-
"clean_up_tokenization_spaces": false,
|
| 6 |
-
"eos_token": "<|im_end|>",
|
| 7 |
-
"errors": "replace",
|
| 8 |
-
"is_local":
|
| 9 |
-
"
|
| 10 |
-
"
|
| 11 |
-
"
|
| 12 |
-
"
|
| 13 |
-
"
|
| 14 |
-
"
|
| 15 |
-
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": null,
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|im_end|>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"is_local": false,
|
| 9 |
+
"local_files_only": false,
|
| 10 |
+
"model_max_length": 128000,
|
| 11 |
+
"pad_token": "<|endoftext|>",
|
| 12 |
+
"processor_class": "Qwen2_5_VLProcessor",
|
| 13 |
+
"split_special_tokens": false,
|
| 14 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 15 |
+
"unk_token": null
|
| 16 |
+
}
|
vision.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a8c5c4c90f59b954a457b06b1287335c96d9185fd5bc88f4a115f2391e52733
|
| 3 |
+
size 4921469
|
vision.onnx.data
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d327a9d27b265afaee1b18d1ee94dc67a296c42292cdef0410648107cb635382
|
| 3 |
+
size 1353100288
|