Skip to content
Open
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 models/zhipuai/glm-4-9b-chat/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ spec:
config:
maxTokens: 128000
deployments:
- customRuntimeArgs: []
- customRuntimeArgs:
- --max-num-batched-tokens=32768 # Reduce maxTokens from 128k to 32k to fit 50GB GPU and avoid OOM
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一般不要设置到最大长度,单机的情况下可以不修改。

- --max-model-len=32768 # Align max-model-len with max-num-batched-tokens for stable inference
resourceRequirements:
cpu: 4
gpuCount: 1
Expand Down