mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-15 09:15:55 +08:00
[Doc] Fix codeblocks formatting in LoRA adapters documentation (#18907)
Signed-off-by: Zerohertz <ohg3417@gmail.com>
This commit is contained in:
parent
b169d5f7b6
commit
6f2909405e
@ -165,6 +165,7 @@ it will first look in the local directory for a directory `foobar`, and attempt
|
|||||||
that adapter will then be available for normal use on the server.
|
that adapter will then be available for normal use on the server.
|
||||||
|
|
||||||
Alternatively, follow these example steps to implement your own plugin:
|
Alternatively, follow these example steps to implement your own plugin:
|
||||||
|
|
||||||
1. Implement the LoRAResolver interface.
|
1. Implement the LoRAResolver interface.
|
||||||
|
|
||||||
Example of a simple S3 LoRAResolver implementation:
|
Example of a simple S3 LoRAResolver implementation:
|
||||||
@ -198,9 +199,9 @@ Alternatively, follow these example steps to implement your own plugin:
|
|||||||
return lora_request
|
return lora_request
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Register LoRAResolver plugin.
|
2. Register `LoRAResolver` plugin.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from vllm.lora.resolver import LoRAResolverRegistry
|
from vllm.lora.resolver import LoRAResolverRegistry
|
||||||
|
|
||||||
s3_resolver = S3LoRAResolver()
|
s3_resolver = S3LoRAResolver()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user