Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix] Fix broken import #4

Merged
merged 5 commits into from
Mar 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions vllm_spyre/worker/spyre_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
from vllm.model_executor import set_random_seed
from vllm.platforms import current_platform
from vllm.sequence import ExecuteModelRequest
from vllm.worker.worker_base import (LocalOrDistributedWorkerBase,
LoraNotSupportedWorkerBase, WorkerBase,
from vllm.worker.worker_base import (LocalOrDistributedWorkerBase, WorkerBase,
WorkerInput)

import vllm_spyre.envs as envs_spyre
Expand All @@ -25,8 +24,18 @@
# from vllm.worker.spyre_model_runner import SpyreModelRunner
from vllm_spyre.worker.spyre_model_runner import SpyreModelRunner

# Post 0.7.3 this class was renamed
# yapf conflicts with isort for this block
# yapf: disable
try:
from vllm.worker.worker_base import LoRANotSupportedWorkerBase
except ImportError:
from vllm.worker.worker_base import (
LoraNotSupportedWorkerBase as LoRANotSupportedWorkerBase)
# yapf: enable

class SpyreWorker(LoraNotSupportedWorkerBase, LocalOrDistributedWorkerBase):

class SpyreWorker(LoRANotSupportedWorkerBase, LocalOrDistributedWorkerBase):
"""A worker class that executes the model on a group of Spyre cores.
"""

Expand Down