mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-30 03:01:28 +00:00
Working multi gpu training. Still need a lot of tweaks and testing.
This commit is contained in:
6
toolkit/print.py
Normal file
6
toolkit/print.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from toolkit.accelerator import get_accelerator
|
||||
|
||||
|
||||
def print_acc(*args, **kwargs):
|
||||
if get_accelerator().is_local_main_process:
|
||||
print(*args, **kwargs)
|
||||
Reference in New Issue
Block a user