mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-15 15:33:33 +08:00
Update tests/conftest.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Chukwuma Nwaugha <20521315+nwaughachukwuma@users.noreply.github.com>
This commit is contained in:
parent
95af481818
commit
dc763bbbe7
@ -265,7 +265,7 @@ class HfRunner:
|
|||||||
if isinstance(x, dict):
|
if isinstance(x, dict):
|
||||||
return {k: self.wrap_device(v, device) for k, v in x.items()}
|
return {k: self.wrap_device(v, device) for k, v in x.items()}
|
||||||
|
|
||||||
if hasattr(x.device, "type") and x.device.type == device:
|
if hasattr(x, "device") and x.device.type == device:
|
||||||
return x
|
return x
|
||||||
|
|
||||||
return x.to(device)
|
return x.to(device)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user