mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
Raw tgi
This commit is contained in:
parent
29eb7601a9
commit
0936c79995
@ -527,21 +527,21 @@ def launcher(event_loop):
|
|||||||
# devices: {devices}
|
# devices: {devices}
|
||||||
# """
|
# """
|
||||||
# )
|
# )
|
||||||
env.pop("LOG_LEVEL")
|
# env.pop("LOG_LEVEL")
|
||||||
env.pop("ROCR_VISIBLE_DEVICES")
|
# env.pop("ROCR_VISIBLE_DEVICES")
|
||||||
container = client.containers.run(
|
container = client.containers.run(
|
||||||
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,
|
||||||
devices=devices,
|
# devices=devices,
|
||||||
volumes=volumes,
|
# volumes=volumes,
|
||||||
ports={"80/tcp": port},
|
# ports={"80/tcp": port},
|
||||||
healthcheck={"timeout": int(10 * 1e9)},
|
# healthcheck={"timeout": int(10 * 1e9)},
|
||||||
shm_size="1G",
|
# shm_size="1G",
|
||||||
)
|
)
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
Loading…
Reference in New Issue
Block a user