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

Add llama.cpp backend #2723

Open
wants to merge 74 commits into
base: main
Choose a base branch
from
Open

Add llama.cpp backend #2723

wants to merge 74 commits into from

Conversation

mfuntowicz
Copy link
Member

@mfuntowicz mfuntowicz commented Nov 4, 2024

This PR is an initial implementation of llama.cpp as potential backend for TGI.

It mostly targets CPU inference in a single/multi stream scheduling fashion, potentially spawning multiple instances of the same model over a non-overlapping subset of the CPU cores.

The current implementation only allows a single request to be running on a working, this constraint will be removed later on.
The current implementation also dupplicate the weights for each worker, this constraint can potentially be removed later on.

# Conflicts:
#	Cargo.lock
@mfuntowicz mfuntowicz marked this pull request as ready for review November 22, 2024 13:47
@mfuntowicz mfuntowicz requested a review from angt November 22, 2024 15:02
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.

1 participant