[Doc] Add developer guide for CustomOp (#30886)
Signed-off-by: shen-shanshan <467638484@qq.com>
This commit is contained in:
@@ -10,10 +10,13 @@ from vllm.model_executor.custom_op import CustomOp
|
||||
from .common import ApplyRotaryEmb
|
||||
|
||||
|
||||
# --8<-- [start:rotary_embedding]
|
||||
@CustomOp.register("rotary_embedding")
|
||||
class RotaryEmbeddingBase(CustomOp):
|
||||
"""Original rotary positional embedding."""
|
||||
|
||||
# --8<-- [end:rotary_embedding]
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
head_size: int,
|
||||
|
||||
Reference in New Issue
Block a user