simonw / simonw/llm

Model installation issue locally

Open
#430 1 comment 0 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 @simonw Thanks so much for all the hard work, and this is a fantastic resource.

There's a possibility I'm doing something wrong but let me try to explain what I see.

Problem

  • I was trying to run the mistral model locally on my computer.
  • I use poetry installation of the llm model.

I get the following errors.

100%|██████████████████| 1.98G/1.98G [01:33<00:00, 21.2MiB/s]
Error: Unable to instantiate model: Model format not supported (no matching implementation found)```

llm -m mistral-7b-instruct-v0 'difference between a pelican and a walrus'
Error: Unable to instantiate model: Model format not supported (no matching implementation found)

I ran the following. Is it due to the fact that I'm using an M3 chip?

system_profiler SPSoftwareDataType SPHardwareDataType


Software:

    System Software Overview:

      System Version: macOS 14.3 (23D56)
      Kernel Version: Darwin 23.3.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: Peadar’s MacBook Pro
      User Name: User (user)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 31 minutes, 58 seconds

Hardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: Mac15,3
      Model Number: Z1C8000FDB/A
      Chip: Apple M3
      Total Number of Cores: 8 (4 performance and 4 efficiency)
      Memory: 16 GB
      System Firmware Version: 10151.81.1
      OS Loader Version: 10151.81.1
      Serial Number (system): G6M22DC462
      Hardware UUID: F2514639-4A87-5F30-AA1B-375B3ECB9DEF
      Provisioning UDID: 00008122-001638590881401C
      Activation Lock Status: Disabled

Hope this helps.

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

Start with the llm -m command and the Poetry-installed environment, reproducing the reported Model format not supported error for both model names. Trace how the CLI selects a model implementation and compare that with the locally installed model support; done means both commands instantiate successfully on the reported setup or the incompatibility is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.