Upload UltravoxPipeline
Browse files- config.json +1 -1
- model.safetensors +1 -1
- ultravox_pipeline.py +2 -2
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "/Users/zhuang/repos/ultravox-omni/artifacts/model-zhuang.2025-01-08-v0_5.llama3_1-8b-3d.20345bc:
|
3 |
"architectures": [
|
4 |
"UltravoxModel"
|
5 |
],
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "/Users/zhuang/repos/ultravox-omni/artifacts/model-zhuang.2025-01-08-v0_5.llama3_1-8b-3d.20345bc:v6",
|
3 |
"architectures": [
|
4 |
"UltravoxModel"
|
5 |
],
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1374682344
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03a1d38de8d3e6ab5423e4fba58d97acf3224dfde4227d1ad0243354b5322165
|
3 |
size 1374682344
|
ultravox_pipeline.py
CHANGED
@@ -33,6 +33,8 @@ class UltravoxPipeline(transformers.Pipeline):
|
|
33 |
model.config.audio_model_id or model.config.audio_config._name_or_path
|
34 |
)
|
35 |
|
|
|
|
|
36 |
self.processor = UltravoxProcessor(
|
37 |
audio_processor=audio_processor,
|
38 |
tokenizer=tokenizer,
|
@@ -40,8 +42,6 @@ class UltravoxPipeline(transformers.Pipeline):
|
|
40 |
audio_context_size=model.audio_tower_context_length,
|
41 |
)
|
42 |
|
43 |
-
super().__init__(model=model, tokenizer=tokenizer, **kwargs)
|
44 |
-
|
45 |
def _sanitize_parameters(self, **kwargs):
|
46 |
generation_keys = ["temperature", "max_new_tokens", "repetition_penalty"]
|
47 |
generation_kwargs = {k: kwargs[k] for k in kwargs if k in generation_keys}
|
|
|
33 |
model.config.audio_model_id or model.config.audio_config._name_or_path
|
34 |
)
|
35 |
|
36 |
+
super().__init__(model=model, tokenizer=tokenizer, **kwargs)
|
37 |
+
|
38 |
self.processor = UltravoxProcessor(
|
39 |
audio_processor=audio_processor,
|
40 |
tokenizer=tokenizer,
|
|
|
42 |
audio_context_size=model.audio_tower_context_length,
|
43 |
)
|
44 |
|
|
|
|
|
45 |
def _sanitize_parameters(self, **kwargs):
|
46 |
generation_keys = ["temperature", "max_new_tokens", "repetition_penalty"]
|
47 |
generation_kwargs = {k: kwargs[k] for k in kwargs if k in generation_keys}
|