Skip to content

Don't fail with "AssertionError: Not enough CUDA devices to support n_devices 2" when there aren't 2 GPUs#4

Open
JasonGross wants to merge 1 commit intoJoshEngels:mainfrom
JasonGross:patch-1
Open

Don't fail with "AssertionError: Not enough CUDA devices to support n_devices 2" when there aren't 2 GPUs#4
JasonGross wants to merge 1 commit intoJoshEngels:mainfrom
JasonGross:patch-1

Conversation

@JasonGross
Copy link
Contributor

  File "/home/jason/MultiDimensionalFeatures/multid/lib/python3.10/site-packages/transformer_lens/HookedTransformerConfig.py", line 315, in __post_init__
    torch.cuda.device_count() >= self.n_devices
AssertionError: Not enough CUDA devices to support n_devices 2

…_devices 2" when there aren't 2 GPUs

```
  File "/home/jason/MultiDimensionalFeatures/multid/lib/python3.10/site-packages/transformer_lens/HookedTransformerConfig.py", line 315, in __post_init__
    torch.cuda.device_count() >= self.n_devices
AssertionError: Not enough CUDA devices to support n_devices 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

Successfully merging this pull request may close these issues.

1 participant