@@ -761,8 +761,8 @@ var _ = Describe("Simulator", func() {
761761 simulator .config .InterTokenLatency = interTokenLatency
762762 simulator .config .InterTokenLatencyStdDev = stddev
763763 interToken := simulator .getInterTokenLatency ()
764- Expect (interToken ).To (BeNumerically (">=" , float32 (interTokenLatency )* 0.3 ))
765- Expect (interToken ).To (BeNumerically ("<=" , float32 (interTokenLatency )* 1.7 ))
764+ Expect (interToken ).To (BeNumerically (">=" , int ( float32 (interTokenLatency )* 0.3 ) ))
765+ Expect (interToken ).To (BeNumerically ("<=" , int ( float32 (interTokenLatency )* 1.7 ) ))
766766 },
767767 func (interTokenLatency int , stddev int ) string {
768768 return fmt .Sprintf ("interTokenLatency: %d stddev: %d" , interTokenLatency , stddev )
@@ -778,8 +778,8 @@ var _ = Describe("Simulator", func() {
778778 simulator .config .InterTokenLatency = interTokenLatency
779779 simulator .config .InterTokenLatencyStdDev = stddev
780780 latency := simulator .getTotalInterTokenLatency (numberOfTokens )
781- Expect (latency ).To (BeNumerically (">=" , float32 (interTokenLatency )* 0.3 * float32 (numberOfTokens )))
782- Expect (latency ).To (BeNumerically ("<=" , float32 (interTokenLatency )* 1.7 * float32 (numberOfTokens )))
781+ Expect (latency ).To (BeNumerically (">=" , int ( float32 (interTokenLatency )* 0.3 * float32 (numberOfTokens ) )))
782+ Expect (latency ).To (BeNumerically ("<=" , int ( float32 (interTokenLatency )* 1.7 * float32 (numberOfTokens ) )))
783783 },
784784 func (interTokenLatency int , stddev int , numberOfTokens int ) string {
785785 return fmt .Sprintf ("interTokenLatency: %d stddev: %d, numberOfTokens: %d" , interTokenLatency ,
@@ -800,11 +800,11 @@ var _ = Describe("Simulator", func() {
800800 simulator .config .KVCacheTransferLatencyStdDev = kvCacheLatencyStdDev
801801 timeToFirst := simulator .getTimeToFirstToken (doREmotePrefill )
802802 if doREmotePrefill {
803- Expect (timeToFirst ).To (BeNumerically (">=" , float32 (kvCacheLatency )* 0.3 ))
804- Expect (timeToFirst ).To (BeNumerically ("<=" , float32 (kvCacheLatency )* 1.7 ))
803+ Expect (timeToFirst ).To (BeNumerically (">=" , int ( float32 (kvCacheLatency )* 0.3 ) ))
804+ Expect (timeToFirst ).To (BeNumerically ("<=" , int ( float32 (kvCacheLatency )* 1.7 ) ))
805805 } else {
806- Expect (timeToFirst ).To (BeNumerically (">=" , float32 (timeToFirstToken )* 0.3 ))
807- Expect (timeToFirst ).To (BeNumerically ("<=" , float32 (timeToFirstToken )* 1.7 ))
806+ Expect (timeToFirst ).To (BeNumerically (">=" , int ( float32 (timeToFirstToken )* 0.3 ) ))
807+ Expect (timeToFirst ).To (BeNumerically ("<=" , int ( float32 (timeToFirstToken )* 1.7 ) ))
808808 }
809809 },
810810 func (timeToFirstToken int , timeToFirstTokenStdDev int ,
0 commit comments