Instructions to use fixie-ai/ultravox-v0_2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fixie-ai/ultravox-v0_2 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("fixie-ai/ultravox-v0_2", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
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)
|