mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2026-07-28 11:46:09 +08:00
[misc] fix ray initialization comment typo (#10628)
Co-authored-by: Karunanidhi Mishra <11963379+kmishra1204@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
445163ab5e
commit
76a0391ddd
@@ -134,7 +134,7 @@ def _training_function(config: dict[str, Any]) -> None:
|
|||||||
raise ValueError(f"Unknown task: {finetuning_args.stage}.")
|
raise ValueError(f"Unknown task: {finetuning_args.stage}.")
|
||||||
|
|
||||||
if is_ray_available() and ray.is_initialized():
|
if is_ray_available() and ray.is_initialized():
|
||||||
return # if ray is intialized it will destroy the process group on return
|
return # if ray is initialized it will destroy the process group on return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if dist.is_initialized():
|
if dist.is_initialized():
|
||||||
|
|||||||
Reference in New Issue
Block a user