Upload MuseGlimmerForConditionalGeneration

#1
by albertvillanova HF Staff - opened
Files changed (3) hide show
  1. chat_template.jinja +11 -0
  2. config.json +1 -1
  3. model.safetensors +1 -1
chat_template.jinja CHANGED
@@ -84,6 +84,15 @@
84
  {%- set rs = reasoning_strength if reasoning_strength is defined and reasoning_strength else 'high' -%}
85
  {{- 'Reasoning strength: ' + rs + '.' -}}
86
  {%- endmacro -%}
 
 
 
 
 
 
 
 
 
87
  {%- macro render_system_meta(tools) -%}
88
  {%- set rns = namespace(recipients=['"self"'], nslist=[]) -%}
89
  {%- if tools -%}
@@ -119,6 +128,7 @@
119
  {%- endif -%}
120
  {{- '\n\n' -}}
121
  {{- render_reasoning() -}}
 
122
  {%- if tools -%}
123
  {{- '\n\n' -}}
124
  {{- render_tool_defs(tools) -}}
@@ -146,6 +156,7 @@
146
  {{- '\n\n' -}}
147
  {{- render_reasoning() -}}
148
  {%- endif -%}
 
149
  {%- if tools -%}
150
  {{- '\n\n' -}}
151
  {{- render_tool_defs(tools) -}}
 
84
  {%- set rs = reasoning_strength if reasoning_strength is defined and reasoning_strength else 'high' -%}
85
  {{- 'Reasoning strength: ' + rs + '.' -}}
86
  {%- endmacro -%}
87
+ {%- macro render_response_format() -%}
88
+ {#- The engine enforces response_format by sampling; the model never sees it. State it so the
89
+ model writes the answer the grammar expects. -#}
90
+ {%- if response_format is defined and response_format -%}
91
+ {%- if response_format.type == 'json_schema' -%}
92
+ {{- '\n\nIn your final response to the user\'s latest message the output must adhere to the following json schema: ' + (response_format.json_schema.schema | tojson) -}}
93
+ {%- endif -%}
94
+ {%- endif -%}
95
+ {%- endmacro -%}
96
  {%- macro render_system_meta(tools) -%}
97
  {%- set rns = namespace(recipients=['"self"'], nslist=[]) -%}
98
  {%- if tools -%}
 
128
  {%- endif -%}
129
  {{- '\n\n' -}}
130
  {{- render_reasoning() -}}
131
+ {{- render_response_format() -}}
132
  {%- if tools -%}
133
  {{- '\n\n' -}}
134
  {{- render_tool_defs(tools) -}}
 
156
  {{- '\n\n' -}}
157
  {{- render_reasoning() -}}
158
  {%- endif -%}
159
+ {{- render_response_format() -}}
160
  {%- if tools -%}
161
  {{- '\n\n' -}}
162
  {{- render_tool_defs(tools) -}}
config.json CHANGED
@@ -60,7 +60,7 @@
60
  "max_position_embeddings": 1024,
61
  "merge_size": 2,
62
  "model_type": "muse_glimmer_vision",
63
- "num_attention_heads": 4,
64
  "num_hidden_layers": 2,
65
  "patch_size": 14,
66
  "patch_temporal": 2,
 
60
  "max_position_embeddings": 1024,
61
  "merge_size": 2,
62
  "model_type": "muse_glimmer_vision",
63
+ "num_attention_heads": 2,
64
  "num_hidden_layers": 2,
65
  "patch_size": 14,
66
  "patch_temporal": 2,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c6da466985e3e11e3257bfc827f96979bf053067e8627671b7ac9063c40ce8cb
3
  size 13040152
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:257890ca84b60bf46393f1b6b857ca8a0639a6a32195e8c7888d74074357b73f
3
  size 13040152