Skip to content

Added missing activation checkpointing for DeepseekV4 model - #4272

Merged
copybara-service[bot] merged 1 commit into
AI-Hypercomputer:mainfrom
dipakg-lang:dsv4-checkpointing
Jul 13, 2026
Merged

Added missing activation checkpointing for DeepseekV4 model#4272
copybara-service[bot] merged 1 commit into
AI-Hypercomputer:mainfrom
dipakg-lang:dsv4-checkpointing

Conversation

@dipakg-lang

@dipakg-lang dipakg-lang commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Description

Added missing activation checkpointing for DeepseekV4 model

The rest of the description includes relevant details and context, examples:

  • This was missed while doing the model bring up,
  • adss missing activation check pointing at the missing places,
  • We need this for efficient training
  • Considering we are working with Deepseek v4 which uses single KV proj we had to introduce a new check point name for it in maxtext

If the change fixes a bug or a Github issue, please include a link, e.g.,:
FIXES: TDB

Notice 1: Once all tests pass, the "pull ready" label will automatically be assigned.
This label is used for administrative purposes. Please do not add it manually.

Notice 2: For external contributions, our settings currently require an approval from a MaxText maintainer to trigger CI tests.

Tests

Please describe how you tested this change, and include any instructions and/or
commands to reproduce.

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.35294% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/maxtext/layers/attention_compressed.py 84.61% 2 Missing ⚠️
src/maxtext/utils/estimator.py 75.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Comment thread src/maxtext/utils/estimator.py

@parambole parambole left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread src/maxtext/utils/estimator.py
@dipakg-lang
dipakg-lang force-pushed the dsv4-checkpointing branch from e6503c3 to 1e4acfb Compare July 8, 2026 17:19
@copybara-service
copybara-service Bot merged commit 2707faf into AI-Hypercomputer:main Jul 13, 2026
44 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants