Skip to content

Commit

Permalink
Merge pull request #357 from one-some/tpu-api-fix
Browse files Browse the repository at this point in the history
Fix TPU API errors
  • Loading branch information
henk717 authored May 8, 2023
2 parents 0f91298 + a9e342c commit a649bd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3708,6 +3708,7 @@ def apiactionsubmit_tpumtjgenerate(txt, minimum, maximum):
soft_tokens=soft_tokens,
sampler_order=koboldai_vars.sampler_order,
)
genout = np.array(genout)
genout = [utils.applyoutputformatting(utils.decodenewlines(tokenizer.decode(txt))) for txt in genout]

return genout
Expand Down

0 comments on commit a649bd8

Please sign in to comment.