Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion settings.template.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@
},
"vllm_args": {
"gpu_memory_utilization": 0.9,
// "dtype": "float16", // For GPUs with compute capability < 8.0 (e.g., Tesla T4, V100) that don't support bfloat16
// "data_parallel_size": 2,
// "quantization": "bitsandbytes",
// "quantization": "bitsandbytes",
// "load_format": "bitsandbytes"
},
"test_model_args": {
Expand Down
7 changes: 7 additions & 0 deletions weclone/utils/config_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ class InferArgs(BaseConfigModel):

class VllmArgs(BaseConfigModel):
gpu_memory_utilization: float = Field(default=0.9, description="vllm GPU memory utilization")
dtype: Optional[str] = Field(
default=None,
description=(
"Data type for vLLM inference. Set to 'float16' for GPUs with compute capability < 8.0 "
"(e.g., Tesla T4, V100) that do not support bfloat16."
),
)
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Outdated


class TestModelArgs(BaseConfigModel):
Expand Down