drbaph commited on
Commit
8d16ef3
·
verified ·
1 Parent(s): 1bb951c

Upload 5 files

Browse files
.gitattributes CHANGED
@@ -48,3 +48,4 @@ engines_linux/libaudiocpp_engine.so filter=lfs diff=lfs merge=lfs -text
48
  engines_linux/libcublas.so.13 filter=lfs diff=lfs merge=lfs -text
49
  engines_linux/libcublasLt.so.13 filter=lfs diff=lfs merge=lfs -text
50
  engines_linux/libcudart.so.13 filter=lfs diff=lfs merge=lfs -text
 
 
48
  engines_linux/libcublas.so.13 filter=lfs diff=lfs merge=lfs -text
49
  engines_linux/libcublasLt.so.13 filter=lfs diff=lfs merge=lfs -text
50
  engines_linux/libcudart.so.13 filter=lfs diff=lfs merge=lfs -text
51
+ models/higgs-bf16/tokenizer.json filter=lfs diff=lfs merge=lfs -text
models/higgs-bf16/chat_template.jinja ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}
19
+ {%- endif %}
20
+ {%- endif %}
21
+ {%- for message in messages %}
22
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + message.role }}
26
+ {%- if message.content %}
27
+ {{- '\n' + message.content }}
28
+ {%- endif %}
29
+ {%- for tool_call in message.tool_calls %}
30
+ {%- if tool_call.function is defined %}
31
+ {%- set tool_call = tool_call.function %}
32
+ {%- endif %}
33
+ {{- '\n<tool_call>\n{"name": "' }}
34
+ {{- tool_call.name }}
35
+ {{- '", "arguments": ' }}
36
+ {{- tool_call.arguments | tojson }}
37
+ {{- '}\n</tool_call>' }}
38
+ {%- endfor %}
39
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
42
+ {{- '<|im_start|>user' }}
43
+ {%- endif %}
44
+ {{- '\n<tool_response>\n' }}
45
+ {{- message.content }}
46
+ {{- '\n</tool_response>' }}
47
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
48
+ {{- '<|im_end|>\n' }}
49
+ {%- endif %}
50
+ {%- endif %}
51
+ {%- endfor %}
52
+ {%- if add_generation_prompt %}
53
+ {{- '<|im_start|>assistant\n' }}
54
+ {%- endif %}
models/higgs-bf16/config.json ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_hidden_size": 2560,
3
+ "_vocab_size": 151936,
4
+ "architectures": [
5
+ "HiggsMultimodalQwen3ForConditionalGeneration"
6
+ ],
7
+ "audio_encoder_config": {
8
+ "_name_or_path": "",
9
+ "architectures": null,
10
+ "chunk_size_feed_forward": 0,
11
+ "dtype": null,
12
+ "encoder_type": "discrete",
13
+ "id2label": {
14
+ "0": "LABEL_0",
15
+ "1": "LABEL_1"
16
+ },
17
+ "is_encoder_decoder": false,
18
+ "label2id": {
19
+ "LABEL_0": 0,
20
+ "LABEL_1": 1
21
+ },
22
+ "max_chunk_size": 50,
23
+ "mel_per_sample": 8,
24
+ "model_type": "higgs_audio_encoder",
25
+ "num_codebooks": 8,
26
+ "out_dim": 2560,
27
+ "output_attentions": false,
28
+ "output_hidden_states": false,
29
+ "problem_type": null,
30
+ "qwen3_aut_config": null,
31
+ "return_dict": true,
32
+ "tie_word_embeddings": true,
33
+ "use_delay_pattern": true,
34
+ "vocab_size": 1026,
35
+ "whisper_config": null
36
+ },
37
+ "audio_token_id": -100,
38
+ "ignore_index": -100,
39
+ "model_type": "higgs_multimodal_qwen3",
40
+ "text_config": {
41
+ "_name_or_path": "/ceph/models/Qwen3-4B-Base",
42
+ "architectures": [
43
+ "Qwen3ForCausalLM"
44
+ ],
45
+ "attention_bias": false,
46
+ "attention_dropout": 0.0,
47
+ "bos_token_id": 151643,
48
+ "dtype": "bfloat16",
49
+ "eos_token_id": 151643,
50
+ "head_dim": 128,
51
+ "hidden_act": "silu",
52
+ "hidden_size": 2560,
53
+ "initializer_range": 0.02,
54
+ "intermediate_size": 9728,
55
+ "layer_types": [
56
+ "full_attention",
57
+ "full_attention",
58
+ "full_attention",
59
+ "full_attention",
60
+ "full_attention",
61
+ "full_attention",
62
+ "full_attention",
63
+ "full_attention",
64
+ "full_attention",
65
+ "full_attention",
66
+ "full_attention",
67
+ "full_attention",
68
+ "full_attention",
69
+ "full_attention",
70
+ "full_attention",
71
+ "full_attention",
72
+ "full_attention",
73
+ "full_attention",
74
+ "full_attention",
75
+ "full_attention",
76
+ "full_attention",
77
+ "full_attention",
78
+ "full_attention",
79
+ "full_attention",
80
+ "full_attention",
81
+ "full_attention",
82
+ "full_attention",
83
+ "full_attention",
84
+ "full_attention",
85
+ "full_attention",
86
+ "full_attention",
87
+ "full_attention",
88
+ "full_attention",
89
+ "full_attention",
90
+ "full_attention",
91
+ "full_attention"
92
+ ],
93
+ "max_position_embeddings": 32768,
94
+ "max_window_layers": 36,
95
+ "model_type": "qwen3",
96
+ "num_attention_heads": 32,
97
+ "num_hidden_layers": 36,
98
+ "num_key_value_heads": 8,
99
+ "pad_token_id": null,
100
+ "rms_norm_eps": 1e-06,
101
+ "rope_parameters": {
102
+ "rope_theta": 1000000,
103
+ "rope_type": "default"
104
+ },
105
+ "sliding_window": null,
106
+ "tie_word_embeddings": true,
107
+ "use_cache": true,
108
+ "use_sliding_window": false,
109
+ "vocab_size": 151936
110
+ },
111
+ "transformers_version": "5.5.0"
112
+ }
models/higgs-bf16/higgs_audio_v2_tokenizer_config.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "acoustic_model_config": {
3
+ "codebook_dim": 8,
4
+ "codebook_loss_weight": 1.0,
5
+ "codebook_size": 1024,
6
+ "commitment_loss_weight": 0.25,
7
+ "decoder_hidden_size": 1024,
8
+ "downsampling_ratios": [8, 5, 4, 2, 3],
9
+ "encoder_hidden_size": 64,
10
+ "hidden_size": 256,
11
+ "hop_length": 960,
12
+ "model_type": "dac",
13
+ "n_codebooks": 9,
14
+ "quantizer_dropout": 0,
15
+ "sampling_rate": 16000,
16
+ "upsampling_ratios": [8, 5, 4, 2, 3]
17
+ },
18
+ "architectures": ["HiggsAudioV2TokenizerModel"],
19
+ "block_dilations": [1, 1],
20
+ "channel_ratios": [1, 1],
21
+ "codebook_dim": 64,
22
+ "codebook_size": 1024,
23
+ "downsample_factor": 320,
24
+ "dtype": "float32",
25
+ "initializer_range": 0.02,
26
+ "kernel_size": 3,
27
+ "model_type": "higgs_audio_v2_tokenizer",
28
+ "sample_rate": 24000,
29
+ "semantic_model_config": {
30
+ "activation_dropout": 0.1,
31
+ "apply_spec_augment": true,
32
+ "attention_dropout": 0.1,
33
+ "bos_token_id": 1,
34
+ "classifier_proj_size": 256,
35
+ "conv_bias": false,
36
+ "conv_dim": [512, 512, 512, 512, 512, 512, 512],
37
+ "conv_kernel": [10, 3, 3, 3, 3, 2, 2],
38
+ "conv_pos_batch_norm": false,
39
+ "conv_stride": [5, 2, 2, 2, 2, 2, 2],
40
+ "ctc_loss_reduction": "sum",
41
+ "ctc_zero_infinity": false,
42
+ "do_stable_layer_norm": false,
43
+ "eos_token_id": 2,
44
+ "feat_extract_activation": "gelu",
45
+ "feat_extract_norm": "group",
46
+ "feat_proj_dropout": 0.0,
47
+ "feat_proj_layer_norm": true,
48
+ "final_dropout": 0.1,
49
+ "hidden_act": "gelu",
50
+ "hidden_dropout": 0.1,
51
+ "hidden_size": 768,
52
+ "initializer_range": 0.02,
53
+ "intermediate_size": 3072,
54
+ "layer_norm_eps": 1e-05,
55
+ "layerdrop": 0.1,
56
+ "mask_feature_length": 10,
57
+ "mask_feature_min_masks": 0,
58
+ "mask_feature_prob": 0.0,
59
+ "mask_time_length": 10,
60
+ "mask_time_min_masks": 2,
61
+ "mask_time_prob": 0.0,
62
+ "model_type": "hubert",
63
+ "num_attention_heads": 12,
64
+ "num_conv_pos_embedding_groups": 16,
65
+ "num_conv_pos_embeddings": 128,
66
+ "num_feat_extract_layers": 7,
67
+ "num_hidden_layers": 12,
68
+ "pad_token_id": 0,
69
+ "use_weighted_layer_sum": false,
70
+ "vocab_size": 32
71
+ },
72
+ "semantic_sample_rate": 16000,
73
+ "strides": [1, 1],
74
+ "target_bandwidths": [0.5, 1, 1.5, 2],
75
+ "transformers_version": "5.3.0.dev0",
76
+ "unit_kernel_size": 3
77
+ }
models/higgs-bf16/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb883de2de5adc5113f1f02b54830a0ea7cd6ef191cde65c41aceb3737d4d1c1
3
+ size 11433924
models/higgs-bf16/tokenizer_config.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|endoftext|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|asr|>",
10
+ "<|streaming_asr|>",
11
+ "<|tts|>",
12
+ "<|streaming_tts|>",
13
+ "<|audio_cont_txt|>",
14
+ "<|audio|>",
15
+ "<|audio_end|>",
16
+ "<|text|>",
17
+ "<|text_end|>",
18
+ "<|eoc|>",
19
+ "<|user|>",
20
+ "<|assistant|>",
21
+ "<|system|>",
22
+ "<|await_audio|>",
23
+ "<|ref_audio|>",
24
+ "<|ref_text|>",
25
+ "<|emotion:elation|>",
26
+ "<|emotion:amusement|>",
27
+ "<|emotion:enthusiasm|>",
28
+ "<|emotion:determination|>",
29
+ "<|emotion:pride|>",
30
+ "<|emotion:contentment|>",
31
+ "<|emotion:affection|>",
32
+ "<|emotion:relief|>",
33
+ "<|emotion:contemplation|>",
34
+ "<|emotion:confusion|>",
35
+ "<|emotion:surprise|>",
36
+ "<|emotion:awe|>",
37
+ "<|emotion:longing|>",
38
+ "<|emotion:arousal|>",
39
+ "<|emotion:anger|>",
40
+ "<|emotion:fear|>",
41
+ "<|emotion:disgust|>",
42
+ "<|emotion:bitterness|>",
43
+ "<|emotion:sadness|>",
44
+ "<|emotion:shame|>",
45
+ "<|emotion:helplessness|>",
46
+ "<|env:music|>",
47
+ "<|env:noise|>",
48
+ "<|style:singing|>",
49
+ "<|style:shouting|>",
50
+ "<|style:whispering|>",
51
+ "<|sfx:cough|>",
52
+ "<|sfx:laughter|>",
53
+ "<|sfx:crying|>",
54
+ "<|sfx:screaming|>",
55
+ "<|sfx:burping|>",
56
+ "<|sfx:humming|>",
57
+ "<|sfx:sigh|>",
58
+ "<|sfx:sniff|>",
59
+ "<|sfx:sneeze|>",
60
+ "<|prosody:speed_very_slow|>",
61
+ "<|prosody:speed_slow|>",
62
+ "<|prosody:speed_fast|>",
63
+ "<|prosody:speed_very_fast|>",
64
+ "<|prosody:pitch_low|>",
65
+ "<|prosody:pitch_high|>",
66
+ "<|prosody:pause|>",
67
+ "<|prosody:long_pause|>",
68
+ "<|chatml|>",
69
+ "<|prosody:expressive_high|>",
70
+ "<|prosody:expressive_low|>"
71
+ ],
72
+ "is_local": true,
73
+ "model_max_length": 131072,
74
+ "pad_token": "<|endoftext|>",
75
+ "split_special_tokens": false,
76
+ "tokenizer_class": "Qwen2Tokenizer",
77
+ "unk_token": null
78
+ }