mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
Start downloading with token
This commit is contained in:
parent
ff5da177e1
commit
3b8cf5f4ef
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -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
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user