simonw / simonw/llm

Empty error: Is there a debug of verbose option?

Open
#189 14 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
12.5k
Forks
998
Avg merge
3d 13h
Merged PRs (30d)
10

Description

Hi there, I'm just getting started with this tool (fantastic abstractions, kudos!), using this guide: https://simonwillison.net/2023/Aug/1/llama-2-mac/

Unfortunately, while all the prerequisites succeeded without any issues, running the actual prompt results in an empty error. Is there any way to run it to reveal more debug information?

➜  ~/llm➜ llm -m l2c 'Tell me a joke about a llama'

Error: 

Some context if it would be helpful:

➜  ~/llm➜ which llm
/usr/local/bin/llm
➜  ~/llm➜ python --version
Python 3.11.5
➜  ~/llm➜ stat /Users/nppinski/Library/Application\ Support/io.datasette.llm/llama-cpp/models/llama-2-7b-chat.ggmlv3.q8_0.bin
16777230 157262586 -rw-r--r-- 1 nppinski staff 0 7160799872 "Aug 27 15:55:00 2023" "Aug 27 15:55:00 2023" "Aug 27 15:55:00 2023" "Aug 27 15:46:31 2023" 4096 13993408 0 /Users/nppinski/Library/Application Support/io.datasette.llm/llama-cpp/models/llama-2-7b-chat.ggmlv3.q8_0.bin

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported llm -m l2c command using the documented llama-2 setup and inspect why it produces only Error:. Done means the command can expose useful debug information for this failure instead of an empty error message.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.