Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
ab2ad91d
Unverified
Commit
ab2ad91d
authored
Jan 23, 2023
by
OlivierDehaene
Committed by
GitHub
Jan 23, 2023
Browse files
fix(docker): fix api-inference deployment (#30)
parent
f9d0ec37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Dockerfile
Dockerfile
+2
-1
aml/deployment.yaml
aml/deployment.yaml
+3
-3
No files found.
Dockerfile
View file @
ab2ad91d
...
...
@@ -31,6 +31,7 @@ ENV LANG=C.UTF-8 \
QUANTIZE=false \
NUM_GPUS=1 \
SAFETENSORS_FAST_GPU=1 \
PORT=80 \
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
NCCL_ASYNC_ERROR_HANDLING=1 \
CUDA_HOME=/usr/local/cuda \
...
...
@@ -70,4 +71,4 @@ COPY --from=router-builder /usr/local/cargo/bin/text-generation-router /usr/loca
# Install launcher
COPY
--from=launcher-builder /usr/local/cargo/bin/text-generation-launcher /usr/local/bin/text-generation-launcher
CMD
HUGGINGFACE_HUB_CACHE=$MODEL_BASE_PATH text-generation-launcher --num-shard $NUM_GPUS --json-output
\ No newline at end of file
CMD
HUGGINGFACE_HUB_CACHE=$MODEL_BASE_PATH text-generation-launcher --num-shard $NUM_GPUS --model-name $MODEL_ID --json-output
\ No newline at end of file
aml/deployment.yaml
View file @
ab2ad91d
...
...
@@ -11,13 +11,13 @@ environment:
image
:
db4c2190dd824d1f950f5d1555fbadf0.azurecr.io/text-generation-inference:0.3.1
inference_config
:
liveness_route
:
port
:
300
0
port
:
8
0
path
:
/health
readiness_route
:
port
:
300
0
port
:
8
0
path
:
/health
scoring_route
:
port
:
300
0
port
:
8
0
path
:
/generate
instance_type
:
Standard_ND96amsr_A100_v4
request_settings
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment