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

Method __init__

llmzoo/deploy/webapp/compression.py:28–32  ·  view source on GitHub ↗
(self, weight, bias, device)

Source from the content-addressed store, hash-verified

26 """Compressed Linear Layer."""
27
28 def __init__(self, weight, bias, device):
29 super().__init__()
30
31 self.weight = compress(weight.data.to(device), default_compression_config)
32 self.bias = bias
33
34 def forward(self, input: Tensor) -> Tensor:
35 weight = decompress(self.weight, default_compression_config)

Callers

nothing calls this directly

Calls 1

compressFunction · 0.85

Tested by

no test coverage detected