欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 新闻 > 会展 > vscode accelerate deepspeed配置

vscode accelerate deepspeed配置

2025/1/20 3:03:44 来源:https://blog.csdn.net/qq_33596242/article/details/145202273  浏览:    关键词:vscode accelerate deepspeed配置

accelerate训练

{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "Python: Current File","type": "python","request": "launch",// "program": "${file}","module": "accelerate.commands.launch","console": "integratedTerminal","env": {"CUDA_VISIBLE_DEVICES": "4,5,6,7"  // 与},"args": [train sdxl lora"--num_processes=4","examples/text_to_image/train_text_to_image_lora_sdxl.py","--dataset_name","lambdalabs/naruto-blip-captions","--output_dir","exp","--resolution","1024", "--random_flip","--train_batch_size","1","--num_train_epochs","2", "--checkpointing_steps","500","--learning_rate","1e-04", "--lr_scheduler","constant", "--lr_warmup_steps","0","--mixed_precision","fp16","--seed","42","--output_dir","sd-naruto-model-lora-sdxl","--validation_prompt","cute dragon creature",]   }]
}

accelerate+deepspeed训练

{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "Python: Current File","type": "python","request": "launch",// "program": "${file}","module": "accelerate.commands.launch","console": "integratedTerminal","env": {"CUDA_VISIBLE_DEVICES": "4,5,6,7"},"args": [train sdxl lora"--config_file","my/deepspeed_config/default_config.yaml",  //跟上面只有这个区别"--num_processes=4","examples/text_to_image/train_text_to_image_lora_sdxl.py","--dataset_name","lambdalabs/naruto-blip-captions","--output_dir","exp","--resolution","1024", "--random_flip","--train_batch_size","1","--num_train_epochs","2", "--checkpointing_steps","500","--learning_rate","1e-04", "--lr_scheduler","constant", "--lr_warmup_steps","0","--mixed_precision","fp16","--seed","42","--output_dir","sd-naruto-model-lora-sdxl","--validation_prompt","cute dragon creature",]   }]
}

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com