chansung commited on
Commit
858027e
1 Parent(s): bcaeac3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,10 +1,10 @@
1
  ARG MODEL_NAME
2
- ARG GPTQ
3
 
4
  FROM ghcr.io/huggingface/text-generation-inference:latest
5
 
6
  ARG MODEL_NAME
7
- ARG GPTQ
8
 
9
  ENV TZ=Europe/Paris \
10
  PORT=3000
@@ -23,7 +23,7 @@ RUN chmod -R 777 /defaults
23
  # && MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS && \
24
  # && MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:="$(cat /defaults/MODEL_PROMPT_TEMPLATE)"}" && export MODEL_PROMPT_TEMPLATE && \
25
  RUN MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
26
- && GPTQ="${GPTQ:="$(cat /defaults/GPTQ)"}" && export GPTQ && \
27
  envsubst < "entrypoint.sh.template" > "entrypoint.sh" \
28
  && rm entrypoint.sh.template
29
 
 
1
  ARG MODEL_NAME
2
+ ARG QUANTIZE
3
 
4
  FROM ghcr.io/huggingface/text-generation-inference:latest
5
 
6
  ARG MODEL_NAME
7
+ ARG QUANTIZE
8
 
9
  ENV TZ=Europe/Paris \
10
  PORT=3000
 
23
  # && MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS && \
24
  # && MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:="$(cat /defaults/MODEL_PROMPT_TEMPLATE)"}" && export MODEL_PROMPT_TEMPLATE && \
25
  RUN MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
26
+ && QUANTIZE="${QUANTIZE:="$(cat /defaults/GPTQ)"}" && export QUANTIZE && \
27
  envsubst < "entrypoint.sh.template" > "entrypoint.sh" \
28
  && rm entrypoint.sh.template
29