-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Implement the (response) KL loss described in the BLSP-KD paper: https://arxiv.org/abs/2405.19041. - Add an option to configure loss function in the config file, as shown below: loss_config: # Choose from ["KL_Divergence", "CrossEntropy"], default is "KL_Divergence" loss_function: "KL_Divergence"
- Loading branch information
1 parent
7202cfc
commit ecd58c4
Showing
8 changed files
with
171 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# SLM with ultravox & llama3, trained wtih knowledge distillation. | ||
exp_name: "llama3_whisper_s" | ||
|
||
# Make sure to accept the license agreement on huggingface hub | ||
text_model: "meta-llama/Meta-Llama-3-8B-Instruct" | ||
audio_model: "openai/whisper-small" | ||
|
||
|
||
loss_config: | ||
# Choose from ["KL_Divergence", "CrossEntropy"], default is "KL_Divergence" | ||
loss_function: "KL_Divergence" | ||
|
||
# Temporarily remove heysquad_human from val_sets as it causes the training to fail. | ||
val_sets: ["anyinstruct", "soda", "peoplespeech"] | ||
|
||
batch_size: 4 | ||
max_steps: 1000 | ||
|
||
data_sets: ["gigaspeech", "anyinstruct", "soda"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters