eustlb HF Staff commited on
Commit
bda9ff9
·
verified ·
1 Parent(s): e0a7138

Upload processor

Browse files
chat_template.jinja CHANGED
@@ -15,23 +15,18 @@
15
  {{- content -}}
16
  {%- endif -%}
17
  {%- endmacro -%}
18
-
19
  {%- for m in messages -%}
20
  {%- if m.role == 'system' -%}
21
  <|system|>
22
  {{ to_text(m.content) | trim }}
23
-
24
  {%- elif m.role == 'user' -%}
25
  <|user|>
26
  {{ to_text(m.content) | trim }}
27
-
28
  {%- elif m.role == 'assistant' -%}
29
  <|assistant|>
30
  {{ to_text(m.content) | trim }}
31
-
32
  {%- endif -%}
33
  {%- endfor -%}
34
-
35
  {%- if add_generation_prompt -%}
36
  <|assistant|>
37
  {% endif -%}
 
15
  {{- content -}}
16
  {%- endif -%}
17
  {%- endmacro -%}
 
18
  {%- for m in messages -%}
19
  {%- if m.role == 'system' -%}
20
  <|system|>
21
  {{ to_text(m.content) | trim }}
 
22
  {%- elif m.role == 'user' -%}
23
  <|user|>
24
  {{ to_text(m.content) | trim }}
 
25
  {%- elif m.role == 'assistant' -%}
26
  <|assistant|>
27
  {{ to_text(m.content) | trim }}
 
28
  {%- endif -%}
29
  {%- endfor -%}
 
30
  {%- if add_generation_prompt -%}
31
  <|assistant|>
32
  {% endif -%}
processor_config.json CHANGED
@@ -1,5 +1,6 @@
1
  {
2
  "audio_token": "<|pad|>",
 
3
  "feature_extractor": {
4
  "chunk_length": 30,
5
  "dither": 0.0,
@@ -14,5 +15,6 @@
14
  "return_attention_mask": false,
15
  "sampling_rate": 16000
16
  },
 
17
  "processor_class": "GlmAsrProcessor"
18
  }
 
1
  {
2
  "audio_token": "<|pad|>",
3
+ "default_transcription_prompt": "Please transcribe this audio into text",
4
  "feature_extractor": {
5
  "chunk_length": 30,
6
  "dither": 0.0,
 
15
  "return_attention_mask": false,
16
  "sampling_rate": 16000
17
  },
18
+ "max_audio_len": 600,
19
  "processor_class": "GlmAsrProcessor"
20
  }
tokenizer_config.json CHANGED
@@ -15,7 +15,12 @@
15
  "<|assistant|>",
16
  "<|observation|>",
17
  "<|begin_of_image|>",
18
- "<|end_of_image|>"
 
 
 
 
 
19
  ],
20
  "is_local": false,
21
  "model_input_names": [
 
15
  "<|assistant|>",
16
  "<|observation|>",
17
  "<|begin_of_image|>",
18
+ "<|end_of_image|>",
19
+ "<|begin_of_video|>",
20
+ "<|end_of_video|>",
21
+ "<|pad|>",
22
+ "<|begin_of_audio|>",
23
+ "<|end_of_audio|>"
24
  ],
25
  "is_local": false,
26
  "model_input_names": [