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

Add lora arguments to README for setting up vllm server #194

Merged
merged 2 commits into from
Jul 1, 2024
Merged
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
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ We also provide our custom modification of the vllm api server, which only retur
```bash
# to set up a vllm server
python -m vllm.entrypoints.api_server \
--model defog/sqlcoder-7b-2 \
--model defog/defog-llama-3-sqlcoder-8b \
--tensor-parallel-size 4 \
--dtype float16

# to set up a vllm server that supports LoRA adapters
python -m vllm.entrypoints.api_server \
--model defog/sqlcoder-7b-2 \
--model defog/llama-3-sqlcoder-8b \
--tensor-parallel-size 1 \
--dtype float16 \
--max-model-len 4096 \
Expand All @@ -232,9 +232,12 @@ python -m vllm.entrypoints.api_server \

# to use our modified api server
python utils/api_server.py \
--model defog/sqlcoder-7b-2 \
--model defog/llama-3-sqlcoder-8b \
--tensor-parallel-size 4 \
--dtype float16
--dtype float16 \
--max-model-len 4096 \
--enable-lora \
--max-lora-rank 64

# to run sql-eval using the api runner - depending on how much your GPUs can take, can increase p and b to higher values
python main.py \
Expand All @@ -256,7 +259,7 @@ You may consult the [TGI documentation](https://huggingface.co/docs/text-generat

```bash
# to set up a tgi server
model="defog/sqlcoder-7b-2"
model="defog/llama-3-sqlcoder-8b"
docker run --gpus all \
--shm-size 1g \
-p 8000:80 \
Expand Down Expand Up @@ -338,10 +341,10 @@ Note that MLX does not currently have beam search, and hence will have lower qua
python -W ignore main.py \
-db postgres \
-q "data/questions_gen_postgres.csv" \
-o "results/mlx_sqlcoder-7b-2.csv" \
-o "results/mlx_llama-3-sqlcoder-8b.csv" \
-g mlx \
-f "prompts/prompt.md" \
-m mlx-community/defog-sqlcoder-7b-2
-m mlx-community/defog-llama-3-sqlcoder-8b
```

### Gemini
Expand Down
Loading