mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-25 19:48:41 +08:00
Signed-off-by: Yarong Mu <ymu@google.com>
This commit is contained in:
parent
e1f0835ae0
commit
66e16a038e
@ -75,6 +75,9 @@ class TPUWorker:
|
||||
self.profile_dir)
|
||||
self.profiler = xp.start_server(9012)
|
||||
|
||||
if self.model_config.seed is None:
|
||||
self.model_config.seed = 0
|
||||
|
||||
def init_device(self):
|
||||
os.environ["PJRT_DEVICE"] = "TPU"
|
||||
torch.set_grad_enabled(False)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user