Halcyon Days

工場DX担当者のメモ書き

MENU

「Invalid model identifier "". Please specify a valid downloaded model.」の対処法

ObsidianでSmart Composerを使用していたときに発生したエラー。

LM Studioでローカルサーバーを立てて、llama-3.3-8b-instructを使って、チャットをしたら下記のようなエラーが発生した。

Invalid model identifier "llama-3.3-8b-instruct". Please specify a valid downloaded model (e.g., google/gemma-3n-e4b@4bit, google/gemma-3n-e4b, gemma-3n-e4b-it-mlx).

どうやらSmart Composerに登録したモデルのidentifierが異なっていたらしい。

そのため、下記のAPIを叩いて正しいモデルのidentifierを取得し、Smart Composerで再度モデルを登録する。

http://localhost:1234/v1/models

上記のAPIを叩くと下記のようにモデルの一覧が表示される。

{
  "data": [
    {
      "id": "google/gemma-3n-e4b",
      "object": "model",
      "owned_by": "organization_owner"
    },
    {
      "id": "allura-forge_llama-3.3-8b-instruct",
      "object": "model",
      "owned_by": "organization_owner"
    }
  ],
  "object": "list"
}

このidに表示されている値がモデルのidentifierになるので、これをSmart Composerで登録する。

Smart Composerに関する記事は下記

hal40n.com