-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add cpu-remote-inference
Docker image
#5225
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
topic:docker
topic:retriever
type:documentation
Improvements on the docs
labels
Jun 29, 2023
Pull Request Test Coverage Report for Build 5484129697
💛 - Coveralls |
vblagoje
force-pushed
the
cpu_remote_inference
branch
from
July 2, 2023 17:18
d8f0c60
to
08680de
Compare
vblagoje
force-pushed
the
cpu_remote_inference
branch
2 times, most recently
from
July 3, 2023 09:00
a7c33cd
to
67574b9
Compare
silvanocerza
reviewed
Jul 5, 2023
silvanocerza
reviewed
Jul 5, 2023
@silvanocerza any idea what |
Must be a leftover from old changes. |
Co-authored-by: Silvano Cerza <[email protected]>
Co-authored-by: Silvano Cerza <[email protected]>
vblagoje
force-pushed
the
cpu_remote_inference
branch
2 times, most recently
from
July 6, 2023 15:25
e0b760a
to
bdafe95
Compare
vblagoje
force-pushed
the
cpu_remote_inference
branch
from
July 6, 2023 15:54
28461ea
to
e270064
Compare
vblagoje
force-pushed
the
cpu_remote_inference
branch
from
July 6, 2023 16:29
e270064
to
5464a19
Compare
Finally green @silvanocerza @bogdankostic , all the images get built, and tests seem to pass! Let's review everything once again tomorrow. |
silvanocerza
approved these changes
Jul 7, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Introduces a new Docker image,
haystack:cpu-remote-inference-<version>
, to our existing images:haystack:gpu-<version>
andhaystack:cpu-<version>
. This image is a slimmed-down version of cpu/gpu images, specifically designed for PromptNode inferencing using remote-hosted models such as HuggingFace Inference, OpenAI, Cohere, Anthropic etc.Why?
The motivation behind the introduction of this new Docker image is to provide a more efficient and lightweight option for users who primarily perform remote Large Language Model (LLM) inference. The existing Docker images for Haystack are comprehensive and can be larger than necessary for users primarily using remote LLM inferencing. By introducing this new Docker image, we offer a more streamlined and efficient option for Haystack users.
How can it be used?
The new
haystack:cpu-remote-inference-<version>
image can be used the same way as the existing gpu and cpu Docker images in Haystack. Users can pull this image and run their applications, benefiting from the reduced size and specific tuning for remote LLM inferencing.Follow these steps to test the new image:
cpu_remote_inference
branch on your Linux machine; go to the docker directory of the projectHow did you test it?
The new Docker image was tested by baking and running both the amd64 and arm64 versions.
Notes for the reviewer
Please build images yourself and run the steps outlined in
How can it be used?
sectionThank you for reviewing, your feedback is greatly appreciated.