Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
お疲れ様です。
こちら、自分が mdx で試した時に問題だったところの修正案です。
実行の際、ライブラリ問題でエラーがあったのでそれを対応するものです。
具体的には vllm の中でnvidia-ml-pyとpynvmlのConflictがあるのと、
OpencvのLibファイル関連で問題が起こるものに対応しています。
こちらはなくてもGPU利用に問題がなく、dockerのバージョン次第で読み込めなかったので削除しています。
自分はDocker version 27.1.2でした。
Transformers 4.44以降では、デフォルトのチャットテンプレートをサポートしないので、
元のコードだけエラーを起こすため、手動で適当なテンプレートを指定しています。
問題全部を一度で渡すと、コンテキスト長が長くなってしまいエラーが起こっていたので、
一問ずつ投げるように修正しました。
これらは自分が勝手に修正しているものですので、
もしより良い修正案がございましたらそれに従います。
ご確認のほど、よろしくお願いいたします。