You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running a sample script for testing purposes in a Debian 11 ARM64 machine for latest jaxlib version 0.4.37 returns a segmentation fault. There is no difference if I run the jax.random.key() method instead of jax.random.PRNGKey() as mentioned in the docs.
root@ec47560c0686:/app/goss# cat /etc/os-release | head -n 4
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
root@ec47560c0686:/app/goss# python -c 'import jax.numpy as jnp; from jax import grad, jit, vmap; from jax import random; key = random.PRNGKey(0); x = random.normal(key, (10,)); print(x)'
Segmentation fault
I have verified that I can generate pseudo random numbers from /dev/urandom without issues, and also that the command above works in Debian 11 AMD64
root@ec47560c0686:/app# od -An -N8 -d /dev/urandom | sed -e 's| ||g' -e 's|\(.\{11\}\).*|\1|'
40475556011
root@ec47560c0686:/app# od -An -N8 -d /dev/urandom | sed -e 's| ||g' -e 's|\(.\{11\}\).*|\1|'
64618156373
The jaxlib wheel has been build from source with the command mentioned in the docs
python build/build.py build --wheels=jaxlib
System info (python version, jaxlib version, accelerator, etc.)
Can you perform any JAX op (such as x = jnp.ones((10,)); print(x+1), or is it specific to jax.random?
JAX doesn't use the system's RNG but instead has it's own software implementation. So this is more likely an issue with the JAX installation itself rather than the random module in particular.
Description
Running a sample script for testing purposes in a Debian 11 ARM64 machine for latest jaxlib version
0.4.37
returns a segmentation fault. There is no difference if I run thejax.random.key()
method instead ofjax.random.PRNGKey()
as mentioned in the docs.I have verified that I can generate pseudo random numbers from
/dev/urandom
without issues, and also that the command above works in Debian 11 AMD64The jaxlib wheel has been build from source with the command mentioned in the docs
System info (python version, jaxlib version, accelerator, etc.)
The text was updated successfully, but these errors were encountered: