MCPcopy Create free account
hub / github.com/MLSysU/TD-Pipe / forward

Method forward

TD_Pipe/model_executor/models/opt.py:298–305  ·  view source on GitHub ↗
(
        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
308class OPTForCausalLM(nn.Module):

Callers 1

forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected