simonw / llm-mlc

LLM plugin for running models using MLC
Apache License 2.0
174 stars 8 forks source link

Don't crash if dist/prebuilt folder is missing #9

Closed simonw closed 11 months ago

simonw commented 11 months ago

e.g. I ran this:

LLM_USER_PATH='/tmp' llm 'Five names for a happy pet chipmunk'

And got this error:

  File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.10/pathlib.py", line 1017, in iterdir
    for name in self._accessor.listdir(self):
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/mlc/dist/prebuilt'