Update ultravox_model.py
Browse files- ultravox_model.py +2 -1
ultravox_model.py
CHANGED
|
@@ -33,7 +33,8 @@ class UltravoxModel(transformers.LlamaPreTrainedModel):
|
|
| 33 |
config_class = UltravoxConfig
|
| 34 |
config: UltravoxConfig # for type hinting
|
| 35 |
_no_split_modules = ["Wav2Vec2Model", "WhisperEncoder", "LlamaDecoderLayer"]
|
| 36 |
-
_keys_to_ignore_on_load_missing = ["audio_tower"]
|
|
|
|
| 37 |
|
| 38 |
def __init__(self, config: UltravoxConfig):
|
| 39 |
super().__init__(config)
|
|
|
|
| 33 |
config_class = UltravoxConfig
|
| 34 |
config: UltravoxConfig # for type hinting
|
| 35 |
_no_split_modules = ["Wav2Vec2Model", "WhisperEncoder", "LlamaDecoderLayer"]
|
| 36 |
+
_keys_to_ignore_on_load_missing = ["audio_tower.*"]
|
| 37 |
+
_keys_to_ignore_on_load_unexpected = ["audio_tower.*", "language_model.*"]
|
| 38 |
|
| 39 |
def __init__(self, config: UltravoxConfig):
|
| 40 |
super().__init__(config)
|