mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
fix: don't print token ids of output
This commit is contained in:
parent
cb43f53f7a
commit
147260097b
@ -11,7 +11,6 @@ def generate(tokenizer, prompt, model, config):
|
||||
|
||||
outputs = model.generate(input_ids=input_ids, max_new_tokens=config["max_new_tokens"], temperature=config["temperature"])
|
||||
|
||||
print(outputs)
|
||||
decoded = tokenizer.decode(outputs[0], skip_special_tokens=True).strip()
|
||||
|
||||
return decoded[len(prompt):]
|
||||
|
Loading…
Reference in New Issue
Block a user