|
40 | 40 | python examples/genai/nemotron_omni_voice/voice_client.py --endpoint <app-url> |
41 | 41 | """ |
42 | 42 |
|
43 | | -from flyteplugins.vllm import VLLMAppEnvironment |
| 43 | +from flyteplugins.vllm import DEFAULT_VLLM_IMAGE, VLLMAppEnvironment |
44 | 44 |
|
45 | 45 | import flyte |
46 | 46 | import flyte.app |
|
60 | 60 | # --------------------------------------------------------------------------- |
61 | 61 | # Image |
62 | 62 | # |
63 | | -# The Omni model needs vLLM >= 0.20 and trust-remote-code. We mirror the |
64 | | -# plugin's default image (flashinfer for fast FP8 attention on Ada/L40S) but |
65 | | -# pin a newer vLLM and add the audio decoding libraries vLLM uses to read the |
66 | | -# incoming wav/mp3 payloads. |
| 63 | +# The Omni model needs vLLM >= 0.20 and trust-remote-code. The plugin's default |
| 64 | +# image already satisfies the version floor (and carries a flashinfer build |
| 65 | +# matching that vLLM, for fast FP8 attention on Ada/L40S), so this only adds the |
| 66 | +# audio decoding libraries vLLM uses to read the incoming wav/mp3 payloads. |
| 67 | +# |
| 68 | +# To follow a newer vLLM than the plugin pins, append your own layer: |
| 69 | +# .with_pip_packages("vllm==<version>") |
67 | 70 | # --------------------------------------------------------------------------- |
68 | 71 |
|
69 | | -VLLM_VERSION = "0.20.0" |
70 | | - |
71 | 72 | image = ( |
72 | | - flyte.Image.from_debian_base(name="nemotron-omni-vllm", install_flyte=False) |
73 | | - .with_pip_packages("flashinfer-python", "flashinfer-cubin") |
74 | | - .with_pip_packages("flashinfer-jit-cache", index_url="https://flashinfer.ai/whl/cu129") |
75 | | - .with_pip_packages("flyteplugins-vllm", pre=True) |
76 | | - # vLLM goes in its own layer (dependency conflict with flyte on protovalidate). |
77 | | - .with_pip_packages(f"vllm=={VLLM_VERSION}", "transformers>=4.57.0") |
| 73 | + DEFAULT_VLLM_IMAGE.clone(name="nemotron-omni-vllm") |
78 | 74 | # Audio decoding for the multimodal input pipeline. |
79 | 75 | .with_pip_packages("librosa", "soundfile") |
80 | 76 | ) |
|
0 commit comments