feat(tf2): align optimizer dispatch with the common schema

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python, tensorflow

調査の方向性

TF2 trainer と共有の dispatch/factory 境界から開始し、正規化されたトップレベルの optimizer ブロックが backend validation に到達するまでを追跡します。サポートされているパラメータについて決定論的な 1 ステップ更新テストを実行または追加し、checkpoint/resume によって次の更新が再現されることを確認します。すべての schema optimizer に明示的な TF2 ステータスがあり、サポートされていない選択肢がトレーニング前に失敗し、HybridMuon を重複したパースなしで #5771 経由で統合できれば完了です。

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

説明

enhancement

Summary

TF2 optimizer dispatch supports Adam and AdamW, while the common schema also exposes LKF, AdaMuon, and HybridMuon. Unsupported choices currently fail only in the TF2 trainer.

DPA4 HybridMuon support is tracked in #5771; this issue covers the broader backend-aware optimizer contract, including explicit support/restriction for the remaining schema variants.

Scope

  • Consume and validate the normalized top-level optimizer block.
  • Implement TF2-native optimizers that are intended to be supported.
  • Reject intentionally unsupported variants during backend-aware validation.
  • Wire optimizer-specific parameters and preserve state through checkpoints.
  • Do not silently fall back to Adam or ignore normalized fields.
  • Coordinate the shared dispatch/factory boundary with #5771.

Acceptance criteria

  • Every schema-exposed optimizer has an explicit TF2 support status.
  • Supported optimizer parameters affect deterministic one-step update tests.
  • Unsupported variants fail before the training loop with an actionable message.
  • Adam and AdamW remain behaviorally compatible.
  • Checkpoint/resume restores complete optimizer state and reproduces the next update.
  • HybridMuon integration can land through #5771 without duplicating configuration parsing.

Refs #5757.

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

主要言語
Python
スター
2.1k
フォーク
662
平均マージ
5日 19時間
マージ済み PR(30日)
22

環境構築

Codespaces で開く

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

はじめの一歩

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

deepmodeling/deepmd-kit のほかの issue

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

似ている issue

Python の issue をもっと見る

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

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