[Misc] Delete redundant code (#16530)
Signed-off-by: Jee Jee Li <pandaleefree@gmail.com> Co-authored-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
parent
68bb122eb4
commit
3cdc57669f
@ -1096,13 +1096,6 @@ def main(args):
|
|||||||
}
|
}
|
||||||
llm = LLM(**engine_args)
|
llm = LLM(**engine_args)
|
||||||
|
|
||||||
# To maintain code compatibility in this script, we add LoRA here.
|
|
||||||
# You can also add LoRA using:
|
|
||||||
# llm.generate(prompts, lora_request=lora_request,...)
|
|
||||||
if req_data.lora_requests:
|
|
||||||
for lora_request in req_data.lora_requests:
|
|
||||||
llm.llm_engine.add_lora(lora_request=lora_request)
|
|
||||||
|
|
||||||
# Don't want to check the flag multiple times, so just hijack `prompts`.
|
# Don't want to check the flag multiple times, so just hijack `prompts`.
|
||||||
prompts = req_data.prompts if args.use_different_prompt_per_request else [
|
prompts = req_data.prompts if args.use_different_prompt_per_request else [
|
||||||
req_data.prompts[0]
|
req_data.prompts[0]
|
||||||
|
@ -695,13 +695,6 @@ def run_chat(model: str, question: str, image_urls: list[str],
|
|||||||
engine_args = asdict(req_data.engine_args) | {"seed": seed}
|
engine_args = asdict(req_data.engine_args) | {"seed": seed}
|
||||||
llm = LLM(**engine_args)
|
llm = LLM(**engine_args)
|
||||||
|
|
||||||
# To maintain code compatibility in this script, we add LoRA here.
|
|
||||||
# You can also add LoRA using:
|
|
||||||
# llm.generate(prompts, lora_request=lora_request,...)
|
|
||||||
if req_data.lora_requests:
|
|
||||||
for lora_request in req_data.lora_requests:
|
|
||||||
llm.llm_engine.add_lora(lora_request=lora_request)
|
|
||||||
|
|
||||||
sampling_params = SamplingParams(temperature=0.0,
|
sampling_params = SamplingParams(temperature=0.0,
|
||||||
max_tokens=256,
|
max_tokens=256,
|
||||||
stop_token_ids=req_data.stop_token_ids)
|
stop_token_ids=req_data.stop_token_ids)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user