Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vLLM: build with quantized mistral #75

Merged
merged 1 commit into from
Apr 1, 2024
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
4 changes: 3 additions & 1 deletion docker/runpod-serverless-vllm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ It was built following Runpod's example:
https://github.com/runpod-workers/worker-vllm/tree/main?tab=readme-ov-file#example-building-an-image-with-openchat-35

```
docker build -t degroote22/lmscript-runpod-serverless-vllm:0.0.2 --build-arg MODEL_NAME="mistralai/Mistral-7B-Instruct-v0.2" --build-arg WORKER_CUDA_VERSION=12.1.0 .
docker build -t degroote22/lmscript-runpod-serverless-vllm:0.0.3 --build-arg MODEL_NAME="TheBloke/Mistral-7B-Instruct-v0.2-AWQ" --build-arg WORKER_CUDA_VERSION=12.1.0 .
docker push degroote22/lmscript-runpod-serverless-vllm:0.0.3
```
1 change: 1 addition & 0 deletions docker/vllm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
17 changes: 17 additions & 0 deletions docker/vllm/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
services:
sv:
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
image: vllm/vllm-openai:v0.4.0
command: "--model TheBloke/Mistral-7B-Instruct-v0.2-AWQ --gpu-memory-utilization 0.8 --max-model-len 4096 --quantization awq"
ports:
- 8000:8000
network_mode: host
ipc: "host"
volumes:
- ~/.cache/huggingface:/root/.cache/huggingface
2 changes: 2 additions & 0 deletions examples/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ Running all examples tests all features of the client.
- Executing the SGLang tests, local server

`npx tsx src/sg-runtime.ts`

`npx tsx src/vllm-runtime.ts`
2 changes: 1 addition & 1 deletion examples/client/src/vllm-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const bench = async () => {
let completionTokens = 0;
const backend = new VllmBackend({
url: `http://localhost:8000`,
model: "TheBloke/Mistral-7B-Instruct-v0.2-GPTQ",
model: "TheBloke/Mistral-7B-Instruct-v0.2-AWQ",
reportUsage: ({ promptTokens: pt, completionTokens: ct }) => {
promptTokens += pt;
completionTokens += ct;
Expand Down
Loading