Skip to content

Commit 4438bea

Browse files
author
LittleMouse
committed
[update] add Korean tts model & HY-MT1.5-1.8B-Int4-ax650 model
1 parent c98d3f3 commit 4438bea

4 files changed

Lines changed: 96 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"mode": "HY-MT1.5-1.8B-Int4-ax650",
3+
"type": "llm",
4+
"homepage": "https://huggingface.co/AXERA-TECH/HY-MT1.5-1.8B_GPTQ_INT4",
5+
"capabilities": [
6+
"text_generation",
7+
"chat"
8+
],
9+
"input_type": [
10+
"llm.utf-8",
11+
"llm.utf-8.stream",
12+
"llm.chat_completion",
13+
"llm.chat_completion.stream"
14+
],
15+
"output_type": [
16+
"llm.utf-8",
17+
"llm.utf-8.stream"
18+
],
19+
"mode_param": {
20+
"system_prompt": "you are a translator, please translate the following text to English.",
21+
"model_name": "AXERA-TECH/HY-MT1.5-1.8B",
22+
"url_tokenizer_model": "hymt1-5_tokenizer.txt",
23+
"tokenizer_type": "HunYuan",
24+
"post_config_path": "post_config.json",
25+
"template_filename_axmodel": "hunyuan_v1_dense_p128_l%d_together.axmodel",
26+
"axmodel_num": 32,
27+
"filename_post_axmodel": "hunyuan_v1_dense_post.axmodel",
28+
"filename_tokens_embed": "model.embed_tokens.weight.bfloat16.bin",
29+
"tokens_embed_num": 120818,
30+
"tokens_embed_size": 2048,
31+
"b_use_mmap_load_embed": true,
32+
"b_use_mmap_load_layer": true,
33+
"devices": [
34+
0
35+
]
36+
}
37+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"mode": "melotts-ko-kr-ax650",
3+
"type": "tts",
4+
"homepage": "https://github.com/ml-inory/melotts.axera/tree/main/model_convert",
5+
"compile_flage": "pulsar2 build --input decoder-ko.onnx --config config_decoder_u16.json --output_dir decoder_ko --output_name decoder-ko.axmodel --target_hardware AX620E --npu_mode NPU2 --compiler.check 0",
6+
"pulsar_version": "5.1-patch1-cd6c30b4",
7+
"capabilities": [
8+
"tts",
9+
"Korean"
10+
],
11+
"input_type": [
12+
"tts.utf-8"
13+
],
14+
"output_type": [
15+
"tts.wav",
16+
"sys.play.0_1"
17+
],
18+
"mode_param": {
19+
"encoder": "encoder-kr.ort",
20+
"decoder": "decoder-kr.axmodel",
21+
"gbin": "g-kr.bin",
22+
"tokens": "tokens-kr.txt",
23+
"lexicon": "lexicon-kr.txt",
24+
"spacker_speed": 1.2,
25+
"mode_rate": 44100,
26+
"audio_rate": 48000,
27+
"awake_delay": 1000
28+
}
29+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"mode": "melotts-ko-kr",
3+
"type": "tts",
4+
"homepage": "https://github.com/ml-inory/melotts.axera/tree/main/model_convert",
5+
"compile_flage": "pulsar2 build --input decoder-ko.onnx --config config_decoder_u16.json --output_dir decoder_ko --output_name decoder-ko.axmodel --target_hardware AX620E --npu_mode NPU2 --compiler.check 0",
6+
"pulsar_version": "5.1-patch1-cd6c30b4",
7+
"capabilities": [
8+
"tts",
9+
"Korean"
10+
],
11+
"input_type": [
12+
"tts.utf-8"
13+
],
14+
"output_type": [
15+
"tts.wav",
16+
"sys.play.0_1"
17+
],
18+
"mode_param": {
19+
"encoder": "encoder-kr.ort",
20+
"decoder": "decoder-kr.axmodel",
21+
"gbin": "g-kr.bin",
22+
"tokens": "tokens-kr.txt",
23+
"lexicon": "lexicon-kr.txt",
24+
"spacker_speed": 1.2,
25+
"mode_rate": 44100,
26+
"audio_rate": 16000,
27+
"awake_delay": 1000
28+
}
29+
}

‎projects/llm_framework/tools/llm_pack.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ def create_bin_deb(package_name, version, src_folder, revision = 'm5stack1', dep
499499
'llm-model-Qwen3.5-2B-ax650':[create_data_deb,'llm-model-Qwen3.5-2B-ax650', '0.6', src_folder, revision],
500500
'llm-model-Qwen3.5-2B-Int4-ax650':[create_data_deb,'llm-model-Qwen3.5-2B-Int4-ax650', '0.6', src_folder, revision],
501501
'llm-model-Qwen3.5-4B-Int4-ax650':[create_data_deb,'llm-model-Qwen3.5-4B-Int4-ax650', '0.6', src_folder, revision],
502+
'llm-model-HY-MT1.5-1.8B-Int4-ax650':[create_data_deb,'llm-model-HY-MT1.5-1.8B-Int4-ax650', '0.6', src_folder, revision],
502503
# Llama model
503504
'llm-model-llama3.2-1B-prefill-ax630c':[create_data_deb,'llm-model-llama3.2-1B-prefill-ax630c', data_version, src_folder, revision],
504505
'llm-model-llama3.2-1B-p256-ax630c':[create_data_deb,'llm-model-llama3.2-1B-p256-ax630c', '0.4', src_folder, revision],

0 commit comments

Comments
 (0)