Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions docker/compose/docker-compose.llama-70b-gpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
services:
llama_70b_gpu:
image: nillion/nilai-vllm:latest
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
ipc: host
ulimits:
memlock: -1
stack: 67108864
env_file:
- .env
restart: unless-stopped
depends_on:
etcd:
condition: service_healthy
command: >
--model hugging-quants/Meta-Llama-3.1-70B-Instruct-AWQ-INT4
--gpu-memory-utilization 0.95
--max-model-len 60000
--tensor-parallel-size 1
--enable-auto-tool-choice
--tool-call-parser llama3_json
--uvicorn-log-level warning
environment:
- SVC_HOST=llama_70b_gpu
- SVC_PORT=8000
- ETCD_HOST=etcd
- ETCD_PORT=2379
- TOOL_SUPPORT=true
volumes:
- hugging_face_models:/root/.cache/huggingface # cache models
networks:
- backend_net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
retries: 3
start_period: 60s
timeout: 10s
volumes:
hugging_face_models:

networks:
backend_net:
1 change: 1 addition & 0 deletions nilai-api/src/nilai_api/config/mainnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"meta-llama/Llama-3.1-8B-Instruct": 30,
"cognitivecomputations/Dolphin3.0-Llama3.1-8B": 30,
"deepseek-ai/DeepSeek-R1-Distill-Qwen-14B": 5,
"hugging-quants/Meta-Llama-3.1-70B-Instruct-AWQ-INT4": 5,
}

# It defines the number of requests allowed for each user for a given time frame.
Expand Down
1 change: 1 addition & 0 deletions nilai-api/src/nilai_api/config/testnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"meta-llama/Llama-3.1-8B-Instruct": 5,
"cognitivecomputations/Dolphin3.0-Llama3.1-8B": 5,
"deepseek-ai/DeepSeek-R1-Distill-Qwen-14B": 5,
"hugging-quants/Meta-Llama-3.1-70B-Instruct-AWQ-INT4": 5,
}

# It defines the number of requests allowed for each user for a given time frame.
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def test_large_payload_handling(client):
"max_tokens": 50,
}

response = client.post("/chat/completions", json=payload)
response = client.post("/chat/completions", json=payload, timeout=30)
print(response)

# Check for appropriate handling of large payload
Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/test_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ def test_function_calling(client, model):
assert follow_up_content, "No content in follow-up response"
print(f"\nFollow-up response: {follow_up_content}")
assert (
"22°C" in follow_up_content or "sunny" in follow_up_content.lower()
"22°C" in follow_up_content
or "sunny" in follow_up_content.lower()
or "weather" in follow_up_content.lower()
), "Follow-up should mention the weather details"

else:
Expand Down
Loading