MCPcopy Create free account
hub / github.com/FreedomIntelligence/LLMZoo / forward

Method forward

llmzoo/deploy/webapp/compression.py:34–36  ·  view source on GitHub ↗
(self, input: Tensor)

Source from the content-addressed store, hash-verified

32 self.bias = bias
33
34 def forward(self, input: Tensor) -> Tensor:
35 weight = decompress(self.weight, default_compression_config)
36 return F.linear(input, weight, self.bias)
37
38
39def compress_module(module, target_device):

Callers

nothing calls this directly

Calls 1

decompressFunction · 0.85

Tested by

no test coverage detected