Skip to content

Commit

Permalink
feat: venus adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
jimpang committed Sep 12, 2024
1 parent c0c25d3 commit ad44916
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vllm/entrypoints/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ async def generate(request: Request) -> Response:
request_dict = await request.json()
prompt = request_dict.pop("prompt")
stream = request_dict.pop("stream", False)
# jimpang lora
lora_id = request_dict.pop("lora_id", None)
lora_path = request_dict.pop("lora_path", None)
sampling_params = SamplingParams(**request_dict)
request_id = random_uuid()

Expand Down

0 comments on commit ad44916

Please sign in to comment.