hf-transformers-bot commited on
Commit
ccd5940
·
verified ·
1 Parent(s): 4dad9c4

Update tiny models for AudioFlamingo3Model

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
chat_template.jinja ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {% if messages[0]['role'] != 'system' %}<|im_start|>system
2
+ You are a helpful assistant.<|im_end|>
3
+ {% endif %}{% for m in messages if m['content'] is not none %}<|im_start|>{{ m['role'] }}
4
+ {% if m['content'] is string %}{{ m['content'] }}{% else %}{% set audio = namespace(found=False) %}{% set text_buf = namespace(v='') %}{% for c in m['content'] %}{% if c.get('type') == 'audio' or 'audio' in c %}{% set audio.found = True %}{% elif c.get('type') == 'text' or 'text' in c %}{% set text_buf.v = text_buf.v + c['text'] %}{% endif %}{% endfor %}{% if audio.found %}{{ '<sound>' }}{% endif %}{{ text_buf.v }}{% endif %}<|im_end|>
5
+ {% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
6
+ {% endif %}
config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "AudioFlamingo3Model"
4
+ ],
5
+ "audio_config": {
6
+ "activation_dropout": 0.0,
7
+ "activation_function": "gelu",
8
+ "attention_dropout": 0.0,
9
+ "dropout": 0.0,
10
+ "hidden_size": 32,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 32,
13
+ "layerdrop": 0.0,
14
+ "max_source_positions": 30,
15
+ "model_type": "audioflamingo3_encoder",
16
+ "num_attention_heads": 2,
17
+ "num_hidden_layers": 2,
18
+ "num_mel_bins": 80,
19
+ "scale_embedding": false
20
+ },
21
+ "audio_token_id": 0,
22
+ "dtype": "float32",
23
+ "model_type": "audioflamingo3",
24
+ "pad_token_id": 151671,
25
+ "projector_bias": true,
26
+ "projector_hidden_act": "gelu",
27
+ "text_config": {
28
+ "attention_dropout": 0.0,
29
+ "bos_token_id": 151670,
30
+ "eos_token_id": 151645,
31
+ "hidden_act": "gelu",
32
+ "hidden_size": 32,
33
+ "initializer_range": 0.02,
34
+ "intermediate_size": 32,
35
+ "layer_types": [
36
+ "full_attention",
37
+ "full_attention"
38
+ ],
39
+ "max_position_embeddings": 512,
40
+ "max_window_layers": 28,
41
+ "model_type": "qwen2",
42
+ "num_attention_heads": 2,
43
+ "num_hidden_layers": 2,
44
+ "num_key_value_heads": 2,
45
+ "pad_token_id": 151671,
46
+ "rms_norm_eps": 1e-06,
47
+ "rope_parameters": {
48
+ "rope_theta": 10000.0,
49
+ "rope_type": "default"
50
+ },
51
+ "sliding_window": null,
52
+ "tie_word_embeddings": false,
53
+ "use_cache": true,
54
+ "use_sliding_window": false,
55
+ "vocab_size": 151672
56
+ },
57
+ "transformers_version": "5.16.0.dev0"
58
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5469322352d072b94966766746839486b6474e910945cf4dbd8d52e4d20f2bf0
3
+ size 19587296
preprocessor_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chunk_length": 30,
3
+ "dither": 0.0,
4
+ "feature_extractor_type": "WhisperFeatureExtractor",
5
+ "feature_size": 128,
6
+ "hop_length": 160,
7
+ "n_fft": 400,
8
+ "n_samples": 480000,
9
+ "nb_max_frames": 3000,
10
+ "padding_side": "right",
11
+ "padding_value": 0.0,
12
+ "return_attention_mask": true,
13
+ "sampling_rate": 16000
14
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f14d54ac619b8d778bec7ddcc5d247a2148ffd16d1ee43a07d2d350bb4bec72
3
+ size 11423182
tokenizer_config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "[BOS]",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|im_start|>",
10
+ "<|im_end|>",
11
+ "<|object_ref_start|>",
12
+ "<|object_ref_end|>",
13
+ "<|box_start|>",
14
+ "<|box_end|>",
15
+ "<|quad_start|>",
16
+ "<|quad_end|>",
17
+ "<|vision_start|>",
18
+ "<|vision_end|>",
19
+ "<|vision_pad|>",
20
+ "<|image_pad|>",
21
+ "<|video_pad|>"
22
+ ],
23
+ "is_local": true,
24
+ "legacy": false,
25
+ "local_files_only": false,
26
+ "model_max_length": 32768,
27
+ "pad_token": "[PAD]",
28
+ "padding_side": "right",
29
+ "processor_class": "AudioFlamingo3Processor",
30
+ "split_special_tokens": false,
31
+ "tokenizer_class": "Qwen2Tokenizer",
32
+ "unk_token": null
33
+ }