hatruong3996 commited on
Commit
2e99432
·
verified ·
1 Parent(s): 2b0fe31

checkpoint update

Browse files
Files changed (2) hide show
  1. config.json +13 -0
  2. config.py +14 -0
config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "audio_enc_dim": 1024,
3
+ "audio_encoder_name": "microsoft/wavlm-large",
4
+ "audio_processor_name": "microsoft/wavlm-base",
5
+ "auto_map": {
6
+ "AutoConfig": "config.SpeechLLMModelConfig"
7
+ },
8
+ "llm_dim": 2048,
9
+ "llm_model_checkpoint": "hf_repo/llm_model_checkpoint",
10
+ "llm_model_name": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
11
+ "model_type": "custom_model",
12
+ "transformers_version": "4.41.2"
13
+ }
config.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import PretrainedConfig
2
+
3
+ class SpeechLLMModelConfig(PretrainedConfig):
4
+ model_type = "custom_model"
5
+
6
+ def __init__(self, **kwargs):
7
+ super().__init__(**kwargs)
8
+ self.audio_enc_dim = 1024
9
+ self.llm_dim = 2048
10
+
11
+ self.audio_processor_name = "microsoft/wavlm-base"
12
+ self.audio_encoder_name = 'microsoft/wavlm-large'
13
+ self.llm_model_name = "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
14
+ self.llm_model_checkpoint = "hf_repo/llm_model_checkpoint"