MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / __init__

Method __init__

deepspeed/compression/basic_layer.py:67–73  ·  view source on GitHub ↗
(self, *kargs)

Source from the content-addressed store, hash-verified

65class Embedding_Compress(nn.Embedding):
66
67 def __init__(self, *kargs):
68 super(Embedding_Compress, self).__init__(*kargs)
69 self.weight.start_bits = None
70 self.weight.target_bits = None
71 self.weight.q_period = None
72 self.weight_quantization_enabled_in_forward = False
73 self.weight_quantization_enabled = False
74
75 def extra_repr(self):
76 return 'num_embeddings={}, embedding_dim={}, weight_quantization={}'.format(

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected