Start downloading with token

This commit is contained in:
Nicolas Patry 2024-10-02 18:11:44 +02:00
parent ff5da177e1
commit 3b8cf5f4ef
No known key found for this signature in database
GPG Key ID: E939E8CC91A1C674
2 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ jobs:
# export DOCKER_DEVICES=${{ needs.build-and-push.outputs.docker_devices }} # export DOCKER_DEVICES=${{ needs.build-and-push.outputs.docker_devices }}
export DOCKER_DEVICES=/dev/kfd,/dev/dri export DOCKER_DEVICES=/dev/kfd,/dev/dri
# export EXTRA_PYTEST="${{ needs.build-and-push.outputs.extra_pytest }}" # export EXTRA_PYTEST="${{ needs.build-and-push.outputs.extra_pytest }}"
# export HF_TOKEN=${{ secrets.HF_TOKEN }} export HF_TOKEN=${{ secrets.HF_TOKEN }}
echo $DOCKER_IMAGE echo $DOCKER_IMAGE
# python -c 'import docker; client = docker.from_env(); client.containers.run("registry.internal.huggingface.tech/api-inference/community/text-generation-inference:sha-318bbc7-rocm", devices=["/dev/kfd", "/dev/dri"], env={"MODEL_ID": "gpt2"}, detach=True)' # python -c 'import docker; client = docker.from_env(); client.containers.run("registry.internal.huggingface.tech/api-inference/community/text-generation-inference:sha-318bbc7-rocm", devices=["/dev/kfd", "/dev/dri"], env={"MODEL_ID": "gpt2"}, detach=True)'
which pytest which pytest

View File

@ -533,7 +533,7 @@ def launcher(event_loop):
DOCKER_IMAGE, DOCKER_IMAGE,
command=args, command=args,
# name=container_name, # name=container_name,
# environment=env, environment=env,
# auto_remove=False, # auto_remove=False,
# detach=True, # detach=True,
# device_requests=device_requests, # device_requests=device_requests,