Instructions to use amanuelbyte/omnivoice-lora-ar with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use amanuelbyte/omnivoice-lora-ar with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("k2-fsa/OmniVoice") model = PeftModel.from_pretrained(base_model, "amanuelbyte/omnivoice-lora-ar") - Notebooks
- Google Colab
- Kaggle
Upload OmniVoice LoRA checkpoint-200 for arabic
Browse files- .gitattributes +1 -0
- README.md +56 -0
- chat_template.jinja +89 -0
- config.json +101 -0
- model.safetensors +3 -0
- optimizer.bin +3 -0
- random_states_0.pkl +3 -0
- scheduler.bin +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +23 -0
- train_config.json +53 -0
.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
|
README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- ar
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- omnivoice
|
| 7 |
+
- voice-cloning
|
| 8 |
+
- lora
|
| 9 |
+
- speech-synthesis
|
| 10 |
+
- tts
|
| 11 |
+
base_model: k2-fsa/OmniVoice
|
| 12 |
+
library_name: peft
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# OmniVoice LoRA — Arabic (ar)
|
| 16 |
+
|
| 17 |
+
Fine-tuned LoRA adapter for [OmniVoice](https://huggingface.co/k2-fsa/OmniVoice) to improve zero-shot voice cloning quality for **Arabic**.
|
| 18 |
+
|
| 19 |
+
## Training Details
|
| 20 |
+
|
| 21 |
+
- **Base model:** k2-fsa/OmniVoice (Qwen3-0.6B backbone)
|
| 22 |
+
- **Method:** LoRA (rank=32, alpha=64, RSLoRA)
|
| 23 |
+
- **Target modules:** Self-attention + audio projection layers
|
| 24 |
+
- **Training data:** Best-of-N distilled Arabic speech samples
|
| 25 |
+
- **Steps:** 200
|
| 26 |
+
- **Precision:** bf16
|
| 27 |
+
- **Hardware:** NVIDIA A40 (48GB)
|
| 28 |
+
|
| 29 |
+
## Usage
|
| 30 |
+
|
| 31 |
+
```python
|
| 32 |
+
from omnivoice import OmniVoice
|
| 33 |
+
from peft import PeftModel
|
| 34 |
+
import torch
|
| 35 |
+
|
| 36 |
+
# Load base model
|
| 37 |
+
model = OmniVoice.from_pretrained(
|
| 38 |
+
"k2-fsa/OmniVoice",
|
| 39 |
+
device_map="cuda:0",
|
| 40 |
+
dtype=torch.float16,
|
| 41 |
+
)
|
| 42 |
+
|
| 43 |
+
# Load LoRA adapter
|
| 44 |
+
model.llm = PeftModel.from_pretrained(model.llm, "amanuelbyte/omnivoice-lora-ar")
|
| 45 |
+
model.llm = model.llm.merge_and_unload()
|
| 46 |
+
|
| 47 |
+
# Generate
|
| 48 |
+
audio = model.generate(
|
| 49 |
+
text="Your arabic text here",
|
| 50 |
+
ref_audio="path/to/reference.wav",
|
| 51 |
+
)
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
## IWSLT 2026
|
| 55 |
+
|
| 56 |
+
This adapter was developed for the IWSLT 2026 shared task on cross-lingual voice cloning.
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0].role == 'system' %}
|
| 4 |
+
{{- messages[0].content + '\n\n' }}
|
| 5 |
+
{%- endif %}
|
| 6 |
+
{{- "# 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>" }}
|
| 7 |
+
{%- for tool in tools %}
|
| 8 |
+
{{- "\n" }}
|
| 9 |
+
{{- tool | tojson }}
|
| 10 |
+
{%- endfor %}
|
| 11 |
+
{{- "\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" }}
|
| 12 |
+
{%- else %}
|
| 13 |
+
{%- if messages[0].role == 'system' %}
|
| 14 |
+
{{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
|
| 15 |
+
{%- endif %}
|
| 16 |
+
{%- endif %}
|
| 17 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 18 |
+
{%- for message in messages[::-1] %}
|
| 19 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 20 |
+
{%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
|
| 21 |
+
{%- set ns.multi_step_tool = false %}
|
| 22 |
+
{%- set ns.last_query_index = index %}
|
| 23 |
+
{%- endif %}
|
| 24 |
+
{%- endfor %}
|
| 25 |
+
{%- for message in messages %}
|
| 26 |
+
{%- if message.content is string %}
|
| 27 |
+
{%- set content = message.content %}
|
| 28 |
+
{%- else %}
|
| 29 |
+
{%- set content = '' %}
|
| 30 |
+
{%- endif %}
|
| 31 |
+
{%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
|
| 32 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 33 |
+
{%- elif message.role == "assistant" %}
|
| 34 |
+
{%- set reasoning_content = '' %}
|
| 35 |
+
{%- if message.reasoning_content is string %}
|
| 36 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 37 |
+
{%- else %}
|
| 38 |
+
{%- if '</think>' in content %}
|
| 39 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 40 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 41 |
+
{%- endif %}
|
| 42 |
+
{%- endif %}
|
| 43 |
+
{%- if loop.index0 > ns.last_query_index %}
|
| 44 |
+
{%- if loop.last or (not loop.last and reasoning_content) %}
|
| 45 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
|
| 46 |
+
{%- else %}
|
| 47 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 48 |
+
{%- endif %}
|
| 49 |
+
{%- else %}
|
| 50 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 51 |
+
{%- endif %}
|
| 52 |
+
{%- if message.tool_calls %}
|
| 53 |
+
{%- for tool_call in message.tool_calls %}
|
| 54 |
+
{%- if (loop.first and content) or (not loop.first) %}
|
| 55 |
+
{{- '\n' }}
|
| 56 |
+
{%- endif %}
|
| 57 |
+
{%- if tool_call.function %}
|
| 58 |
+
{%- set tool_call = tool_call.function %}
|
| 59 |
+
{%- endif %}
|
| 60 |
+
{{- '<tool_call>\n{"name": "' }}
|
| 61 |
+
{{- tool_call.name }}
|
| 62 |
+
{{- '", "arguments": ' }}
|
| 63 |
+
{%- if tool_call.arguments is string %}
|
| 64 |
+
{{- tool_call.arguments }}
|
| 65 |
+
{%- else %}
|
| 66 |
+
{{- tool_call.arguments | tojson }}
|
| 67 |
+
{%- endif %}
|
| 68 |
+
{{- '}\n</tool_call>' }}
|
| 69 |
+
{%- endfor %}
|
| 70 |
+
{%- endif %}
|
| 71 |
+
{{- '<|im_end|>\n' }}
|
| 72 |
+
{%- elif message.role == "tool" %}
|
| 73 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 74 |
+
{{- '<|im_start|>user' }}
|
| 75 |
+
{%- endif %}
|
| 76 |
+
{{- '\n<tool_response>\n' }}
|
| 77 |
+
{{- content }}
|
| 78 |
+
{{- '\n</tool_response>' }}
|
| 79 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 80 |
+
{{- '<|im_end|>\n' }}
|
| 81 |
+
{%- endif %}
|
| 82 |
+
{%- endif %}
|
| 83 |
+
{%- endfor %}
|
| 84 |
+
{%- if add_generation_prompt %}
|
| 85 |
+
{{- '<|im_start|>assistant\n' }}
|
| 86 |
+
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 87 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 88 |
+
{%- endif %}
|
| 89 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"OmniVoice"
|
| 4 |
+
],
|
| 5 |
+
"audio_codebook_weights": [
|
| 6 |
+
8,
|
| 7 |
+
8,
|
| 8 |
+
6,
|
| 9 |
+
6,
|
| 10 |
+
4,
|
| 11 |
+
4,
|
| 12 |
+
2,
|
| 13 |
+
2
|
| 14 |
+
],
|
| 15 |
+
"audio_mask_id": 1024,
|
| 16 |
+
"audio_vocab_size": 1025,
|
| 17 |
+
"bos_token_id": null,
|
| 18 |
+
"dtype": "float32",
|
| 19 |
+
"eos_token_id": 151645,
|
| 20 |
+
"llm_config": {
|
| 21 |
+
"_name_or_path": "",
|
| 22 |
+
"architectures": [
|
| 23 |
+
"Qwen3ForCausalLM"
|
| 24 |
+
],
|
| 25 |
+
"attention_bias": false,
|
| 26 |
+
"attention_dropout": 0.0,
|
| 27 |
+
"bos_token_id": 151643,
|
| 28 |
+
"chunk_size_feed_forward": 0,
|
| 29 |
+
"dtype": "float32",
|
| 30 |
+
"eos_token_id": 151645,
|
| 31 |
+
"head_dim": 128,
|
| 32 |
+
"hidden_act": "silu",
|
| 33 |
+
"hidden_size": 1024,
|
| 34 |
+
"id2label": {
|
| 35 |
+
"0": "LABEL_0",
|
| 36 |
+
"1": "LABEL_1"
|
| 37 |
+
},
|
| 38 |
+
"initializer_range": 0.02,
|
| 39 |
+
"intermediate_size": 3072,
|
| 40 |
+
"is_encoder_decoder": false,
|
| 41 |
+
"label2id": {
|
| 42 |
+
"LABEL_0": 0,
|
| 43 |
+
"LABEL_1": 1
|
| 44 |
+
},
|
| 45 |
+
"layer_types": [
|
| 46 |
+
"full_attention",
|
| 47 |
+
"full_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"full_attention",
|
| 50 |
+
"full_attention",
|
| 51 |
+
"full_attention",
|
| 52 |
+
"full_attention",
|
| 53 |
+
"full_attention",
|
| 54 |
+
"full_attention",
|
| 55 |
+
"full_attention",
|
| 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 |
+
],
|
| 75 |
+
"max_position_embeddings": 40960,
|
| 76 |
+
"max_window_layers": 28,
|
| 77 |
+
"model_type": "qwen3",
|
| 78 |
+
"num_attention_heads": 16,
|
| 79 |
+
"num_hidden_layers": 28,
|
| 80 |
+
"num_key_value_heads": 8,
|
| 81 |
+
"output_attentions": false,
|
| 82 |
+
"output_hidden_states": false,
|
| 83 |
+
"pad_token_id": null,
|
| 84 |
+
"problem_type": null,
|
| 85 |
+
"return_dict": true,
|
| 86 |
+
"rms_norm_eps": 1e-06,
|
| 87 |
+
"rope_parameters": {
|
| 88 |
+
"rope_theta": 1000000,
|
| 89 |
+
"rope_type": "default"
|
| 90 |
+
},
|
| 91 |
+
"sliding_window": null,
|
| 92 |
+
"tie_word_embeddings": true,
|
| 93 |
+
"use_cache": false,
|
| 94 |
+
"use_sliding_window": false,
|
| 95 |
+
"vocab_size": 151676
|
| 96 |
+
},
|
| 97 |
+
"model_type": "omnivoice",
|
| 98 |
+
"num_audio_codebook": 8,
|
| 99 |
+
"pad_token_id": 151643,
|
| 100 |
+
"transformers_version": "5.5.4"
|
| 101 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bbec6a576947f69258ce33dbac489b20e82ffcfce8ebd1e9bcd19ae7c25993be
|
| 3 |
+
size 2531147888
|
optimizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b4b47651554111a1092b884c6d177a7bcc911aa4c2799ee32433f2b1c0231b4
|
| 3 |
+
size 296162369
|
random_states_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:37775e7998c4e2b4deea45da06e47d368c4cc866ee1e4db3a097a4bf144d11f6
|
| 3 |
+
size 14821
|
scheduler.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:852ddef988f7103509d70cf54769a5ed7d2b40d1db1b9f7ee860bc8add329b23
|
| 3 |
+
size 1401
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:408f669b7e2b045fdf54201d815bd364e6667dbd845115da81239c40bc6dcfd1
|
| 3 |
+
size 11423986
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": null,
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|im_end|>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"extra_special_tokens": [
|
| 9 |
+
"<|denoise|>",
|
| 10 |
+
"<|lang_start|>",
|
| 11 |
+
"<|lang_end|>",
|
| 12 |
+
"<|instruct_start|>",
|
| 13 |
+
"<|instruct_end|>",
|
| 14 |
+
"<|text_start|>",
|
| 15 |
+
"<|text_end|>"
|
| 16 |
+
],
|
| 17 |
+
"is_local": false,
|
| 18 |
+
"model_max_length": 131072,
|
| 19 |
+
"pad_token": "<|endoftext|>",
|
| 20 |
+
"split_special_tokens": false,
|
| 21 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 22 |
+
"unk_token": null
|
| 23 |
+
}
|
train_config.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"output_dir": "./exp/omnivoice_finetuned_ar",
|
| 3 |
+
"data_config": "./data/finetune_ar/config/data_config.json",
|
| 4 |
+
"llm_name_or_path": "Qwen/Qwen3-0.6B",
|
| 5 |
+
"audio_vocab_size": 1025,
|
| 6 |
+
"audio_mask_id": 1024,
|
| 7 |
+
"num_audio_codebook": 8,
|
| 8 |
+
"audio_codebook_weights": [
|
| 9 |
+
8,
|
| 10 |
+
8,
|
| 11 |
+
6,
|
| 12 |
+
6,
|
| 13 |
+
4,
|
| 14 |
+
4,
|
| 15 |
+
2,
|
| 16 |
+
2
|
| 17 |
+
],
|
| 18 |
+
"drop_cond_ratio": 0.05,
|
| 19 |
+
"prompt_ratio_range": [
|
| 20 |
+
0.3,
|
| 21 |
+
0.7
|
| 22 |
+
],
|
| 23 |
+
"mask_ratio_range": [
|
| 24 |
+
0.0,
|
| 25 |
+
1.0
|
| 26 |
+
],
|
| 27 |
+
"language_ratio": 1.0,
|
| 28 |
+
"use_pinyin_ratio": 0.0,
|
| 29 |
+
"instruct_ratio": 0.0,
|
| 30 |
+
"only_instruct_ratio": 0.0,
|
| 31 |
+
"resume_from_checkpoint": null,
|
| 32 |
+
"init_from_checkpoint": "k2-fsa/OmniVoice",
|
| 33 |
+
"learning_rate": 0.0001,
|
| 34 |
+
"weight_decay": 0.01,
|
| 35 |
+
"max_grad_norm": 1.0,
|
| 36 |
+
"steps": 400,
|
| 37 |
+
"seed": 42,
|
| 38 |
+
"lr_scheduler_type": "cosine",
|
| 39 |
+
"warmup_type": "ratio",
|
| 40 |
+
"warmup_ratio": 0.05,
|
| 41 |
+
"warmup_steps": 2000,
|
| 42 |
+
"batch_tokens": 8192,
|
| 43 |
+
"gradient_accumulation_steps": 8,
|
| 44 |
+
"num_workers": 4,
|
| 45 |
+
"mixed_precision": "bf16",
|
| 46 |
+
"allow_tf32": true,
|
| 47 |
+
"use_deepspeed": false,
|
| 48 |
+
"deepspeed_config": null,
|
| 49 |
+
"logging_steps": 10,
|
| 50 |
+
"eval_steps": 100,
|
| 51 |
+
"save_steps": 100,
|
| 52 |
+
"keep_last_n_checkpoints": 3
|
| 53 |
+
}
|