Spaces:
Sleeping
Sleeping
Update entrypoint.sh
Browse files- entrypoint.sh +3 -3
entrypoint.sh
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
# Start the text-generation-inference process
|
4 |
-
if [[ $
|
5 |
-
text-generation-launcher --model-id $
|
6 |
else
|
7 |
-
text-generation-launcher --model-id $
|
8 |
fi
|
9 |
|
10 |
# Wait for text-generation-inference to start
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
# Start the text-generation-inference process
|
4 |
+
if [[ -n "$QUANTIZE" && "$QUANTIZE" != "false" ]]; then
|
5 |
+
text-generation-launcher --model-id $MODEL_NAME --num-shard 1 --port 8080 --trust-remote-code --quantize $QUANTIZE &
|
6 |
else
|
7 |
+
text-generation-launcher --model-id $MODEL_NAME --num-shard 1 --port 8080 --trust-remote-code &
|
8 |
fi
|
9 |
|
10 |
# Wait for text-generation-inference to start
|