mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Add API for generated tokens and output text
This commit is contained in:
@ -305,7 +305,7 @@ def infer(
|
||||
soft_embeddings=soft_embeddings,
|
||||
)[0]
|
||||
for o in output:
|
||||
samples.append(tokenizer.decode(o[0][0, 0, params["seq"] : params["seq"] + gen_len]))
|
||||
samples.append(o[0][0, 0, params["seq"] : params["seq"] + gen_len])
|
||||
return samples
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user