Skip to content

Can't train LoRA with single gpu #28

Description

@k8tems
root@neej0vsc8w:/tmp/StableCascade# python3 train/train_c_lora.py configs/training/finetune_c_lora_mbl.yaml
Launching Script
['experiment_id', 'checkpoint_path', 'output_path', 'image_size', 'webdataset_path', 'grad_accum_steps', 'batch_size', 'updates', 'backup_every', 'save_every', 'lr', 'warmup_updates', 'model_version', 'effnet_checkpoint_path', 'previewer_checkpoint_path', 'module_filters', 'rank', 'train_tokens']
Traceback (most recent call last):
  File "/tmp/StableCascade/train/train_c_lora.py", line 330, in <module>
    warpcore()
  File "/tmp/StableCascade/core/__init__.py", line 292, in __call__
    self.setup_ddp(self.config.experiment_id, single_gpu=single_gpu)  # this will change the device to the CUDA rank
  File "/tmp/StableCascade/core/__init__.py", line 146, in setup_ddp
    process_id = int(os.environ.get("SLURM_PROCID"))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions