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

vLLM: Add ipex-llm entrypoint #10738

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

Conversation

xiangyuT
Copy link
Contributor

@xiangyuT xiangyuT commented Apr 11, 2024

Description

Provide ipex_llm.serving.vllm.entrypoints to run vLLM. Need to install vllm first.

  • Executable with python -m ipex_llm.serving.vllm.entrypoints.openai.api_server
  • Optimize with ipex-llm
  • Optimize with ipex
  • Examples/README

@xiangyuT xiangyuT changed the title [WIP] vLLM: Add ipex-llm entrypoint vLLM: Add ipex-llm entrypoint Apr 16, 2024
@xiangyuT xiangyuT marked this pull request as ready for review April 16, 2024 01:11
@xiangyuT xiangyuT requested a review from glorysdj April 16, 2024 01:11
invalidInputError(model.device.type in ('cpu', 'meta'),
"Expect model on device `cpu` or `meta`, "
f"but got device type {model.device.type}")
# invalidInputError(model.device.type in ('cpu', 'meta'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider change to this?

    if hasattr(model, 'device'):
        invalidInputError(model.device.type in ('cpu', 'meta'),
                        "Expect model on device `cpu` or `meta`, "
                        f"but got device type {model.device.type}")

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

2 participants