refactor: convert jax verification script to pytest and update docs
This commit is contained in:
parent
741aafab07
commit
cb5a6fbd87
3 changed files with 43 additions and 22 deletions
|
|
@ -53,9 +53,9 @@ If you prefer not to use Docker:
|
|||
|
||||
## Hardware Acceleration (JAX)
|
||||
|
||||
Verify your setup by running:
|
||||
Verify your setup by running the JAX initialization test:
|
||||
|
||||
```bash
|
||||
python -c "import jax; print(jax.devices())"
|
||||
uv run pytest tests/test_jax_init.py
|
||||
```
|
||||
In the devcontainer, this will report a `GpuDevice` if a GPU is detected and the `cuda` extra was installed.
|
||||
In the devcontainer, this will succeed on both CPU and GPU. A `GpuDevice` is expected if a GPU is detected and the `cuda` extra was installed.
|
||||
|
|
|
|||
Reference in a new issue