mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-10 20:34:55 +08:00
Set torch_dtype in TransformersModel (#13088)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
parent
75e6e14516
commit
ad9776353e
@ -143,6 +143,7 @@ class TransformersModel(nn.Module):
|
||||
self.model: PreTrainedModel = AutoModel.from_config(
|
||||
self.config,
|
||||
attn_implementation="vllm",
|
||||
torch_dtype=vllm_config.model_config.dtype,
|
||||
trust_remote_code=vllm_config.model_config.trust_remote_code,
|
||||
)
|
||||
prefix = self.model.base_model_prefix
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user