[Misc] Remove override_attention_dtype (#48684)
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent
1f7427bc0a
commit
cdc4824a21
@@ -1,7 +1,6 @@
|
|||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||||
|
|
||||||
import warnings
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from dataclasses import InitVar, field
|
from dataclasses import InitVar, field
|
||||||
from functools import cached_property
|
from functools import cached_property
|
||||||
@@ -349,8 +348,6 @@ class ModelConfig:
|
|||||||
- "transformers" will use the Transformers model implementation.
|
- "transformers" will use the Transformers model implementation.
|
||||||
- "terratorch" will use the TerraTorch model implementation.
|
- "terratorch" will use the TerraTorch model implementation.
|
||||||
"""
|
"""
|
||||||
override_attention_dtype: str | None = None
|
|
||||||
"""Override dtype for attention"""
|
|
||||||
logits_processors: list[str | type[LogitsProcessor]] | None = None
|
logits_processors: list[str | type[LogitsProcessor]] | None = None
|
||||||
"""One or more logits processors' fully-qualified class names or class
|
"""One or more logits processors' fully-qualified class names or class
|
||||||
definitions"""
|
definitions"""
|
||||||
@@ -433,7 +430,6 @@ class ModelConfig:
|
|||||||
"config_format",
|
"config_format",
|
||||||
"hf_token",
|
"hf_token",
|
||||||
"hf_overrides",
|
"hf_overrides",
|
||||||
"override_attention_dtype",
|
|
||||||
"logits_processors",
|
"logits_processors",
|
||||||
"io_processor_plugin",
|
"io_processor_plugin",
|
||||||
"pooler_config",
|
"pooler_config",
|
||||||
@@ -595,12 +591,6 @@ class ModelConfig:
|
|||||||
self.hf_token,
|
self.hf_token,
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.override_attention_dtype is not None and not current_platform.is_rocm():
|
|
||||||
warnings.warn(
|
|
||||||
"override-attention-dtype is set but not using ROCm platform",
|
|
||||||
stacklevel=2,
|
|
||||||
)
|
|
||||||
|
|
||||||
if self.enable_sleep_mode:
|
if self.enable_sleep_mode:
|
||||||
if not current_platform.is_sleep_mode_available():
|
if not current_platform.is_sleep_mode_available():
|
||||||
raise ValueError("Sleep mode is not supported on current platform.")
|
raise ValueError("Sleep mode is not supported on current platform.")
|
||||||
|
|||||||
@@ -700,7 +700,6 @@ class EngineArgs:
|
|||||||
ModelConfig, "override_generation_config"
|
ModelConfig, "override_generation_config"
|
||||||
)
|
)
|
||||||
model_impl: str = ModelConfig.model_impl
|
model_impl: str = ModelConfig.model_impl
|
||||||
override_attention_dtype: str | None = ModelConfig.override_attention_dtype
|
|
||||||
attention_backend: AttentionBackendEnum | None = AttentionConfig.backend
|
attention_backend: AttentionBackendEnum | None = AttentionConfig.backend
|
||||||
|
|
||||||
kv_cache_dtype_skip_layers: list[str] = get_field(
|
kv_cache_dtype_skip_layers: list[str] = get_field(
|
||||||
@@ -917,9 +916,6 @@ class EngineArgs:
|
|||||||
"--enable-cumem-allocator", **model_kwargs["enable_cumem_allocator"]
|
"--enable-cumem-allocator", **model_kwargs["enable_cumem_allocator"]
|
||||||
)
|
)
|
||||||
model_group.add_argument("--model-impl", **model_kwargs["model_impl"])
|
model_group.add_argument("--model-impl", **model_kwargs["model_impl"])
|
||||||
model_group.add_argument(
|
|
||||||
"--override-attention-dtype", **model_kwargs["override_attention_dtype"]
|
|
||||||
)
|
|
||||||
model_group.add_argument(
|
model_group.add_argument(
|
||||||
"--logits-processors", **model_kwargs["logits_processors"]
|
"--logits-processors", **model_kwargs["logits_processors"]
|
||||||
)
|
)
|
||||||
@@ -1787,7 +1783,6 @@ class EngineArgs:
|
|||||||
enable_sleep_mode=self.enable_sleep_mode,
|
enable_sleep_mode=self.enable_sleep_mode,
|
||||||
enable_cumem_allocator=self.enable_cumem_allocator,
|
enable_cumem_allocator=self.enable_cumem_allocator,
|
||||||
model_impl=self.model_impl,
|
model_impl=self.model_impl,
|
||||||
override_attention_dtype=self.override_attention_dtype,
|
|
||||||
logits_processors=self.logits_processors,
|
logits_processors=self.logits_processors,
|
||||||
video_pruning_rate=self.video_pruning_rate,
|
video_pruning_rate=self.video_pruning_rate,
|
||||||
video_pruning_method=self.video_pruning_method,
|
video_pruning_method=self.video_pruning_method,
|
||||||
|
|||||||
Reference in New Issue
Block a user