FlameF0X commited on
Commit
87b0808
·
verified ·
1 Parent(s): 7f8ae69

Upload 7 files

Browse files
README.md CHANGED
@@ -1,3 +1,33 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Snowflake-G0-Release
2
+
3
+ This is the initial release of the Snowflake series language models, trained on the DialogMLM-50K dataset with optimized memory usage.
4
+
5
+ ## Model details
6
+ - Architecture: SnowflakeCore
7
+ - Hidden size: 384
8
+ - Number of attention heads: 6
9
+ - Number of layers: 4
10
+ - Feed-forward dimension: 768
11
+ - Maximum sequence length: 384
12
+ - Vocabulary size: 30522
13
+
14
+ ## HuggingFace Transformers Compatibility
15
+ This model is fully compatible with the HuggingFace Transformers library. You can load it using:
16
+
17
+ ```python
18
+ from transformers import AutoConfig, AutoModel, AutoTokenizer
19
+
20
+ tokenizer = AutoTokenizer.from_pretrained("path/to/snowflake_g0_release")
21
+ config = AutoConfig.from_pretrained("path/to/snowflake_g0_release")
22
+ model = AutoModel.from_pretrained("path/to/snowflake_g0_release")
23
+ ```
24
+
25
+ ## Memory Optimization Techniques
26
+ - Mixed precision training
27
+ - Gradient accumulation (4 steps)
28
+ - Fused QKV projection
29
+ - Pre-norm architecture
30
+ - Weight tying between embedding and output layers
31
+ - Half-precision model storage
32
+
33
+ The model weights are stored in both PyTorch (.bin) and safetensors format for improved security, loading efficiency, and compatibility.
config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "SnowflakeCore"
4
+ ],
5
+ "hidden_size": 384,
6
+ "intermediate_size": 768,
7
+ "max_position_embeddings": 384,
8
+ "num_attention_heads": 6,
9
+ "num_hidden_layers": 4,
10
+ "transformers_version": "4.51.3",
11
+ "vocab_size": 30522
12
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71cc42d8dfe014ef49409730a63eb30e085822c768360f8263b9c0428372086d
3
+ size 33274540
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bb569d5315b86cd6109c43c565f3400e3127765ffa7fe7c8ca9f53b757377a1
3
+ size 66559270
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff