yujiepan commited on
Commit
426311a
·
verified ·
1 Parent(s): 984a8fe

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .meta.json +2 -2
  2. README.md +3 -3
  3. chat_template.jinja +9 -0
  4. config.json +1 -1
  5. generation_config.json +1 -1
.meta.json CHANGED
@@ -1,4 +1,4 @@
1
  {
2
- "torch": "2.11.0+cu129",
3
- "transformers": "5.7.0"
4
  }
 
1
  {
2
+ "torch": "2.10.0+cu130",
3
+ "transformers": "5.9.0"
4
  }
README.md CHANGED
@@ -28,7 +28,7 @@ messages = [
28
  "content": [
29
  {
30
  "type": "image",
31
- "url": "https://raw.githubusercontent.com/google-gemma/cookbook/refs/heads/main/Demos/sample-data/GoldenGate.png",
32
  },
33
  {"type": "text", "text": "What is shown in this image?"},
34
  ],
@@ -318,5 +318,5 @@ Gemma4ForConditionalGeneration(
318
 
319
  ### Test environment:
320
 
321
- - torch: 2.11.0+cu129
322
- - transformers: 5.7.0
 
28
  "content": [
29
  {
30
  "type": "image",
31
+ "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG",
32
  },
33
  {"type": "text", "text": "What is shown in this image?"},
34
  ],
 
318
 
319
  ### Test environment:
320
 
321
+ - torch: 2.10.0+cu130
322
+ - transformers: 5.9.0
chat_template.jinja CHANGED
@@ -295,6 +295,15 @@
295
  {%- endif -%}
296
  {%- endfor -%}
297
  {{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}
 
 
 
 
 
 
 
 
 
298
  {%- else -%}
299
  {{- format_tool_response_block(ns_tname.name, tool_body) -}}
300
  {%- endif -%}
 
295
  {%- endif -%}
296
  {%- endfor -%}
297
  {{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}
298
+ {%- for part in tool_body -%}
299
+ {%- if part.get('type') == 'image' -%}
300
+ {{- '<|image|>' -}}
301
+ {%- elif part.get('type') == 'audio' -%}
302
+ {{- '<|audio|>' -}}
303
+ {%- elif part.get('type') == 'video' -%}
304
+ {{- '<|video|>' -}}
305
+ {%- endif -%}
306
+ {%- endfor -%}
307
  {%- else -%}
308
  {{- format_tool_response_block(ns_tname.name, tool_body) -}}
309
  {%- endif -%}
config.json CHANGED
@@ -72,7 +72,7 @@
72
  "vocab_size_per_layer_input": 262144
73
  },
74
  "tie_word_embeddings": true,
75
- "transformers_version": "5.7.0",
76
  "video_token_id": 258884,
77
  "vision_config": {
78
  "_name_or_path": "",
 
72
  "vocab_size_per_layer_input": 262144
73
  },
74
  "tie_word_embeddings": true,
75
+ "transformers_version": "5.9.0",
76
  "video_token_id": 258884,
77
  "vision_config": {
78
  "_name_or_path": "",
generation_config.json CHANGED
@@ -10,6 +10,6 @@
10
  "temperature": 1.0,
11
  "top_k": 64,
12
  "top_p": 0.95,
13
- "transformers_version": "5.7.0",
14
  "trust_remote_code": true
15
  }
 
10
  "temperature": 1.0,
11
  "top_k": 64,
12
  "top_p": 0.95,
13
+ "transformers_version": "5.9.0",
14
  "trust_remote_code": true
15
  }