Skip to content

Commit abdb2fa

Browse files
committed
Validate PrefillTimeStdDev
Signed-off-by: Qifan Deng <[email protected]>
1 parent 210fa8a commit abdb2fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/common/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ func (c *Configuration) validate() error {
338338
if c.PrefillTimeStdDev < 0 {
339339
return errors.New("prefill time standard deviation cannot be negative")
340340
}
341+
if float32(c.PrefillTimeStdDev) > 0.3*float32(c.PrefillTimePerToken) {
342+
return errors.New("prefill time standard deviation cannot be more than 30% of prefill time per token")
343+
}
341344

342345
if c.KVCacheTransferTimePerToken < 0 {
343346
return errors.New("kv-cache tranfer time per token cannot be negative")

0 commit comments

Comments
 (0)