File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -77,10 +77,10 @@ def test_different_draft_min_draft_max():
7777
7878def test_slot_ctx_not_exceeded ():
7979 global server
80- server .n_ctx = 64
80+ server .n_ctx = 256
8181 server .start ()
8282 res = server .make_request ("POST" , "/completion" , data = {
83- "prompt" : "Hello " * 56 ,
83+ "prompt" : "Hello " * 248 ,
8484 "temperature" : 0.0 ,
8585 "top_k" : 1 ,
8686 "speculative.p_min" : 0.0 ,
@@ -91,19 +91,19 @@ def test_slot_ctx_not_exceeded():
9191
9292def test_with_ctx_shift ():
9393 global server
94- server .n_ctx = 64
94+ server .n_ctx = 256
9595 server .enable_ctx_shift = True
9696 server .start ()
9797 res = server .make_request ("POST" , "/completion" , data = {
98- "prompt" : "Hello " * 56 ,
98+ "prompt" : "Hello " * 248 ,
9999 "temperature" : 0.0 ,
100100 "top_k" : 1 ,
101- "n_predict" : 64 ,
101+ "n_predict" : 256 ,
102102 "speculative.p_min" : 0.0 ,
103103 })
104104 assert res .status_code == 200
105105 assert len (res .body ["content" ]) > 0
106- assert res .body ["tokens_predicted" ] == 64
106+ assert res .body ["tokens_predicted" ] == 256
107107 assert res .body ["truncated" ] == True
108108
109109
You can’t perform that action at this time.
0 commit comments