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

Method manual_seed

colossalai/accelerator/cpu_accelerator.py:126–130  ·  view source on GitHub ↗

Sets the seed for generating random numbers for the current GPU.

(self, seed: int)

Source from the content-addressed store, hash-verified

124 raise RuntimeError("this method is not supported for cpu accelerator")
125
126 def manual_seed(self, seed: int) -> None:
127 """
128 Sets the seed for generating random numbers for the current GPU.
129 """
130 raise RuntimeError("this method is not supported for cpu accelerator")
131
132 def manual_seed_all(self, seed: int) -> None:
133 """

Callers 15

make_experienceMethod · 0.45
set_seedFunction · 0.45
__iter__Method · 0.45
seed_workerFunction · 0.45
_pre_context_execMethod · 0.45
set_seedMethod · 0.45
add_seedMethod · 0.45
benchmark_fsdp.pyFile · 0.45
seed_allFunction · 0.45
seed_workerMethod · 0.45
seed_workerMethod · 0.45
seed_workerMethod · 0.45

Calls

no outgoing calls

Tested by 15

check_ring_attnFunction · 0.36
check_packed_seqFunction · 0.36
set_seedFunction · 0.36
partitionFunction · 0.36
run_masterFunction · 0.36
partitionFunction · 0.36
run_masterFunction · 0.36
partitionFunction · 0.36
run_masterFunction · 0.36