# if False: # True False ---> Set to False if you don't understand it
# if False: # True False ---> Set to False if you don't understand it
# print("\n\n[[[ SPECIAL DEBUG MODE FOR MYSELF. DON'T ENABLE THIS IF YOU DON'T UNDERSTAND IT ]]]\n\n")
# print("\n\n[[[ SPECIAL DEBUG MODE FOR MYSELF. DON'T ENABLE THIS IF YOU DON'T UNDERSTAND IT ]]]\n\n")
@ -61,7 +58,12 @@ if EXPRESS_PILE_MODE:
#
#
os.environ['RWKV_NUM_GPUS']='1'# num of GPUs to use
os.environ['RWKV_NUM_GPUS']='1'# num of GPUs to use
os.environ['RWKV_FLOAT_MODE']='bf16'# 'bf16' (stable) or 'fp16' (will overflow after training a large model for very long. can be solved in the future) or 'fp32'
#
# 'bf16' (fast & stable)
# 'fp16' (fast & will overflow after training a large model for very long. can be solved in the future)
# 'tf32' (decent speed & stable)
# 'fp32' (!!!very slow!!! only for verification)
os.environ['RWKV_FLOAT_MODE']='bf16'
os.environ['RWKV_DEEPSPEED']='1'# Use DeepSpeed? 0 = False, 1 = True
os.environ['RWKV_DEEPSPEED']='1'# Use DeepSpeed? 0 = False, 1 = True