Spaces:
Build error
Build error
Commit
·
d932a94
1
Parent(s):
006ed34
Update entrypoint.sh.template
Browse files- entrypoint.sh.template +4 -2
entrypoint.sh.template
CHANGED
@@ -4,8 +4,10 @@
|
|
4 |
mongod &
|
5 |
|
6 |
# Start the text-generation-inference process
|
7 |
-
pip3 install -U transformers
|
8 |
-
|
|
|
|
|
9 |
|
10 |
# Wait for text-generation-inference to start
|
11 |
curl --retry 60 --retry-delay 10 --retry-connrefused http://127.0.0.1:8080/health
|
|
|
4 |
mongod &
|
5 |
|
6 |
# Start the text-generation-inference process
|
7 |
+
pip3 install -U transformers && pip install -U transformers
|
8 |
+
mkdir /data/model_gptq
|
9 |
+
text-generation-server quantize ${MODEL_NAME} /data/model_gptq
|
10 |
+
text-generation-launcher --model-id /data/model_gptq --quantize gptq --num-shard 1 --port 8080 &
|
11 |
|
12 |
# Wait for text-generation-inference to start
|
13 |
curl --retry 60 --retry-delay 10 --retry-connrefused http://127.0.0.1:8080/health
|