Upload folder using huggingface_hub
Browse files- .gitattributes +2 -0
- .gitignore +3 -0
- README.md +1 -0
- aux_lm_residual_projection.safetensors +3 -0
- chute_config.yml +22 -0
- config.json +116 -0
- configuration.json +1 -0
- generation_config.json +7 -0
- merges.txt +0 -0
- miner.py +0 -0
- miner.training.py.bak +0 -0
- model-00001-of-00008.safetensors +3 -0
- model-00002-of-00008.safetensors +3 -0
- model-00003-of-00008.safetensors +3 -0
- model-00004-of-00008.safetensors +3 -0
- model-00005-of-00008.safetensors +3 -0
- model-00006-of-00008.safetensors +3 -0
- model-00007-of-00008.safetensors +3 -0
- model-00008-of-00008.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +13 -0
- pyproject.toml +47 -0
- tokenizer.json +0 -0
- tokenizer_config.json +207 -0
- vocab.json +0 -0
- vocence_config.yaml +21 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ 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 |
+
figures/Fig1.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.venv/
|
| 2 |
+
__pycache__/
|
| 3 |
+
vocence_local_wrapper.py
|
README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Vocence Model
|
aux_lm_residual_projection.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18ddd372e41deb26ba255bb00df1db45dde6aead624ef06eef38935a8fa6592e
|
| 3 |
+
size 89255956
|
chute_config.yml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Image:
|
| 2 |
+
from_base: parachutes/python:3.12
|
| 3 |
+
run_command:
|
| 4 |
+
- pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cu128
|
| 5 |
+
- pip install --no-cache-dir transformers==4.51.3 accelerate huggingface_hub pyyaml soundfile librosa numpy scipy safetensors resampy diffusers tqdm
|
| 6 |
+
set_workdir: /app
|
| 7 |
+
|
| 8 |
+
NodeSelector:
|
| 9 |
+
gpu_count: 1
|
| 10 |
+
min_vram_gb_per_gpu: 64
|
| 11 |
+
include:
|
| 12 |
+
- pro_6000
|
| 13 |
+
exclude: []
|
| 14 |
+
|
| 15 |
+
Chute:
|
| 16 |
+
tagline: Vocence TTS — QWEN3Vox (weights + miner.py in repo)
|
| 17 |
+
readme: Repo-root miner.py, config.json, weights, aux_lm_residual_projection.safetensors; optional voices/*.wav for discrete conditioning (VOCENCE_PREFER_DISCRETE_COEFF_DIR).
|
| 18 |
+
shutdown_after_seconds: 86400
|
| 19 |
+
concurrency: 1
|
| 20 |
+
max_instances: 1
|
| 21 |
+
scaling_threshold: 0.5
|
| 22 |
+
tee: true
|
config.json
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"acostic_vae_dim": 64,
|
| 3 |
+
"acoustic_tokenizer_config": {
|
| 4 |
+
"causal": true,
|
| 5 |
+
"channels": 1,
|
| 6 |
+
"conv_bias": true,
|
| 7 |
+
"conv_norm": "none",
|
| 8 |
+
"corpus_normalize": 0.0,
|
| 9 |
+
"decoder_depths": null,
|
| 10 |
+
"decoder_n_filters": 32,
|
| 11 |
+
"decoder_ratios": [
|
| 12 |
+
8,
|
| 13 |
+
5,
|
| 14 |
+
5,
|
| 15 |
+
4,
|
| 16 |
+
2,
|
| 17 |
+
2
|
| 18 |
+
],
|
| 19 |
+
"disable_last_norm": true,
|
| 20 |
+
"encoder_depths": "3-3-3-3-3-3-8",
|
| 21 |
+
"encoder_n_filters": 32,
|
| 22 |
+
"encoder_ratios": [
|
| 23 |
+
8,
|
| 24 |
+
5,
|
| 25 |
+
5,
|
| 26 |
+
4,
|
| 27 |
+
2,
|
| 28 |
+
2
|
| 29 |
+
],
|
| 30 |
+
"fix_std": 0.5,
|
| 31 |
+
"layer_scale_init_value": 1e-06,
|
| 32 |
+
"layernorm": "RMSNorm",
|
| 33 |
+
"layernorm_elementwise_affine": true,
|
| 34 |
+
"layernorm_eps": 1e-05,
|
| 35 |
+
"mixer_layer": "depthwise_conv",
|
| 36 |
+
"model_type": "vibevoice_acoustic_tokenizer",
|
| 37 |
+
"pad_mode": "constant",
|
| 38 |
+
"std_dist_type": "gaussian",
|
| 39 |
+
"vae_dim": 64,
|
| 40 |
+
"weight_init_value": 0.01
|
| 41 |
+
},
|
| 42 |
+
"architectures": [
|
| 43 |
+
"VibeVoiceForConditionalGeneration"
|
| 44 |
+
],
|
| 45 |
+
"decoder_config": {
|
| 46 |
+
"attention_dropout": 0.0,
|
| 47 |
+
"hidden_act": "silu",
|
| 48 |
+
"hidden_size": 3584,
|
| 49 |
+
"initializer_range": 0.02,
|
| 50 |
+
"intermediate_size": 18944,
|
| 51 |
+
"max_position_embeddings": 32768,
|
| 52 |
+
"max_window_layers": 28,
|
| 53 |
+
"model_type": "qwen2",
|
| 54 |
+
"num_attention_heads": 28,
|
| 55 |
+
"num_hidden_layers": 28,
|
| 56 |
+
"num_key_value_heads": 4,
|
| 57 |
+
"rms_norm_eps": 1e-06,
|
| 58 |
+
"rope_scaling": null,
|
| 59 |
+
"rope_theta": 1000000.0,
|
| 60 |
+
"sliding_window": null,
|
| 61 |
+
"torch_dtype": "bfloat16",
|
| 62 |
+
"use_cache": true,
|
| 63 |
+
"use_mrope": false,
|
| 64 |
+
"use_sliding_window": false,
|
| 65 |
+
"vocab_size": 152064
|
| 66 |
+
},
|
| 67 |
+
"diffusion_head_config": {
|
| 68 |
+
"ddpm_batch_mul": 4,
|
| 69 |
+
"ddpm_beta_schedule": "cosine",
|
| 70 |
+
"ddpm_num_inference_steps": 20,
|
| 71 |
+
"ddpm_num_steps": 1000,
|
| 72 |
+
"diffusion_type": "ddpm",
|
| 73 |
+
"head_ffn_ratio": 3.0,
|
| 74 |
+
"head_layers": 4,
|
| 75 |
+
"hidden_size": 3584,
|
| 76 |
+
"latent_size": 64,
|
| 77 |
+
"model_type": "vibevoice_diffusion_head",
|
| 78 |
+
"prediction_type": "v_prediction",
|
| 79 |
+
"rms_norm_eps": 1e-05,
|
| 80 |
+
"speech_vae_dim": 64
|
| 81 |
+
},
|
| 82 |
+
"model_type": "vibevoice",
|
| 83 |
+
"semantic_tokenizer_config": {
|
| 84 |
+
"causal": true,
|
| 85 |
+
"channels": 1,
|
| 86 |
+
"conv_bias": true,
|
| 87 |
+
"conv_norm": "none",
|
| 88 |
+
"corpus_normalize": 0.0,
|
| 89 |
+
"disable_last_norm": true,
|
| 90 |
+
"encoder_depths": "3-3-3-3-3-3-8",
|
| 91 |
+
"encoder_n_filters": 32,
|
| 92 |
+
"encoder_ratios": [
|
| 93 |
+
8,
|
| 94 |
+
5,
|
| 95 |
+
5,
|
| 96 |
+
4,
|
| 97 |
+
2,
|
| 98 |
+
2
|
| 99 |
+
],
|
| 100 |
+
"fix_std": 0,
|
| 101 |
+
"layer_scale_init_value": 1e-06,
|
| 102 |
+
"layernorm": "RMSNorm",
|
| 103 |
+
"layernorm_elementwise_affine": true,
|
| 104 |
+
"layernorm_eps": 1e-05,
|
| 105 |
+
"mixer_layer": "depthwise_conv",
|
| 106 |
+
"model_type": "vibevoice_semantic_tokenizer",
|
| 107 |
+
"pad_mode": "constant",
|
| 108 |
+
"std_dist_type": "none",
|
| 109 |
+
"vae_dim": 128,
|
| 110 |
+
"weight_init_value": 0.01
|
| 111 |
+
},
|
| 112 |
+
"semantic_vae_dim": 128,
|
| 113 |
+
"tie_word_embeddings": false,
|
| 114 |
+
"torch_dtype": "bfloat16",
|
| 115 |
+
"transformers_version": "4.51.3"
|
| 116 |
+
}
|
configuration.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"framework": "pytorch", "task": "others", "allow_remote": true}
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"do_sample": false,
|
| 4 |
+
"eos_token_id": 151643,
|
| 5 |
+
"max_new_tokens": 2048,
|
| 6 |
+
"transformers_version": "4.37.0"
|
| 7 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
miner.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
miner.training.py.bak
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model-00001-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94c080d121aa3c69767f9bf3bdaea490f72b6069ddd484f74268151a981df4ff
|
| 3 |
+
size 4976687968
|
model-00002-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7cf6be78aa4a468f37ffb21406791b89470cf9d34e456164c9629edc68493c30
|
| 3 |
+
size 4778623360
|
model-00003-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:290f635185c74d913dca1398f1f466f60d7aa0900db527f0334c3d725d8c2fd3
|
| 3 |
+
size 4932744880
|
model-00004-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:107df8f8bdb52dc63484b55422333e0ae372a58c9c3e365233ffda6d57f92e9d
|
| 3 |
+
size 4932744904
|
model-00005-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a60f47e3abdc945ca4131ce509211a3e21cb815d00f1989a2ff26ce8046044a2
|
| 3 |
+
size 4998853328
|
model-00006-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a10264f890dae6c58d664d43fe9be13561b6678d526483c2b42cfb807fc43f21
|
| 3 |
+
size 4966898568
|
model-00007-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba717ad890a9a2bc62bd02a788634a4292c046736fcb3ba027334c7f5473ca35
|
| 3 |
+
size 4886781532
|
model-00008-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d0dfe505f4e37e8094005829a6730a28ded6ad54ed82c46f70b5238867311b8
|
| 3 |
+
size 2900245504
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"processor_class": "VibeVoiceProcessor",
|
| 3 |
+
"speech_tok_compress_ratio": 3200,
|
| 4 |
+
"db_normalize": true,
|
| 5 |
+
"audio_processor": {
|
| 6 |
+
"feature_extractor_type": "VibeVoiceTokenizerProcessor",
|
| 7 |
+
"sampling_rate": 22050,
|
| 8 |
+
"normalize_audio": true,
|
| 9 |
+
"target_dB_FS": -25,
|
| 10 |
+
"eps": 1e-06
|
| 11 |
+
},
|
| 12 |
+
"language_model_pretrained_name": "might2901/king_01"
|
| 13 |
+
}
|
pyproject.toml
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[build-system]
|
| 2 |
+
requires = ["setuptools>=61.0"]
|
| 3 |
+
build-backend = "setuptools.build_meta"
|
| 4 |
+
|
| 5 |
+
[project]
|
| 6 |
+
name = "vibevoice"
|
| 7 |
+
version = "0.1.0"
|
| 8 |
+
authors = [
|
| 9 |
+
{ name="vibevoice team", email="vibepod@microsoft.com" },
|
| 10 |
+
]
|
| 11 |
+
description = "A model for speech generation with an AR + diffusion architecture."
|
| 12 |
+
readme = "README.md"
|
| 13 |
+
requires-python = ">=3.9"
|
| 14 |
+
classifiers = [
|
| 15 |
+
"Programming Language :: Python :: 3",
|
| 16 |
+
# "License :: OSI Approved :: MIT License",
|
| 17 |
+
"Operating System :: OS Independent",
|
| 18 |
+
]
|
| 19 |
+
dependencies = [
|
| 20 |
+
"torch",
|
| 21 |
+
"accelerate==1.6.0",
|
| 22 |
+
"transformers==4.51.3", # we develop this project on transformers==4.51.3, later version may not be compatible
|
| 23 |
+
"datasets==3.5.0", # avoid issues with torchcodec
|
| 24 |
+
"peft", # for finetuning
|
| 25 |
+
"llvmlite>=0.40.0",
|
| 26 |
+
"numba>=0.57.0",
|
| 27 |
+
"diffusers",
|
| 28 |
+
"tqdm",
|
| 29 |
+
"numpy",
|
| 30 |
+
"scipy",
|
| 31 |
+
"librosa",
|
| 32 |
+
"ml-collections",
|
| 33 |
+
"absl-py",
|
| 34 |
+
"gradio==5.50.0",
|
| 35 |
+
"av",
|
| 36 |
+
"aiortc"
|
| 37 |
+
]
|
| 38 |
+
|
| 39 |
+
[project.optional-dependencies]
|
| 40 |
+
# Optional dependencies for streaming model web service
|
| 41 |
+
streaming-web = [
|
| 42 |
+
"fastapi",
|
| 43 |
+
"uvicorn[standard]",
|
| 44 |
+
]
|
| 45 |
+
|
| 46 |
+
[tool.setuptools.packages.find]
|
| 47 |
+
where = ["."]
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"151643": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
}
|
| 181 |
+
},
|
| 182 |
+
"additional_special_tokens": [
|
| 183 |
+
"<|im_start|>",
|
| 184 |
+
"<|im_end|>",
|
| 185 |
+
"<|object_ref_start|>",
|
| 186 |
+
"<|object_ref_end|>",
|
| 187 |
+
"<|box_start|>",
|
| 188 |
+
"<|box_end|>",
|
| 189 |
+
"<|quad_start|>",
|
| 190 |
+
"<|quad_end|>",
|
| 191 |
+
"<|vision_start|>",
|
| 192 |
+
"<|vision_end|>",
|
| 193 |
+
"<|vision_pad|>",
|
| 194 |
+
"<|image_pad|>",
|
| 195 |
+
"<|video_pad|>"
|
| 196 |
+
],
|
| 197 |
+
"bos_token": null,
|
| 198 |
+
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\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>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\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\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
|
| 199 |
+
"clean_up_tokenization_spaces": false,
|
| 200 |
+
"eos_token": "<|endoftext|>",
|
| 201 |
+
"errors": "replace",
|
| 202 |
+
"model_max_length": 131072,
|
| 203 |
+
"pad_token": "<|endoftext|>",
|
| 204 |
+
"split_special_tokens": false,
|
| 205 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 206 |
+
"unk_token": null
|
| 207 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vocence_config.yaml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Miner + /health metadata. `model_name` must match on-chain commitment and VOCENCE_REPO.
|
| 2 |
+
model_name: "might2901/king_01"
|
| 3 |
+
|
| 4 |
+
runtime:
|
| 5 |
+
adapter: "qwen3_tts_repo_snapshot"
|
| 6 |
+
device_preference: "cuda"
|
| 7 |
+
dtype: "bfloat16"
|
| 8 |
+
default_language: "English"
|
| 9 |
+
use_flash_attention_2: false
|
| 10 |
+
|
| 11 |
+
generation:
|
| 12 |
+
sample_rate: 24000
|
| 13 |
+
max_seconds: 30
|
| 14 |
+
|
| 15 |
+
io:
|
| 16 |
+
output_format: "wav"
|
| 17 |
+
|
| 18 |
+
limits:
|
| 19 |
+
max_text_chars: 2000
|
| 20 |
+
max_instruction_chars: 600
|
| 21 |
+
default_language: "English"
|