Skip to content
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

Include two different stages for building TGI image: #34

Merged
merged 8 commits into from
May 3, 2024

Conversation

mfuntowicz
Copy link
Member

  • Default standalone image
  • Inference Endpoint specific image

- Default standalone image
- Inference Endpoint specific image
@mfuntowicz mfuntowicz requested a review from tengomucho May 2, 2024 09:00
FROM tpu_base as final_image
ENTRYPOINT text-generation-launcher
CMD ["--json-output"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

this seems to revert 8756c8a, are you sure about it?

Copy link
Member Author

Choose a reason for hiding this comment

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

For the case of non inference-endpoints (IE) Docker image we want the image to provide their own argument, so this was correct and the changes we did were too focus on IE loosing flexibility in other deployment scenarios

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok, in that case we might want to keep 2 docker images, one for TGI non inference-endpoints (IE), the other for IE. Or, if we are not interested in maintaining one of those, we should probably drop the image and the associated targets.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes but we are definitely interested in keeping both and potentially adding a third one for vertex if it makes sense later 👍🏻

--build-arg VERSION=$(VERSION) \
--build-arg TGI_VERSION=$(TGI_VERSION) \
-t huggingface/optimum-tpu:$(VERSION)-tgi .
docker tag huggingface/optimum-tpu:$(VERSION)-tgi huggingface/optimum-tpu:latest

tpu-tgi-ie:
Copy link
Collaborator

Choose a reason for hiding this comment

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

target tgi_docker_test should depend on this (and we should probably fix it at some point)

Copy link
Member Author

Choose a reason for hiding this comment

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

Does the tgi_docker_test needs to be run on an inference-endpoints specific docker image?

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@mfuntowicz mfuntowicz merged commit c9937a9 into main May 3, 2024
2 checks passed
@mfuntowicz mfuntowicz deleted the make-tgi-image-more-generic branch May 3, 2024 08:45
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.

None yet

3 participants