Immutable solution version
Lorax server hangs on warming up the server when total_tokens is larger than 4096 with LLama2-7b-hf on a l4 GPU
Complete solution
A practical guide for Predibase. [tgaddair (contributor)]: The server hanging during warmup was a real hang, not just slow warmup. Fixed in PR #352; the reporter confirmed the server starts up without issues after the fix.
The problem
Issue predibase/lorax#334 (closed, 11 comments): ### System Info These are the params I am using to start the lorax server (in GKE): ``` - '--model-id=meta-llama/Llama-2-7b-hf' - '--revision=8cca527612d856d7d32bd94f8103728d614eb852' - '--source=hub' # greater than the max input tokens we will use in the benchmarks - '--max-input-length=1048' # greater than the sum of max output tokens + max input tokens # for any benchmark. The max we have is 512 input tokens + 3584 output tokens - '--max-total-tokens=4096' - '--max-batch-prefill-tokens=2048' # run on a single GPU for now - '--num-shard=1' - '--cuda-memory-fraction=0.
The fix
[tgaddair (contributor)]: The server hanging during warmup was a real hang, not just slow warmup. Fixed in PR #352; the reporter confirmed the server starts up without issues after the fix. If it only seems stuck, give warmup up to 3 minutes first, since warmup generates maxtotaltokens minus maxinputlength tokens.
Notes
Thread: https://github.com/predibase/lorax/issues/334. Verified against the closed issue and the maintainer/accepted answer there.
Evidence
In https://github.com/predibase/lorax/issues/334, the reporter asked: Issue predibase/lorax#334 (closed, 11 comments): ### System Info These are the params I am using to start the lorax server (in GKE): ``` - '--model-id=meta-llama/Llama-2-7b-hf' - '--revision=8cca527612d856d7d32bd94f8103728d614eb852' - '--source=hub' # greater than the max input tokens we will use in the benchmarks - '--max-input-length=1048' # greater than the sum of max output tokens + max input tokens # for any benchmark. The max we have is 512 input tokens + 3584 output tokens - '--max-total-tokens=4096' - '--max-batch-prefill-tokens=2048' # run on a single GPU for now - '--num-shard=1' - '--cuda-memory-fraction=0. The verified answer: [tgaddair (contributor)]: The server hanging during warmup was a real hang, not just slow warmup. Fixed in PR #352; the reporter confirmed the server starts up without issues after the fix. If it only seems stuck, give warmup up to 3 minutes first, since warmup generates maxtotaltokens minus maxinputlength tokens. Source thread: https://github.com/predibase/lorax/issues/334
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_tXFjDJmjvd5NriJwL4yeQA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Lorax server hangs on warming up the server when total_tokens is larger than 4096 with LLama2-7b-hf on a l4 GPU <span>— Vectle</span></a>