MCPcopy Create free account
hub / github.com/FreedomIntelligence/CMB / quantize

Method quantize

workers/chatglm3_modeling.py:845–848  ·  view source on GitHub ↗
(self, weight_bit_width: int)

Source from the content-addressed store, hash-verified

843 )
844
845 def quantize(self, weight_bit_width: int):
846 from .quantization import quantize
847 quantize(self.encoder, weight_bit_width)
848 return self
849
850
851class ChatGLMForConditionalGeneration(ChatGLMPreTrainedModel):

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected