Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

fix(pt-expt): preserve DOS width in exported models

オープン
#5,949 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
python, pytorch

調査の方向性

deepmd/pt_expt/model/dos_model.py::DOSModel から始め、DP-model の DOS class と比較して numb_dos がどのように保持されるかを追跡します。次に deepmd/pt_expt/infer/deep_eval.py::get_numb_dos() を調べます。エクスポートされたモデルが設定された幅を報告し、DeepDOS または dp test が numb_dos: 2 に設定されたモデルを reshape failure なしで評価できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

Problem

PyTorch-Exportable DOS models do not preserve or report their configured output width after export.

A model configured with numb_dos: 2 can train and export to .pte, but the pt_expt model/evaluator reports get_numb_dos() == 0. DeepDOS(...).eval() then fails while reshaping the two predicted values into an output width of zero.

The current gaps are:

  • deepmd/pt_expt/model/dos_model.py::DOSModel does not expose the configured DOS width as the DP-model DOS class does.
  • deepmd/pt_expt/infer/deep_eval.py::get_numb_dos() returns 0 unconditionally.

Expected behavior

Exported PyTorch-Exportable DOS models should preserve numb_dos, and DeepDOS/dp test should recover that value and evaluate the exported model successfully.

Context

Discovered while reviewing #5929. Until this is fixed, the PyTorch-Exportable DOS training/export/testing workflow should not be advertised as supported.

Coding agent: Codex
Codex version: codex-cli 0.144.6
Model: gpt-5.6-sol
Reasoning effort: xhigh

主要言語
Python
スター
2.1k
フォーク
654
平均マージ
3日 10時間
マージ済み PR(30日)
13

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

deepmodeling/deepmd-kit のほかの issue

deepmodeling/deepmd-kit の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。