MCPcopy Create free account
hub / github.com/Edward-Sun/SLM / __init__

Method __init__

codes/model.py:24–55  ·  view source on GitHub ↗

Constructs SLMConfig.

(self,
                 vocab_size,
                 embedding_size=256,
                 hidden_size=256,
                 max_segment_length=4,
                 encoder_layer_number=1,
                 decoder_layer_number=1,
                 encoder_input_dropout_rate=0.0,
                 decoder_input_dropout_rate=0.0,
                 encoder_dropout_rate=0.0,
                 decoder_dropout_rate=0.0,
                 punc_id=2,
                 num_id=3,
                 eos_id=5,
                 eng_id=7)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected