InternLM / InternLM/lmdeploy

[Bug] 使用lora适配器参数起服务后,只有一个模型可用,基础模型不可用

Open
#3,594 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8.1k
Forks
748
Avg merge
6d 2h
Merged PRs (30d)
54

Description

### Checklist

- [x] 1. I have searched related issues but cannot get the expected help.
- [x] 2. The bug has not been fixed in the latest version.
- [ ] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

### Describe the bug

我起服务的指令如下
lmdeploy serve api_server /root/workspace/personal_data/LLM_models/Qwen3-8B \
--dtype auto \
--session-len 30000 \
--api-keys use-openGV-8b \
--server-port 20483 \
--model-name qwen3-8b \
--adapters mylora=/root/workspace/personal_data/lora_model
成功运行,接口可以访问,但是可用模型只有qwen3-8b,没有mylora模型

使用lmdeploy教程中的指令起服务
lmdeploy serve api_server root/workspace/personal_data/LLM_models/Qwen3-8B --adapters mylora=/root/workspace/personal_data/lora_model则会报错,报错内容为lmdeploy serve api_server: error: the following arguments are required: model_path

我想知道如果只有一个模型可以访问,那这个模型是lora后的模型还是原始的模型,模型名称是qwen3-8b,对于我能运行并成功起服务的该指令:lmdeploy serve api_server /root/workspace/personal_data/LLM_models/Qwen3-8B \
--dtype auto \
--session-len 30000 \
--api-keys use-openGV-8b \
--server-port 20483 \
--model-name qwen3-8b \
--adapters mylora=/root/workspace/personal_data/lora_model

### Reproduction

lmdeploy serve api_server /root/workspace/personal_data/LLM_models/Qwen3-8B \
--dtype auto \
--session-len 30000 \
--api-keys use-openGV-8b \
--server-port 20483 \
--model-name qwen3-8b \
--adapters mylora=/root/workspace/personal_data/lora_model

### Environment

```Shell
py310
```

### Error traceback

```Shell

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.