mirror of
https://github.com/huggingface/kernels.git
synced 2025-10-20 12:33:46 +08:00
437 B
437 B
Installation
Install the kernels
package with pip
(requires torch>=2.5
and CUDA):
pip install kernels
Using kernels in a Docker container
Build and run the reference examples/basic.py
in a Docker container with the following commands:
docker build --platform linux/amd64 -t kernels-reference -f docker/Dockerfile.reference .
docker run --gpus all -it --rm -e HF_TOKEN=$HF_TOKEN kernels-reference