Method
forward
(
self,
input_ids: torch.Tensor,
positions: torch.Tensor,
kv_caches: List[KVCache],
input_metadata: InputMetadata,
)
Source from the content-addressed store, hash-verified
| 296 | linear_method) |
| 297 | |
| 298 | def forward( |
| 299 | self, |
| 300 | input_ids: torch.Tensor, |
| 301 | positions: torch.Tensor, |
| 302 | kv_caches: List[KVCache], |
| 303 | input_metadata: InputMetadata, |
| 304 | ) -> torch.Tensor: |
| 305 | return self.decoder(input_ids, positions, kv_caches, input_metadata) |
| 306 | |
| 307 | |
| 308 | class OPTForCausalLM(nn.Module): |
Tested by
no test coverage detected