Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
gshtras committed Jan 6, 2025
1 parent 4773c29 commit 267c1a1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions vllm/_custom_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@ def register_graph_buffers(fa: int, handles: List[str],
offsets: List[List[int]]) -> None:
torch.ops._C_custom_ar.register_graph_buffers(fa, handles, offsets)


def allocate_meta_buffer(size: int) -> torch.Tensor:
return torch.ops._C_custom_ar.allocate_meta_buffer(size)

Expand Down
3 changes: 1 addition & 2 deletions vllm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ def compute_hash(self) -> str:
factors.append(self.model)
factors.append(self.dtype)
factors.append(self.quantization)
factors.append(self.quantization_param_path)
factors.append(self.revision)
factors.append(self.code_revision)
factors.append(self.trust_remote_code)
Expand Down Expand Up @@ -560,6 +559,7 @@ def _verify_quantization(self) -> None:

# Detect which checkpoint is it
for name in QUANTIZATION_METHODS:
from vllm.platforms import current_platform
method = get_quantization_config(name)
quantization_override = method.override_quantization_method(
quant_cfg, self.quantization)
Expand Down Expand Up @@ -1350,7 +1350,6 @@ def use_ray(self) -> bool:
def _verify_args(self) -> None:
# Lazy import to avoid circular import
from vllm.executor.executor_base import ExecutorBase
from vllm.platforms import current_platform
if self.distributed_executor_backend not in (
"ray", "mp", None) and not (isinstance(
self.distributed_executor_backend, type) and issubclass(
Expand Down
2 changes: 1 addition & 1 deletion vllm/platforms/rocm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
from functools import lru_cache, wraps
from typing import TYPE_CHECKING, List, Dict, List, Optional
from typing import TYPE_CHECKING, Dict, List, Optional

import torch
from amdsmi import (AmdSmiException, amdsmi_get_gpu_board_info,
Expand Down
3 changes: 2 additions & 1 deletion vllm/transformers_utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
# yapf: disable
from vllm.transformers_utils.configs import (ChatGLMConfig, Cohere2Config,
DbrxConfig, EAGLEConfig,
Grok1Config, ExaoneConfig, H2OVLChatConfig,
ExaoneConfig, Grok1Config,
H2OVLChatConfig,
InternVLChatConfig, JAISConfig,
MedusaConfig, MllamaConfig,
MLPSpeculatorConfig, MPTConfig,
Expand Down

0 comments on commit 267c1a1

Please sign in to comment.