danielhanchen commited on
Commit
9982887
·
verified ·
1 Parent(s): 65cc206

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. config.json +1 -41
  2. generation_config.json +1 -1
  3. tokenizer_config.json +2 -2
config.json CHANGED
@@ -48,48 +48,9 @@
48
  },
49
  "rope_theta": 1000000.0,
50
  "sliding_window": 32768,
51
- "text_config": {
52
- "architectures": [
53
- "Qwen2_5_VLForConditionalGeneration"
54
- ],
55
- "attention_dropout": 0.0,
56
- "bos_token_id": 151643,
57
- "eos_token_id": 151645,
58
- "hidden_act": "silu",
59
- "hidden_size": 3584,
60
- "image_token_id": null,
61
- "initializer_range": 0.02,
62
- "intermediate_size": 18944,
63
- "max_position_embeddings": 128000,
64
- "max_window_layers": 28,
65
- "model_type": "qwen2_5_vl_text",
66
- "num_attention_heads": 28,
67
- "num_hidden_layers": 28,
68
- "num_key_value_heads": 4,
69
- "rms_norm_eps": 1e-06,
70
- "rope_scaling": {
71
- "mrope_section": [
72
- 16,
73
- 24,
74
- 24
75
- ],
76
- "rope_type": "default",
77
- "type": "default"
78
- },
79
- "rope_theta": 1000000.0,
80
- "sliding_window": 32768,
81
- "torch_dtype": "bfloat16",
82
- "use_cache": true,
83
- "use_sliding_window": false,
84
- "video_token_id": null,
85
- "vision_end_token_id": 151653,
86
- "vision_start_token_id": 151652,
87
- "vision_token_id": 151654,
88
- "vocab_size": 152064
89
- },
90
  "tie_word_embeddings": false,
91
  "torch_dtype": "bfloat16",
92
- "transformers_version": "4.52.0.dev0",
93
  "unsloth_fixed": true,
94
  "use_cache": true,
95
  "use_sliding_window": false,
@@ -106,7 +67,6 @@
106
  "hidden_size": 1280,
107
  "in_channels": 3,
108
  "in_chans": 3,
109
- "initializer_range": 0.02,
110
  "intermediate_size": 3420,
111
  "model_type": "qwen2_5_vl",
112
  "num_heads": 16,
 
48
  },
49
  "rope_theta": 1000000.0,
50
  "sliding_window": 32768,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  "tie_word_embeddings": false,
52
  "torch_dtype": "bfloat16",
53
+ "transformers_version": "4.51.3",
54
  "unsloth_fixed": true,
55
  "use_cache": true,
56
  "use_sliding_window": false,
 
67
  "hidden_size": 1280,
68
  "in_channels": 3,
69
  "in_chans": 3,
 
70
  "intermediate_size": 3420,
71
  "model_type": "qwen2_5_vl",
72
  "num_heads": 16,
generation_config.json CHANGED
@@ -9,5 +9,5 @@
9
  "pad_token_id": 151654,
10
  "repetition_penalty": 1.05,
11
  "temperature": 1e-06,
12
- "transformers_version": "4.52.0.dev0"
13
  }
 
9
  "pad_token_id": 151654,
10
  "repetition_penalty": 1.05,
11
  "temperature": 1e-06,
12
+ "transformers_version": "4.51.3"
13
  }
tokenizer_config.json CHANGED
@@ -195,6 +195,7 @@
195
  "<|video_pad|>"
196
  ],
197
  "bos_token": null,
 
198
  "clean_up_tokenization_spaces": false,
199
  "eos_token": "<|im_end|>",
200
  "errors": "replace",
@@ -205,6 +206,5 @@
205
  "processor_class": "Qwen2_5_VLProcessor",
206
  "split_special_tokens": false,
207
  "tokenizer_class": "Qwen2Tokenizer",
208
- "unk_token": null,
209
- "chat_template": "{% 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\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% 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|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}"
210
  }
 
195
  "<|video_pad|>"
196
  ],
197
  "bos_token": null,
198
+ "chat_template": "{% 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\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% 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|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}",
199
  "clean_up_tokenization_spaces": false,
200
  "eos_token": "<|im_end|>",
201
  "errors": "replace",
 
206
  "processor_class": "Qwen2_5_VLProcessor",
207
  "split_special_tokens": false,
208
  "tokenizer_class": "Qwen2Tokenizer",
209
+ "unk_token": null
 
210
  }