update rwkv_generate
This commit is contained in:
parent
537f11cbf1
commit
06622b79aa
@ -14,7 +14,6 @@ from utils.ngrok import *
|
||||
from routes import completion, config
|
||||
import global_var
|
||||
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
app.add_middleware(
|
||||
|
@ -78,5 +78,3 @@ def rwkv_generate(model: RWKV, prompt: str, stop: str = None):
|
||||
break
|
||||
yield response, delta
|
||||
out_last = begin + i + 1
|
||||
if i >= model.max_tokens_per_generation - 100:
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user