update tgi.sh
Browse files
tgi.sh
CHANGED
|
@@ -1,9 +1,18 @@
|
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
|
|
|
|
| 8 |
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
+
BASEDIR=$(dirname "$0")
|
| 4 |
+
cd $BASEDIR
|
| 5 |
+
echo Current Directory:
|
| 6 |
+
pwd
|
| 7 |
|
| 8 |
+
uname -a
|
| 9 |
|
| 10 |
+
# for $NGROK_AUTHTOKEN and $NGROK_EDGE
|
| 11 |
+
souce env/ngrok.conf
|
| 12 |
|
| 13 |
+
export MODEL_ID="meta-llama/Llama-2-7b-chat-hf"
|
| 14 |
+
export QUANTIZE=--quantize bitsandbytes-fp4
|
| 15 |
+
|
| 16 |
+
echo Running $MODEL_ID with TGI
|
| 17 |
+
|
| 18 |
+
text-generation-launcher --model-id $MODEL_ID --port $PORT --max-input-length 2048 --max-total-tokens 4096 --ngrok --ngrok-authtoken $NGROK_AUTHTOKEN --ngrok-edge NGROK_EDGE $QUANTIZE
|