mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-09 22:57:18 +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.profile_dir)
|
||||||
self.profiler = xp.start_server(9012)
|
self.profiler = xp.start_server(9012)
|
||||||
|
|
||||||
|
if self.model_config.seed is None:
|
||||||
|
self.model_config.seed = 0
|
||||||
|
|
||||||
def init_device(self):
|
def init_device(self):
|
||||||
os.environ["PJRT_DEVICE"] = "TPU"
|
os.environ["PJRT_DEVICE"] = "TPU"
|
||||||
torch.set_grad_enabled(False)
|
torch.set_grad_enabled(False)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user