Files
bi100_contest-03/vllm/adapter_commons/layers.py
4paradigm 780b5e1ff4
Some checks failed
Docker Build and Push / docker (push) Failing after 2m10s
Initial commit
2026-07-24 15:17:23 +08:00

14 lines
367 B
Python

from dataclasses import dataclass
from typing import Tuple
@dataclass
class AdapterMapping:
# Per every token in input_ids:
index_mapping: Tuple[int, ...]
# Per sampled token:
prompt_mapping: Tuple[int, ...]
def __post_init__(self):
self.index_mapping = tuple(self.index_mapping)
self.prompt_mapping = tuple(self.prompt_mapping)