simonw / llm

Access large language models from the command-line
https://llm.datasette.io
Apache License 2.0
4.81k stars 266 forks source link

llm chat -m mistral-7b-instruct-v0 led to OSError: [Errno 9] Bad file descriptor #635

Open raybellwaves opened 5 days ago

raybellwaves commented 5 days ago
llm chat -m mistral-7b-instruct-v0

Chatting with mistral-7b-instruct-v0
Type 'exit' or 'quit' to exit
Type '!multi' to enter multiple lines, then '!end' to finish
> what should I do tomorrow?
 That's a question that only you can answer. What are your goals, interests, and responsibilities for tomorrow?Exception ignored in: <_io.TextIOWrapper name=5 mode='w' encoding='UTF-8'>
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/llm/0.17.1/libexec/lib/python3.13/site-packages/llm_gpt4all.py", line 294, in __exit__
    sys.stderr = self.original_stderr
OSError: [Errno 9] Bad file descriptor