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

Adding a server component for running multiple models on a single model worker. #1866

Merged
merged 1 commit into from
Jul 6, 2023
Merged

Adding a server component for running multiple models on a single model worker. #1866

merged 1 commit into from
Jul 6, 2023

Conversation

fozziethebeat
Copy link
Collaborator

Why are these changes needed?

This adds a new server component that let's clients run multiple models on the same worker instance. With the new PeftModelAdapter and an eventual fix for huggingface/peft#430, this server component let's clients run multiple adapters that share the same base model weights and load the base model weights only once.

As of right now this not fully optimized since it loads the base model weights once per configured model, that is blocked on the Peft issue.

(replaces #1838)

Related issue number (if applicable)

Implements #1805 (maybe fixes?)

Checks

  • I've run format.sh to lint the changes in this PR.
  • I've included any doc changes needed.
  • I've made sure the relevant tests are passing (if applicable).

@fozziethebeat fozziethebeat marked this pull request as ready for review July 6, 2023 02:05
@Ying1123 Ying1123 changed the title Adding a server component for running multiple workers Adding a server component for running multiple models on a single worker with multiple sub-works one for each. Jul 6, 2023
@Ying1123 Ying1123 changed the title Adding a server component for running multiple models on a single worker with multiple sub-works one for each. Adding a server component for running multiple models on a single model worker. Jul 6, 2023
@Ying1123 Ying1123 merged commit 5a003ab into lm-sys:main Jul 6, 2023
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.

2 participants