mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-17 17:24:21 +00:00
pytorch profiler options
This commit is contained in:
@@ -3948,6 +3948,12 @@ def add_training_arguments(parser: argparse.ArgumentParser, support_dreambooth:
|
||||
action="store_true",
|
||||
help="enable static_graph for DDP / DDPでstatic_graphを有効にする",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--profiler_path",
|
||||
type=str,
|
||||
default="/dev/shm/trace",
|
||||
help="Path for storing PyTorch Profiler traces. Recommended to store in RAM drive. / PyTorch Profiler トレースを保存するためのパス。RAM ドライブに保存することをお勧めします。",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--clip_skip",
|
||||
type=int,
|
||||
@@ -5478,7 +5484,7 @@ def prepare_accelerator(args: argparse.Namespace):
|
||||
(
|
||||
ProfileKwargs(
|
||||
activities=["cpu", "cuda"],
|
||||
output_trace_dir="/dev/shm/trace",
|
||||
output_trace_dir=args.profiler_path,
|
||||
profile_memory=True,
|
||||
record_shapes=True,
|
||||
with_flops=True
|
||||
|
||||
Reference in New Issue
Block a user