Spaces:
Sleeping
Sleeping
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -3,9 +3,11 @@
|
|
| 3 |
export HF_HOME=/app/.cache
|
| 4 |
mkdir -p /app/.cache
|
| 5 |
|
| 6 |
-
#
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
| 9 |
--enable-auto-tool-choice \
|
| 10 |
--tool-call-parser llama3_json \
|
| 11 |
--chat-template examples/tool_chat_template_llama3.1_json.jinja \
|
|
@@ -14,8 +16,8 @@ vllm serve \
|
|
| 14 |
--dtype half \
|
| 15 |
--max-model-len 8192 &
|
| 16 |
|
| 17 |
-
#
|
| 18 |
sleep 10
|
| 19 |
|
| 20 |
-
# Start the Gradio
|
| 21 |
-
python3 app.py
|
|
|
|
| 3 |
export HF_HOME=/app/.cache
|
| 4 |
mkdir -p /app/.cache
|
| 5 |
|
| 6 |
+
# Optionally set a USER_AGENT to identify your requests
|
| 7 |
+
export USER_AGENT="vllm_huggingface_space"
|
| 8 |
+
|
| 9 |
+
# Launch the vLLM server with the model tag as a positional argument
|
| 10 |
+
vllm serve unsloth/llama-3-8b-Instruct-bnb-4bit \
|
| 11 |
--enable-auto-tool-choice \
|
| 12 |
--tool-call-parser llama3_json \
|
| 13 |
--chat-template examples/tool_chat_template_llama3.1_json.jinja \
|
|
|
|
| 16 |
--dtype half \
|
| 17 |
--max-model-len 8192 &
|
| 18 |
|
| 19 |
+
# Wait to ensure the vLLM server is fully started (adjust if needed)
|
| 20 |
sleep 10
|
| 21 |
|
| 22 |
+
# Start the Gradio application using python3
|
| 23 |
+
python3 app.py
|