mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-14 06:15:01 +08:00
[Doc]: Update the doc of adding new models (#4236)
This commit is contained in:
parent
fe7d648fe5
commit
7f2593b164
@ -95,7 +95,7 @@ This method should load the weights from the HuggingFace's checkpoint file and a
|
|||||||
5. Register your model
|
5. Register your model
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
Finally, include your :code:`*ForCausalLM` class in `vllm/model_executor/models/__init__.py <https://github.com/vllm-project/vllm/blob/main/vllm/model_executor/models/__init__.py>`_ and register it to the :code:`_MODEL_REGISTRY` in `vllm/model_executor/model_loader.py <https://github.com/vllm-project/vllm/blob/main/vllm/model_executor/model_loader.py>`_.
|
Finally, register your :code:`*ForCausalLM` class to the :code:`_MODELS` in `vllm/model_executor/models/__init__.py <https://github.com/vllm-project/vllm/blob/main/vllm/model_executor/models/__init__.py>`_.
|
||||||
|
|
||||||
6. Out-of-Tree Model Integration
|
6. Out-of-Tree Model Integration
|
||||||
--------------------------------------------
|
--------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user