-
Notifications
You must be signed in to change notification settings - Fork 341
Linting low-hanging fruit across MaxText
, MaxText/input_pipeline
, MaxText/layers
#1457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linting low-hanging fruit across MaxText
, MaxText/input_pipeline
, MaxText/layers
#1457
Conversation
MaxText
, MaxText/input_pipeline
, MaxText/layers
57dd9b5
to
1d5550d
Compare
@shralex The new argument so that |
1d5550d
to
c32a090
Compare
4fd8f37
to
dc5988b
Compare
7758b99
to
dc5988b
Compare
b2bd741
to
9fde3b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @SamuelMarks. Generally LGTM, just a couple comments/questions
MaxText/benchmark_chunked_prefill.py
Outdated
from MaxText import max_utils | ||
from absl import app | ||
|
||
from MaxText import max_utils, prefix_cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the location of prefix_cache
changing from jetstream.core
to MaxText
? Also a minor nit: If you are going to inline some of the MaxText imports like max_utils
, prefix_cache
, it might be good to also inline maxengine
and pyconfig
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bvandermoon Oh my earlier code-base wide find/replace looks at the file hierarchy as the module hierarchy so MaxText/prefix_cache.py
means that import prefix_cache
became from MaxText import prefix_cache
. I can change this one to jetstream.core
. - What about MaxText/inference_microbenchmark.py
and MaxText/tests/prefix_cache_test.py
? - I assume they stay as is.
EDIT: #1643 asked more broadly
9fde3b3
to
f32c702
Compare
f32c702
to
4ea4917
Compare
291b912
into
AI-Hypercomputer:main
Description
For commentary see #1108
EDIT0: Hmm this has 194 files… can think about how to split it out smaller, maybe per folder rather than per module?
EDIT1: Here we go again
EDIT2: Merge this before #1108 then #1108 might be small-enough to merge. Just tell me and I'll squash and remove any reference to
constants.py
.Tests
N/A
Checklist
Before submitting this PR, please make sure (put X in square brackets):