mirror of
https://github.com/hiyouga/LlamaFactory.git
synced 2026-02-01 08:13:38 +00:00
Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com> Former-commit-id: 19c12ddae9350f6e25a270fe3372f5b9094cf960
10 lines
100 B
Python
10 lines
100 B
Python
|
|
import os
|
|
|
|
|
|
def should_use_ray():
|
|
return os.getenv("USE_RAY", "0").lower() in ["true", "1"]
|
|
|
|
|
|
|