File size: 4,516 Bytes
8444110 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | {
"module": "keras_hub.src.models.t5gemma.t5gemma_seq_2_seq_lm",
"class_name": "T5GemmaSeq2SeqLM",
"config": {
"backbone": {
"module": "keras_hub.src.models.t5gemma.t5gemma_backbone",
"class_name": "T5GemmaBackbone",
"config": {
"name": "t5_gemma_backbone",
"trainable": true,
"dtype": {
"module": "keras",
"class_name": "DTypePolicy",
"config": {
"name": "float32"
},
"registered_name": null
},
"vocabulary_size": 256000,
"encoder_hidden_dim": 512,
"encoder_intermediate_dim": 1024,
"encoder_num_layers": 8,
"encoder_num_attention_heads": 8,
"encoder_num_key_value_heads": 8,
"encoder_layer_types": [
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention"
],
"encoder_head_dim": 64,
"decoder_hidden_dim": 512,
"decoder_intermediate_dim": 1024,
"decoder_num_layers": 8,
"decoder_num_attention_heads": 8,
"decoder_num_key_value_heads": 8,
"decoder_layer_types": [
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention"
],
"decoder_head_dim": 64,
"dropout_rate": 0.0,
"rms_norm_eps": 1e-06,
"tie_word_embeddings": true,
"query_pre_attn_scalar": 64,
"attention_bias": false,
"hidden_activation": "gelu_approximate",
"initializer_range": 0.02,
"attention_dropout": 0.0,
"sliding_window": 4096,
"cross_attention_hidden_size": 512,
"attn_logit_softcapping": 50.0,
"final_logit_softcapping": 30.0,
"rope_max_wavelength": 10000.0
},
"registered_name": "keras_hub>T5GemmaBackbone"
},
"preprocessor": {
"module": "keras_hub.src.models.t5gemma.t5gemma_seq_2_seq_lm_preprocessor",
"class_name": "T5GemmaSeq2SeqLMPreprocessor",
"config": {
"name": "t5_gemma_seq2_seq_lm_preprocessor",
"trainable": true,
"dtype": {
"module": "keras",
"class_name": "DTypePolicy",
"config": {
"name": "float32"
},
"registered_name": null
},
"tokenizer": {
"module": "keras_hub.src.models.t5gemma.t5gemma_tokenizer",
"class_name": "T5GemmaTokenizer",
"config": {
"name": "t5_gemma_tokenizer",
"trainable": true,
"dtype": {
"module": "keras",
"class_name": "DTypePolicy",
"config": {
"name": "int32"
},
"registered_name": null
},
"config_file": "tokenizer.json",
"proto": null,
"sequence_length": null,
"add_bos": false,
"add_eos": false
},
"registered_name": "keras_hub>T5GemmaTokenizer"
},
"config_file": "preprocessor.json",
"add_start_token": false,
"add_end_token": true
},
"registered_name": "keras_hub>T5GemmaSeq2SeqLMPreprocessor"
},
"name": "t5_gemma_seq2_seq_lm"
},
"registered_name": "keras_hub>T5GemmaSeq2SeqLM"
} |