spitfire4794 commited on
Commit
4c203d0
·
verified ·
1 Parent(s): 8f6b4a8

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +85 -0
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - text-generation
6
+ - causal-lm
7
+ - custom-architecture
8
+ - slm
9
+ - small-language-model
10
+ license: mit
11
+ ---
12
+
13
+ # Blaze (48.3M)
14
+
15
+ Blaze is a 48.3M parameter causal language model developed by SurjoLabs. It scores **15.45 on the Intelligence Index**, placing #1 in the sub-50M parameter category on the Open SLM Leaderboard.
16
+
17
+ The model uses XSA (orthogonal value-subtraction) attention with recurrent layer sharing, achieving an effective computational depth of 26 layers while storing only 14 physical layers.
18
+
19
+ ---
20
+
21
+ ## Architecture Specifications
22
+
23
+ | Parameter | Value |
24
+ | :--- | :--- |
25
+ | Total Parameters | 48,251,136 |
26
+ | Physical Layers | 14 (1 prelude + 12 recurrent + 1 coda) |
27
+ | Recurrent Passes | 2 (effective depth: 26 layers) |
28
+ | Hidden Size | 512 |
29
+ | Intermediate Size | 1536 |
30
+ | Attention Heads | 8 Query, 4 Key-Value (2:1 GQA) |
31
+ | Head Dimension | 64 |
32
+ | Vocabulary Size | 8,192 (tied embeddings) |
33
+ | Context Length | 1,024 tokens |
34
+
35
+ ---
36
+
37
+ ## Training & Checkpoint Selection
38
+
39
+ * **Total Tokens:** ~20.97B tokens (20,000 steps at 2^20 = 1,048,576 tokens/step)
40
+ * **Schedule:** WSD (Warmup-Stable-Decay) learning rate scheduler
41
+ * **Selected Checkpoint:** Checkpoint 19,500 achieved peak performance across benchmarks and is the official set of weights released in this repository.
42
+
43
+ ---
44
+
45
+ ## Benchmark Results
46
+
47
+ Evaluated 0-shot using normalized accuracy (acc_norm):
48
+
49
+ | Benchmark | Score |
50
+ | :--- | :--- |
51
+ | **PIQA** | 62.51% |
52
+ | **ARC-Easy** | 41.84% |
53
+ | **ArithMark-3.0** | 37.80% |
54
+ | **HellaSwag** | 31.84% |
55
+ | **ARC-Challenge** | 24.91% |
56
+ | **Intelligence Index** | **15.45** |
57
+
58
+ ---
59
+
60
+ ## Usage
61
+
62
+ ```python
63
+ import torch
64
+ from transformers import AutoModelForCausalLM, AutoTokenizer
65
+
66
+ model_id = "SurjoLabs/Blaze"
67
+
68
+ tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
69
+ model = AutoModelForCausalLM.from_pretrained(
70
+ model_id,
71
+ trust_remote_code=True,
72
+ torch_dtype=torch.bfloat16,
73
+ ).cuda()
74
+
75
+ prompt = "The speed of light is"
76
+ inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
77
+ outputs = model.generate(**inputs, max_new_tokens=32)
78
+
79
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
80
+ ```
81
+
82
+ ---
83
+
84
+ ## License
85
+ MIT