Anthony-Ml commited on
Commit
ae1b1f4
1 Parent(s): 2b9de6d

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ assets/tokenizer/vocabulary.spm filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: keras-nlp
3
+ pipeline_tag: text-generation
4
+ ---
5
+ This is a [`Gemma` model](https://keras.io/api/keras_nlp/models/gemma) uploaded using the KerasNLP library and can be used with JAX, TensorFlow, and PyTorch backends.
6
+ This model is related to a `CausalLM` task.
7
+
8
+ Model config:
9
+ * **name:** gemma_backbone
10
+ * **trainable:** True
11
+ * **vocabulary_size:** 256000
12
+ * **num_layers:** 26
13
+ * **num_query_heads:** 8
14
+ * **num_key_value_heads:** 4
15
+ * **hidden_dim:** 2304
16
+ * **intermediate_dim:** 18432
17
+ * **head_dim:** 256
18
+ * **layer_norm_epsilon:** 1e-06
19
+ * **dropout:** 0
20
+ * **query_head_dim_normalize:** True
21
+ * **use_post_ffw_norm:** True
22
+ * **use_post_attention_norm:** True
23
+ * **final_logit_soft_cap:** 30.0
24
+ * **attention_logit_soft_cap:** 50.0
25
+ * **sliding_window_size:** 4096
26
+ * **use_sliding_window_attention:** True
27
+
28
+ This model card has been generated automatically and should be completed by the model author. See [Model Cards documentation](https://huggingface.co/docs/hub/model-cards) for more information.
assets/tokenizer/vocabulary.spm ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61a7b147390c64585d6c3543dd6fc636906c9af3865a5548f27f31aee1d4c8e2
3
+ size 4241003
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_nlp.src.models.gemma.gemma_backbone",
3
+ "class_name": "GemmaBackbone",
4
+ "config": {
5
+ "name": "gemma_backbone",
6
+ "trainable": true,
7
+ "vocabulary_size": 256000,
8
+ "num_layers": 26,
9
+ "num_query_heads": 8,
10
+ "num_key_value_heads": 4,
11
+ "hidden_dim": 2304,
12
+ "intermediate_dim": 18432,
13
+ "head_dim": 256,
14
+ "layer_norm_epsilon": 1e-06,
15
+ "dropout": 0,
16
+ "query_head_dim_normalize": true,
17
+ "use_post_ffw_norm": true,
18
+ "use_post_attention_norm": true,
19
+ "final_logit_soft_cap": 30.0,
20
+ "attention_logit_soft_cap": 50.0,
21
+ "sliding_window_size": 4096,
22
+ "use_sliding_window_attention": true
23
+ },
24
+ "registered_name": "keras_nlp>GemmaBackbone"
25
+ }
metadata.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "keras_version": "3.6.0",
3
+ "keras_nlp_version": "0.15.1",
4
+ "parameter_count": 2614341888,
5
+ "date_saved": "2024-10-16@11:32:48"
6
+ }
model.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:737ae74de45de973878ab7e54e55831025e0a4fe14faedcd70f6693b7cdfc8c5
3
+ size 10458345856
preprocessor.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_nlp.src.models.gemma.gemma_causal_lm_preprocessor",
3
+ "class_name": "GemmaCausalLMPreprocessor",
4
+ "config": {
5
+ "name": "gemma_causal_lm_preprocessor_1",
6
+ "trainable": true,
7
+ "dtype": {
8
+ "module": "keras",
9
+ "class_name": "DTypePolicy",
10
+ "config": {
11
+ "name": "float32"
12
+ },
13
+ "registered_name": null
14
+ },
15
+ "tokenizer": {
16
+ "module": "keras_nlp.src.models.gemma.gemma_tokenizer",
17
+ "class_name": "GemmaTokenizer",
18
+ "config": {
19
+ "name": "gemma_tokenizer",
20
+ "trainable": true,
21
+ "dtype": {
22
+ "module": "keras",
23
+ "class_name": "DTypePolicy",
24
+ "config": {
25
+ "name": "int32"
26
+ },
27
+ "registered_name": null
28
+ },
29
+ "proto": null,
30
+ "sequence_length": null,
31
+ "add_bos": false,
32
+ "add_eos": false
33
+ },
34
+ "registered_name": "keras_nlp>GemmaTokenizer"
35
+ },
36
+ "sequence_length": 1024,
37
+ "add_start_token": true,
38
+ "add_end_token": true
39
+ },
40
+ "registered_name": "keras_nlp>GemmaCausalLMPreprocessor"
41
+ }
task.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_nlp.src.models.gemma.gemma_causal_lm",
3
+ "class_name": "GemmaCausalLM",
4
+ "config": {
5
+ "backbone": {
6
+ "module": "keras_nlp.src.models.gemma.gemma_backbone",
7
+ "class_name": "GemmaBackbone",
8
+ "config": {
9
+ "name": "gemma_backbone",
10
+ "trainable": true,
11
+ "vocabulary_size": 256000,
12
+ "num_layers": 26,
13
+ "num_query_heads": 8,
14
+ "num_key_value_heads": 4,
15
+ "hidden_dim": 2304,
16
+ "intermediate_dim": 18432,
17
+ "head_dim": 256,
18
+ "layer_norm_epsilon": 1e-06,
19
+ "dropout": 0,
20
+ "query_head_dim_normalize": true,
21
+ "use_post_ffw_norm": true,
22
+ "use_post_attention_norm": true,
23
+ "final_logit_soft_cap": 30.0,
24
+ "attention_logit_soft_cap": 50.0,
25
+ "sliding_window_size": 4096,
26
+ "use_sliding_window_attention": true
27
+ },
28
+ "registered_name": "keras_nlp>GemmaBackbone"
29
+ },
30
+ "preprocessor": {
31
+ "module": "keras_nlp.src.models.gemma.gemma_causal_lm_preprocessor",
32
+ "class_name": "GemmaCausalLMPreprocessor",
33
+ "config": {
34
+ "name": "gemma_causal_lm_preprocessor_1",
35
+ "trainable": true,
36
+ "dtype": {
37
+ "module": "keras",
38
+ "class_name": "DTypePolicy",
39
+ "config": {
40
+ "name": "float32"
41
+ },
42
+ "registered_name": null
43
+ },
44
+ "tokenizer": {
45
+ "module": "keras_nlp.src.models.gemma.gemma_tokenizer",
46
+ "class_name": "GemmaTokenizer",
47
+ "config": {
48
+ "name": "gemma_tokenizer",
49
+ "trainable": true,
50
+ "dtype": {
51
+ "module": "keras",
52
+ "class_name": "DTypePolicy",
53
+ "config": {
54
+ "name": "int32"
55
+ },
56
+ "registered_name": null
57
+ },
58
+ "proto": null,
59
+ "sequence_length": null,
60
+ "add_bos": false,
61
+ "add_eos": false
62
+ },
63
+ "registered_name": "keras_nlp>GemmaTokenizer"
64
+ },
65
+ "sequence_length": 1024,
66
+ "add_start_token": true,
67
+ "add_end_token": true
68
+ },
69
+ "registered_name": "keras_nlp>GemmaCausalLMPreprocessor"
70
+ },
71
+ "name": "gemma_causal_lm_1"
72
+ },
73
+ "registered_name": "keras_nlp>GemmaCausalLM"
74
+ }
tokenizer.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_nlp.src.models.gemma.gemma_tokenizer",
3
+ "class_name": "GemmaTokenizer",
4
+ "config": {
5
+ "name": "gemma_tokenizer",
6
+ "trainable": true,
7
+ "dtype": {
8
+ "module": "keras",
9
+ "class_name": "DTypePolicy",
10
+ "config": {
11
+ "name": "int32"
12
+ },
13
+ "registered_name": null
14
+ },
15
+ "proto": null,
16
+ "sequence_length": null,
17
+ "add_bos": false,
18
+ "add_eos": false
19
+ },
20
+ "registered_name": "keras_nlp>GemmaTokenizer"
21
+ }