NVIDIA / NVIDIA/GenerativeAIExamples
Internal server error for role orders in LLM inference
オープン
まだ誰も着手していません。
- 主要言語
- Jupyter Notebook
- スター
- 4.2k
- フォーク
- 1.1k
- 平均マージ
- 10時間 15分
- マージ済み PR(30日)
- 1
説明
Hi,
I am getting 500s with description
chat messages must alternate roles between 'user' and 'assistant'. Message may have a leading 'system' role message
and
"Internal Server Error\",\"status\":500,\"detail\":\"Last message role should be 'user'
I think this order validation is unnecessary. Most of the models (e.g. mixtrals, llama3, gemma etc) are perfectly fine with any order of roles. This claim can be validated on groq's playground: https://console.groq.com/playground
This issue currently breaks some existing patterns, like continuations (without the user explicitly saying "continue") or in some cases running agents with observations etc.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、引用されているロール順序および最後のメッセージのエラーを生成するバリデーションを追跡し、その後、継続メッセージまたはエージェント観測メッセージを含むリクエストを再現します。対応している非交互のロールシーケンスが HTTP 500 を返さなくなり、意図したバリデーション動作が引き続きカバーされていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 領域
- ai, api
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100