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

feat(jax): apply training.mixed_precision to the JAX train step

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

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

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

評価

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

調査の方向性

まず、JAX trainer における training.mixed_precision の処理と、関連する training および checkpoint のテストを見つけます。正規化された設定がモデル実行、loss、optimizer の更新、reduction、再起動時の動作を通る経路を追跡します。対応モードによって計算 dtype が変更され、未対応の組み合わせが拒否され、数値許容誤差が満たされ、非有限の更新によって checkpoint が破損しないことを確認できれば完了です。

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

説明

enhancement

Summary

The JAX trainer reads training.mixed_precision, but the configuration is not applied to model execution, loss computation, optimizer updates, or checkpoint behavior.

Scope

  • Define compute, parameter, output, and reduction dtypes from the normalized mixed-precision configuration.
  • Apply the policy consistently to the JAX model and train step.
  • Add loss scaling or non-finite update handling when required by the selected low-precision mode.
  • Preserve numerically sensitive reductions in an appropriate dtype.
  • Serialize enough policy and optimizer state for deterministic restart.
  • Reject unsupported dtype/device combinations before training.

Acceptance criteria

  • Supported mixed-precision configurations change the actual computation dtype.
  • Energy, force, loss, and gradient results remain within documented tolerances of full precision.
  • Non-finite gradients do not silently corrupt checkpoints.
  • Checkpoint/resume preserves the policy and reproduces the next update.
  • Tests cover at least one supported low-precision mode, unsupported configurations, and full-precision regression behavior.

Refs #5756.

Coding agent: Codex
Codex version: codex-cli 0.144.4
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 を短くまとめたダイジェスト。