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

jax.devices issue with the finetuning notebook #123

Open
contango00 opened this issue Aug 13, 2024 · 0 comments
Open

jax.devices issue with the finetuning notebook #123

contango00 opened this issue Aug 13, 2024 · 0 comments

Comments

@contango00
Copy link

is the versioning correct in the yml? JAX 4.26?

with the DEVICES = np.array(jax.devices()).reshape([1, 1, 1]) statement in the finetuning notebook I am getting the following error

ValueError: cannot reshape array of size 2 into shape (1,1,1)

The following....

        num_devices = jax.local_device_count()
        print(f'device kind: {jax.local_devices()[0].device_kind}')
        print(f'num_devices: {num_devices}')
        jax.devices()

returns this....

device kind: NVIDIA GeForce RTX 4080 SUPER
num_devices: 2
[cuda(id=0), cuda(id=1)]

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