MCPcopy
hub / github.com/hpcaitech/ColossalAI / seed

Method seed

colossalai/accelerator/cpu_accelerator.py:138–142  ·  view source on GitHub ↗

Sets the seed for generating random numbers to a random number for the current GPU.

(self)

Source from the content-addressed store, hash-verified

136 raise RuntimeError("this method is not supported for cpu accelerator")
137
138 def seed(self) -> None:
139 """
140 Sets the seed for generating random numbers to a random number for the current GPU.
141 """
142 raise RuntimeError("this method is not supported for cpu accelerator")
143
144 def seed_all(self) -> None:
145 """

Callers 15

set_seedFunction · 0.45
seed_workerFunction · 0.45
set_seedMethod · 0.45
seed_allFunction · 0.45
seed_workerMethod · 0.45
seed_workerMethod · 0.45
seed_workerMethod · 0.45
topo_utils.pyFile · 0.45
hf_utils.pyFile · 0.45
timm_utils.pyFile · 0.45
set_seedFunction · 0.45

Calls

no outgoing calls

Tested by 9

set_seedFunction · 0.36
setup_seedFunction · 0.36
setup_seedFunction · 0.36
setup_seedFunction · 0.36
setup_seedFunction · 0.36
setup_seedFunction · 0.36
test_fp8_conversionFunction · 0.36
setup_seedFunction · 0.36
setup_seedFunction · 0.36