-
Notifications
You must be signed in to change notification settings - Fork 50
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
No need to build tensorflow-text from source: py3.12 x86/arm64 wheels are available on pypi #1206
base: main
Are you sure you want to change the base?
Conversation
@@ -86,5 +45,5 @@ RUN pip-finalize.sh | |||
|
|||
WORKDIR ${SRC_PATH_MAXTEXT} | |||
|
|||
# When tftext and lingvo wheels are published on pypi.org, revert this | |||
# When tftext wheels are published on pypi.org, revert this | |||
# Dockerfile to 5c4b687b918e6569bca43758c346ad8e67460154 |
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.
Remove both lines and do that revert?
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.
I cannot do that now: the commit mentioned here assumes that both tftext
and lingvo
are available on python-3.12, but it's not true for lingvo
, that's why we still need to build lingvo
for both x86_64 and arm64.
|
||
# Preserve version information of tensorflow-text and lingvo | ||
COPY --from=lingvo-builder /opt/manifest.d/git-clone.yaml /opt/manifest.d/git-clone.yaml | ||
COPY --from=lingvo-builder /tmp/lingvo/dist/lingvo*-linux*.whl /opt/ | ||
RUN echo "lingvo @ file://$(ls /opt/lingvo*.whl)" >> /opt/pip-tools.d/requirements-paxml.in | ||
|
||
COPY --from=tftext-builder ${SRC_PATH_TFTEXT}/tensorflow_text*.whl /opt/ | ||
RUN echo "tensorflow-text @ file://$(ls /opt/tensorflow_text*.whl)" >> /opt/pip-tools.d/requirements-paxml.in | ||
|
||
# paxml + praxis | ||
RUN <<"EOF" bash -ex | ||
echo "tensorflow_datasets==4.9.2" >> /opt/pip-tools.d/requirements-paxml.in |
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.
Updates the last 2 lines of this file?
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.
Same as above.
Recently, Google has released tensorflow-text 2.18.1 that is available on python-3.12 and both archs: x86 and arm64. So, we don't need to build it from source any more