MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / __init__

Method __init__

inference/models/falcon.py:287–291  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

285
286class FalconForCausalLM(nn.Module):
287 def __init__(self, params):
288 super().__init__()
289 self.config = params
290 self.transformer = Transformer(params)
291 self.lm_head = nn.Linear(params.hidden_size, params.vocab_size, bias=False)
292
293 @torch.inference_mode()
294 def forward(self, tokens: torch.Tensor, start_pos: int):

Callers

nothing calls this directly

Calls 2

TransformerClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected