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

TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType' #17

Open
loboere opened this issue Feb 14, 2024 · 3 comments

Comments

@loboere
Copy link

loboere commented Feb 14, 2024

I'm trying to train a lora but it gives me an error

!python train_c_lora.py configs/training/finetune_c_3b_lora.yaml

Launching Script
Traceback (most recent call last):
  File "/kaggle/working/StableCascade/train_c_lora.py", line 326, in <module>
    device=torch.device(int(os.environ.get("SLURM_LOCALID")))
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
@k8tems
Copy link

k8tems commented Feb 14, 2024

export SLURM_LOCALID=gpu id
before running the script
in my case:
export SLURM_LOCALID=0

@JJfan0508
Copy link

I'm trying to train a lora but it gives me an error

!python train_c_lora.py configs/training/finetune_c_3b_lora.yaml

Launching Script
Traceback (most recent call last):
  File "/kaggle/working/StableCascade/train_c_lora.py", line 326, in <module>
    device=torch.device(int(os.environ.get("SLURM_LOCALID")))
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

did you solve this question?

@rlucatoor
Copy link

See this comment and this PR

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

4 participants