shivash commited on
Commit
701cfd9
Β·
verified Β·
1 Parent(s): c9760d5

Upload Enhanced Hybrid Transformer 416M weights πŸš€

Browse files
README.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Enhanced Hybrid Transformer 416M
2
+
3
+ πŸš€ **416,417,792 parameter** transformer with modern optimizations.
4
+
5
+ ## Features
6
+ - **24 layers** Γ— **16 heads**
7
+ - **GQA-4** (Grouped Query Attention)
8
+ - **SwiGLU** activation
9
+ - **RMSNorm** normalization
10
+ - **RoPE** positional embeddings
11
+
12
+ ## Contents
13
+ - `pytorch_model.bin` - Model weights
14
+ - `config.json` - Model configuration
15
+ - `tokenizer.json` - Tokenizer files
16
+ - `README.md` - This file
17
+
18
+ ## Usage
19
+ Load with the original repository code for full functionality.
20
+
21
+ ---
22
+ πŸš€ Generated with [Claude Code](https://claude.ai/code)
config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "return_dict": true,
3
+ "output_hidden_states": false,
4
+ "torchscript": false,
5
+ "dtype": null,
6
+ "pruned_heads": {},
7
+ "tie_word_embeddings": true,
8
+ "chunk_size_feed_forward": 0,
9
+ "is_encoder_decoder": false,
10
+ "is_decoder": false,
11
+ "cross_attention_hidden_size": null,
12
+ "add_cross_attention": false,
13
+ "tie_encoder_decoder": false,
14
+ "architectures": [
15
+ "EnhancedHybridTransformerForCausalLM"
16
+ ],
17
+ "finetuning_task": null,
18
+ "id2label": {
19
+ "0": "LABEL_0",
20
+ "1": "LABEL_1"
21
+ },
22
+ "label2id": {
23
+ "LABEL_0": 0,
24
+ "LABEL_1": 1
25
+ },
26
+ "task_specific_params": null,
27
+ "problem_type": null,
28
+ "tokenizer_class": null,
29
+ "prefix": null,
30
+ "bos_token_id": 50256,
31
+ "pad_token_id": 50256,
32
+ "eos_token_id": 50256,
33
+ "sep_token_id": null,
34
+ "decoder_start_token_id": null,
35
+ "max_length": 20,
36
+ "min_length": 0,
37
+ "do_sample": false,
38
+ "early_stopping": false,
39
+ "num_beams": 1,
40
+ "num_beam_groups": 1,
41
+ "diversity_penalty": 0.0,
42
+ "temperature": 1.0,
43
+ "top_k": 50,
44
+ "top_p": 1.0,
45
+ "typical_p": 1.0,
46
+ "repetition_penalty": 1.0,
47
+ "length_penalty": 1.0,
48
+ "no_repeat_ngram_size": 0,
49
+ "encoder_no_repeat_ngram_size": 0,
50
+ "bad_words_ids": null,
51
+ "num_return_sequences": 1,
52
+ "output_scores": false,
53
+ "return_dict_in_generate": false,
54
+ "forced_bos_token_id": null,
55
+ "forced_eos_token_id": null,
56
+ "remove_invalid_values": false,
57
+ "exponential_decay_length_penalty": null,
58
+ "suppress_tokens": null,
59
+ "begin_suppress_tokens": null,
60
+ "_name_or_path": "",
61
+ "transformers_version": "4.56.2",
62
+ "tf_legacy_loss": false,
63
+ "use_bfloat16": false,
64
+ "vocab_size": 50257,
65
+ "hidden_size": 1024,
66
+ "num_attention_heads": 16,
67
+ "num_hidden_layers": 24,
68
+ "intermediate_size": 4096,
69
+ "max_position_embeddings": 4096,
70
+ "kv_groups": 4,
71
+ "rope_theta": 10000.0,
72
+ "rope_scaling": null,
73
+ "use_flash_attn": false,
74
+ "use_swiglu": true,
75
+ "use_rms_norm": true,
76
+ "hidden_dropout_prob": 0.1,
77
+ "attention_probs_dropout_prob": 0.1,
78
+ "layer_norm_eps": 1e-06,
79
+ "initializer_range": 0.02,
80
+ "gradient_checkpointing": false,
81
+ "use_cache": true,
82
+ "unk_token_id": 50256,
83
+ "model_type": "enhanced_hybrid_transformer",
84
+ "output_attentions": false
85
+ }
hybrid_tokenizer_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_eos_token": true,
4
+ "optimize_for_generation": true,
5
+ "tokenizer_class": "HybridTokenizer"
6
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac82c8bbf4e183e670ca802aa8a8e00115678e1268d2c73c7ef8f72e81b67f26
3
+ size 1665760075
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|endoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<|endoftext|>",
17
+ "unk_token": {
18
+ "content": "<|endoftext|>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_eos_token": true,
4
+ "add_prefix_space": false,
5
+ "added_tokens_decoder": {
6
+ "50256": {
7
+ "content": "<|endoftext|>",
8
+ "lstrip": false,
9
+ "normalized": true,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ }
14
+ },
15
+ "bos_token": "<|endoftext|>",
16
+ "clean_up_tokenization_spaces": false,
17
+ "eos_token": "<|endoftext|>",
18
+ "errors": "replace",
19
+ "extra_special_tokens": {},
20
+ "model_max_length": 4096,
21
+ "pad_token": "<|endoftext|>",
22
+ "tokenizer_class": "HybridTokenizer",
23
+ "unk_token": "<|endoftext|>"
24
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff