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

Need some help. " You need to decrease --max-batch-prefill-tokens." #390

Open
4 tasks
KrisWongz opened this issue Apr 5, 2024 · 1 comment
Open
4 tasks
Assignees

Comments

@KrisWongz
Copy link

KrisWongz commented Apr 5, 2024

System Info

latest

Information

  • Docker
  • The CLI directly

Tasks

  • An officially supported command
  • My own modifications

Reproduction

4 A100(40G) can not run sucess. This should be a memory issue. What parameters should I adjust to run 72b model successfully?
In 2 A100, I set --max-batch-prefill-tokens and all four para to 1, still cannot make it.

docker run --gpus '"device=0,1,2,3"'
--shm-size 1g
-p 8081:80
-v /home/unionlab001/Model/qwen-72b:/data ghcr.io/predibase/lorax:latest
--model-id /data/Qwen1_5-72B-Chat
--trust-remote-code
--quantize bitsandbytes-nf4
--max-batch-prefill-tokens 300
--max-input-length 200
--max-total-tokens 1024
--num-shard 4 \

RuntimeError: Not enough memory to handle 300 prefill tokens. You need to decrease --max-batch-prefill-tokens
2024-04-04T14:14:39.297825Z ERROR warmup{max_input_length=200 max_prefill_tokens=300 max_total_tokens=1024}:warmup: lorax_client: router/client/src/lib.rs:34: Server error: Not enough memory to handle 300 prefill tokens. You need to decrease --max-batch-prefill-tokens

Expected behavior

none

@KrisWongz KrisWongz changed the title Need some help. Need some help. " You need to decrease --max-batch-prefill-tokens." Apr 5, 2024
@magdyksaleh magdyksaleh self-assigned this Apr 11, 2024
@magdyksaleh
Copy link
Collaborator

Will attempt to repro with these params and fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants