MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / __init__

Method __init__

tensorrt_llm/models/bert/model.py:375–381  ·  view source on GitHub ↗
(self, config: BERTConfig)

Source from the content-addressed store, hash-verified

373class BertForQuestionAnswering(BertBase):
374
375 def __init__(self, config: BERTConfig):
376 super().__init__(config)
377 self.bert = BertModel(config)
378 self.num_labels = config.num_labels
379 self.qa_outputs = Linear(config.hidden_size,
380 config.num_labels,
381 dtype=config.dtype)
382
383 def forward(self,
384 input_ids=None,

Callers

nothing calls this directly

Calls 3

BertModelClass · 0.70
LinearClass · 0.50
__init__Method · 0.45

Tested by

no test coverage detected