Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--blocks_to_swap is supported on linux? #1656

Open
al-swaiti opened this issue Sep 29, 2024 · 0 comments
Open

--blocks_to_swap is supported on linux? #1656

al-swaiti opened this issue Sep 29, 2024 · 0 comments

Comments

@al-swaiti
Copy link

al-swaiti commented Sep 29, 2024

flux_train_network.py: error: unrecognized arguments: --blocks_to_swap 8
Traceback (most recent call last):
  File "/home/abdallah/Desktop/webui/sd-scripts/.venv/bin/accelerate", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/abdallah/Desktop/webui/sd-scripts/.venv/lib/python3.12/site-packages/accelerate/commands/accelerate_cli.py", line 48, in main
    args.func(args)
  File "/home/abdallah/Desktop/webui/sd-scripts/.venv/lib/python3.12/site-packages/accelerate/commands/launch.py", line 1106, in launch_command
    simple_launcher(args)
  File "/home/abdallah/Desktop/webui/sd-scripts/.venv/lib/python3.12/site-packages/accelerate/commands/launch.py", line 704, in simple_launcher
    raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['/home/abdallah/Desktop/webui/sd-scripts/.venv/bin/python', 'flux_train_network.py', '--pretrained_model_name_or_path', '/home/abdallah/Desktop/webui/ComfyUI/models/diffusion_models/fp8-kaji.safetensors', '--clip_l', '/home/abdallah/Desktop/webui/stable-diffusion-webui/models/text_encoder/clip_l.safetensors', '--ae', '/home/abdallah/Desktop/webui/stable-diffusion-webui/models/VAE/ae.safetensors', '--cache_latents_to_disk', '--save_model_as', 'safetensors', '--sdpa', '--blocks_to_swap', '8', '--persistent_data_loader_workers', '--max_data_loader_n_workers', '2', '--seed', '42', '--gradient_checkpointing', '--mixed_precision', 'bf16', '--save_precision', 'bf16', '--dataset_config', 'dataset_1024_bs1.toml', '--output_dir', 'path/to/output/dir', '--output_name', 'output-name', '--learning_rate', '5e-5', '--max_train_epochs', '4', '--cache_text_encoder_outputs_to_disk', '--cache_latents_to_disk', '--save_every_n_epochs', '1', '--optimizer_type', 'adafactor', '--optimizer_args', 'relative_step=False', 'scale_parameter=False', 'warmup_init=False', '--lr_scheduler', 'constant_with_warmup', '--max_grad_norm', '0.0', '--timestep_sampling', 'shift', '--discrete_flow_shift', '3.1582', '--model_prediction_type', 'raw', '--guidance_scale', '1.0', '--fused_backward_pass', '--full_bf16']' returned non-zero exit status 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant