mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2026-07-28 19:56:13 +08:00
[train] support megatron-bridge for PT/SFT training (#10645)
This commit is contained in:
@@ -79,6 +79,13 @@ def is_mcore_adapter_available():
|
||||
return _is_package_available("mcore_adapter")
|
||||
|
||||
|
||||
def is_megatron_bridge_available():
|
||||
try:
|
||||
return _is_package_available("megatron.bridge")
|
||||
except ModuleNotFoundError:
|
||||
return False
|
||||
|
||||
|
||||
def is_pillow_available():
|
||||
return _is_package_available("PIL")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user