MCPcopy Create free account
hub / github.com/Alpha-VLLM/LLaMA2-Accessory / forward_Linear

Function forward_Linear

accessory/util/quant.py:89–93  ·  view source on GitHub ↗
(self, input: torch.Tensor)

Source from the content-addressed store, hash-verified

87 return output
88
89def forward_Linear(self, input: torch.Tensor) -> torch.Tensor:
90 output = self.quanted_layer(input)
91 if self.bias != None:
92 output += self.bias
93 return output
94
95def quantize(
96 model : MetaModel,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected