Royalvice commited on
Commit
5f8355f
·
verified ·
1 Parent(s): 2cd67b7

Add files using upload-large-folder tool

Browse files
README.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # EVA01-2B-Instruct-LoRA
2
+
3
+ LoRA adapter plus EVA01 mesh UND assets. Base model: Qwen/Qwen3-VL-2B-Instruct.
adapter_config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Qwen/Qwen3-VL-2B-Instruct",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": "layers",
17
+ "layers_to_transform": [
18
+ 12,
19
+ 13,
20
+ 14,
21
+ 15,
22
+ 16,
23
+ 17,
24
+ 18,
25
+ 19,
26
+ 20,
27
+ 21,
28
+ 22,
29
+ 23,
30
+ 24,
31
+ 25,
32
+ 26,
33
+ 27
34
+ ],
35
+ "loftq_config": {},
36
+ "lora_alpha": 512,
37
+ "lora_bias": false,
38
+ "lora_dropout": 0.0,
39
+ "megatron_config": null,
40
+ "megatron_core": "megatron.core",
41
+ "modules_to_save": null,
42
+ "peft_type": "LORA",
43
+ "peft_version": "0.18.1",
44
+ "qalora_group_size": 16,
45
+ "r": 256,
46
+ "rank_pattern": {},
47
+ "revision": null,
48
+ "target_modules": [
49
+ "up_proj",
50
+ "q_proj",
51
+ "o_proj",
52
+ "down_proj",
53
+ "gate_proj",
54
+ "v_proj",
55
+ "k_proj"
56
+ ],
57
+ "target_parameters": null,
58
+ "task_type": "CAUSAL_LM",
59
+ "trainable_token_indices": null,
60
+ "use_dora": false,
61
+ "use_qalora": false,
62
+ "use_rslora": false
63
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:425d431d2a76d0a1c1fd0b625319dbd578f4b80d0749c37721359544b8acdd10
3
+ size 637568096
chat_template.jinja ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0].role == 'system' %}
4
+ {%- if messages[0].content is string %}
5
+ {{- messages[0].content }}
6
+ {%- else %}
7
+ {%- for content in messages[0].content %}
8
+ {%- if 'text' in content %}
9
+ {{- content.text }}
10
+ {%- endif %}
11
+ {%- endfor %}
12
+ {%- endif %}
13
+ {{- '\n\n' }}
14
+ {%- endif %}
15
+ {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
16
+ {%- for tool in tools %}
17
+ {{- "\n" }}
18
+ {{- tool | tojson }}
19
+ {%- endfor %}
20
+ {{- "\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" }}
21
+ {%- else %}
22
+ {%- if messages[0].role == 'system' %}
23
+ {{- '<|im_start|>system\n' }}
24
+ {%- if messages[0].content is string %}
25
+ {{- messages[0].content }}
26
+ {%- else %}
27
+ {%- for content in messages[0].content %}
28
+ {%- if 'text' in content %}
29
+ {{- content.text }}
30
+ {%- endif %}
31
+ {%- endfor %}
32
+ {%- endif %}
33
+ {{- '<|im_end|>\n' }}
34
+ {%- endif %}
35
+ {%- endif %}
36
+ {%- set image_count = namespace(value=0) %}
37
+ {%- set video_count = namespace(value=0) %}
38
+ {%- for message in messages %}
39
+ {%- if message.role == "user" %}
40
+ {{- '<|im_start|>' + message.role + '\n' }}
41
+ {%- if message.content is string %}
42
+ {{- message.content }}
43
+ {%- else %}
44
+ {%- for content in message.content %}
45
+ {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}
46
+ {%- set image_count.value = image_count.value + 1 %}
47
+ {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}
48
+ <|vision_start|><|image_pad|><|vision_end|>
49
+ {%- elif content.type == 'video' or 'video' in content %}
50
+ {%- set video_count.value = video_count.value + 1 %}
51
+ {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}
52
+ <|vision_start|><|video_pad|><|vision_end|>
53
+ {%- elif 'text' in content %}
54
+ {{- content.text }}
55
+ {%- endif %}
56
+ {%- endfor %}
57
+ {%- endif %}
58
+ {{- '<|im_end|>\n' }}
59
+ {%- elif message.role == "assistant" %}
60
+ {{- '<|im_start|>' + message.role + '\n' }}
61
+ {%- if message.content is string %}
62
+ {{- message.content }}
63
+ {%- else %}
64
+ {%- for content_item in message.content %}
65
+ {%- if 'text' in content_item %}
66
+ {{- content_item.text }}
67
+ {%- endif %}
68
+ {%- endfor %}
69
+ {%- endif %}
70
+ {%- if message.tool_calls %}
71
+ {%- for tool_call in message.tool_calls %}
72
+ {%- if (loop.first and message.content) or (not loop.first) %}
73
+ {{- '\n' }}
74
+ {%- endif %}
75
+ {%- if tool_call.function %}
76
+ {%- set tool_call = tool_call.function %}
77
+ {%- endif %}
78
+ {{- '<tool_call>\n{"name": "' }}
79
+ {{- tool_call.name }}
80
+ {{- '", "arguments": ' }}
81
+ {%- if tool_call.arguments is string %}
82
+ {{- tool_call.arguments }}
83
+ {%- else %}
84
+ {{- tool_call.arguments | tojson }}
85
+ {%- endif %}
86
+ {{- '}\n</tool_call>' }}
87
+ {%- endfor %}
88
+ {%- endif %}
89
+ {{- '<|im_end|>\n' }}
90
+ {%- elif message.role == "tool" %}
91
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
92
+ {{- '<|im_start|>user' }}
93
+ {%- endif %}
94
+ {{- '\n<tool_response>\n' }}
95
+ {%- if message.content is string %}
96
+ {{- message.content }}
97
+ {%- else %}
98
+ {%- for content in message.content %}
99
+ {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}
100
+ {%- set image_count.value = image_count.value + 1 %}
101
+ {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}
102
+ <|vision_start|><|image_pad|><|vision_end|>
103
+ {%- elif content.type == 'video' or 'video' in content %}
104
+ {%- set video_count.value = video_count.value + 1 %}
105
+ {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}
106
+ <|vision_start|><|video_pad|><|vision_end|>
107
+ {%- elif 'text' in content %}
108
+ {{- content.text }}
109
+ {%- endif %}
110
+ {%- endfor %}
111
+ {%- endif %}
112
+ {{- '\n</tool_response>' }}
113
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
114
+ {{- '<|im_end|>\n' }}
115
+ {%- endif %}
116
+ {%- endif %}
117
+ {%- endfor %}
118
+ {%- if add_generation_prompt %}
119
+ {{- '<|im_start|>assistant\n' }}
120
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model_name_or_path": "Qwen/Qwen3-VL-2B-Instruct",
3
+ "is_lora": true,
4
+ "mesh_und_connector_dropout": 0.0,
5
+ "mesh_und_connector_file": "mesh_und_connector.safetensors",
6
+ "mesh_und_connector_hidden_dims": [
7
+ 1024,
8
+ 2048
9
+ ],
10
+ "mesh_und_encoder_file": "mesh_und_encoder.safetensors",
11
+ "mesh_und_encoder_type": "frozen_mesh_und_transformer",
12
+ "mesh_und_pointnum": 8192,
13
+ "mesh_und_token": "<|mesh_und_pad|>",
14
+ "mesh_und_token_id": 151684,
15
+ "mesh_und_token_len": 513,
16
+ "mesh_und_use_color": true,
17
+ "model_type": "eva01",
18
+ "qwen3vl_config": {
19
+ "architectures": [
20
+ "Qwen3VLForConditionalGeneration"
21
+ ],
22
+ "image_token_id": 151655,
23
+ "model_type": "qwen3_vl",
24
+ "text_config": {
25
+ "attention_bias": false,
26
+ "attention_dropout": 0.0,
27
+ "bos_token_id": 151643,
28
+ "dtype": "bfloat16",
29
+ "eos_token_id": 151645,
30
+ "head_dim": 128,
31
+ "hidden_act": "silu",
32
+ "hidden_size": 2048,
33
+ "initializer_range": 0.02,
34
+ "intermediate_size": 6144,
35
+ "max_position_embeddings": 262144,
36
+ "model_type": "qwen3_vl_text",
37
+ "num_attention_heads": 16,
38
+ "num_hidden_layers": 28,
39
+ "num_key_value_heads": 8,
40
+ "rms_norm_eps": 1e-06,
41
+ "rope_scaling": {
42
+ "mrope_interleaved": true,
43
+ "mrope_section": [
44
+ 24,
45
+ 20,
46
+ 20
47
+ ],
48
+ "rope_type": "default"
49
+ },
50
+ "rope_theta": 5000000,
51
+ "tie_word_embeddings": true,
52
+ "use_cache": true,
53
+ "vocab_size": 151936
54
+ },
55
+ "tie_word_embeddings": true,
56
+ "transformers_version": "4.57.0.dev0",
57
+ "video_token_id": 151656,
58
+ "vision_config": {
59
+ "deepstack_visual_indexes": [
60
+ 5,
61
+ 11,
62
+ 17
63
+ ],
64
+ "depth": 24,
65
+ "hidden_act": "gelu_pytorch_tanh",
66
+ "hidden_size": 1024,
67
+ "in_channels": 3,
68
+ "initializer_range": 0.02,
69
+ "intermediate_size": 4096,
70
+ "model_type": "qwen3_vl",
71
+ "num_heads": 16,
72
+ "num_position_embeddings": 2304,
73
+ "out_hidden_size": 2048,
74
+ "patch_size": 16,
75
+ "spatial_merge_size": 2,
76
+ "temporal_patch_size": 2
77
+ },
78
+ "vision_end_token_id": 151653,
79
+ "vision_start_token_id": 151652
80
+ },
81
+ "training_recipe": "alignment_then_instruction_tuning",
82
+ "transformers_version": "5.8.1"
83
+ }
mesh_und_connector.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:058ab17148abf8cd3528e1a5b77fa6f74afe6e48555dcc0f6a01887f46617647
3
+ size 13380048
mesh_und_encoder.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:944c4d7a13184cd23855be3f85f2ce9d108b9f3d276cb8d2127b8eeadb013417
3
+ size 87457528
processor_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "processor_class": "EVA01Processor",
3
+ "mesh_und_token": "<|mesh_und_pad|>",
4
+ "mesh_und_token_id": 151684,
5
+ "mesh_und_token_len": 513,
6
+ "mesh_und_pointnum": 8192,
7
+ "mesh_und_use_color": true
8
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": true,
9
+ "local_files_only": false,
10
+ "max_length": 2048,
11
+ "model_max_length": 262144,
12
+ "pad_token": "<|endoftext|>",
13
+ "split_special_tokens": false,
14
+ "stride": 0,
15
+ "tokenizer_class": "Qwen2Tokenizer",
16
+ "truncation_side": "right",
17
+ "truncation_strategy": "longest_first",
18
+ "unk_token": null
19
+ }