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应该已经支持lora了吧 #2998

Closed
1 task done
SilentMoebuta opened this issue Mar 27, 2024 · 5 comments
Closed
1 task done

vllm应该已经支持lora了吧 #2998

SilentMoebuta opened this issue Mar 27, 2024 · 5 comments
Labels
wontfix This will not be worked on

Comments

@SilentMoebuta
Copy link

Reminder

  • I have read the README and searched the existing issues.

Reproduction

Traceback (most recent call last):
  File "/hy-tmp/llama-factory-1/LLaMA-Factory-main/src/api_demo.py", line 16, in <module>
    main()
  File "/hy-tmp/llama-factory-1/LLaMA-Factory-main/src/api_demo.py", line 9, in main
    chat_model = ChatModel()
  File "/hy-tmp/llama-factory-1/LLaMA-Factory-main/src/llmtuner/chat/chat_model.py", line 21, in __init__
    model_args, data_args, finetuning_args, generating_args = get_infer_args(args)
  File "/hy-tmp/llama-factory-1/LLaMA-Factory-main/src/llmtuner/hparams/parser.py", line 265, in get_infer_args
    raise ValueError("vLLM engine does not support LoRA adapters. Merge them first.")

在参数解析的时候直接把lora给挡住了

Expected behavior

No response

System Info

No response

Others

No response

@hiyouga
Copy link
Owner

hiyouga commented Mar 27, 2024

没有对所有模型支持

@hiyouga hiyouga added the wontfix This will not be worked on label Mar 27, 2024
@hiyouga hiyouga closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2024
@JieShenAI
Copy link

没有对所有模型支持

我想知道,如何做这个 merge 操作呢

@JieShenAI
Copy link

合并模型权重,可以参考这篇文章:https://zhuanlan.zhihu.com/p/689333581

@hiyouga
Copy link
Owner

hiyouga commented Apr 12, 2024

@JieShenAI https://github.com/hiyouga/LLaMA-Factory/blob/main/examples/merge_lora/merge.sh

@JieShenAI
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants