Skip to content

Comments

Migrate maxtext common_types#3205

Open
dipannita08 wants to merge 2 commits intomainfrom
move-maxtext-common
Open

Migrate maxtext common_types#3205
dipannita08 wants to merge 2 commits intomainfrom
move-maxtext-common

Conversation

@dipannita08
Copy link
Collaborator

Description

Move maxtext common_types to maxtext/common/.

Tests

  • Unit tests
  • Github CI

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
Copy link

codecov bot commented Feb 20, 2026

Codecov Report

❌ Patch coverage is 96.07843% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/MaxText/layerwise_quantization.py 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Collaborator

@hengtaoguo hengtaoguo left a comment

Choose a reason for hiding this comment

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

LGTM!

from maxtext.common import checkpointing
from MaxText.common_types import MODEL_MODE_TRAIN
from maxtext.common.common_types import MODEL_MODE_TRAIN
from MaxText.globals import MAXTEXT_PKG_DIR
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems the imports are not grouped in this file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep good catch, thank you! Although we will probably need to do a mass lint fix PR.

Comment on lines 24 to 28
from maxtext.common.common_types import Config
from maxtext.layers.decoders import DecoderLayer
from maxtext.layers import multi_token_prediction # The class under test
from maxtext.layers import embeddings
from MaxText.common_types import MODEL_MODE_TRAIN
from maxtext.common.common_types import MODEL_MODE_TRAIN
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Not for this PR but the two maxtext.common.common_types imports should be etiher on the same line or grouped together

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed!

@dipannita08 dipannita08 force-pushed the move-maxtext-common branch 2 times, most recently from 2108e1e to 34dcb76 Compare February 21, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants