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

Method _init_weights

workers/chatglm3_modeling.py:673–675  ·  view source on GitHub ↗

Initialize the weights.

(self, module: nn.Module)

Source from the content-addressed store, hash-verified

671 _no_split_modules = ["GLMBlock"]
672
673 def _init_weights(self, module: nn.Module):
674 """Initialize the weights."""
675 return
676
677 def get_masks(self, input_ids, past_key_values, padding_mask=None):
678 batch_size, seq_length = input_ids.shape

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected