mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-05 10:22:15 +08:00
6 lines
96 B
Python
6 lines
96 B
Python
import os
|
|
|
|
|
|
def should_use_ray():
|
|
return os.getenv("USE_RAY", "0").lower() in ["true", "1"]
|