1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

LLM-jp-4 が code 500 で動かない

1
Last updated at Posted at 2026-08-22

エラー

Engine protocol predict stream returned an error: {"code":500,"message":"The model produced output that does not match the expected peg-native format","type":"server_error"}

設定を変更する

Chat Template 1か所目

モデルを読み込む際に Show advanced settings のスライドトグルをクリック
image.png

Chat Template のプルダウンをクリックする
image.png

元データはすべて削除し、以下を張り付ける

{%- for message in messages -%}
<|start|>{{ message.role }}<|message|>
{{ message.content }}<|end|>
{%- endfor -%}
{%- if add_generation_prompt -%}
<|start|>assistant<|message|>
{%- endif -%}

設定画面をすべて閉じる

Stop Strings(停止文字列) 2か所目

以下のデータを張り付けるか1行ずつ追加する
0x0d、0x0a で1行ごとか
shift-enter でテキストエディタでデータを直接貼り付ける

<|end|>

<|return|>

<|call|>

ここまでやってもエラー 400 は出るので、あくまで速度の目安を確認する程度と割り切って使うひつようがある。

以上。

本記事の YouTube 動画
https://youtu.be/ZqKXCOwsHmA

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?