vllm-project / vllm-project/aibrix
[Bug] 在 only_rise=true 时,sine_fluctuation 抛出 TypeError(prev_value=None)
- Dominant language
- Go
- Stars
- 5.1k
- Forks
- 694
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 98
Description
### 🐛 Describe the bug
当在 配置例如benchmarks/scenarios/autoscaling/workload-configs/predefined/prompt-len-configs/HighFast.json JSON 中将 "only_rise": true 时,运行 benchmark.py 会触发以下错误:
TypeError: '>' not supported between instances of 'int' and 'NoneType'
### Steps to Reproduce
1. 克隆最新的 `aibrix` 仓库(版本 v0.3.0);
2. 修改 `benchmarks/config.yaml`第43行为:
```yaml
workload_type: "synthetic"
```
3. 修改 `benchmarks/scenarios/autoscaling/workload-configs/predefined/prompt-len-configs/HighSlow.json`
```json
{
"only_rise": true,
...
}
```
4. 运行命令:
```bash
python3 benchmark.py --stage workload --config config.yaml
```
5. 查看日志,重现以下错误:
```
TypeError: '>' not supported between instances of 'int' and 'NoneType'
```
---
### Expected behavior
当 only_rise=true 时,sine_fluctuation 应自动初始化 prev_value,并支持单调上升,不应抛出异常。
### Environment
AIBrix 版本:v0.3.0
Contributor guide
Assessment
This issue has not been assessed yet.