Feargal commited on
Commit
726d374
·
verified ·
1 Parent(s): c3cbed9

NRM SOTA Upload: Safetensors + Tokenizer + Config (Step 25000)

Browse files
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - reasoning
5
+ - recursive
6
+ - arc-agi
7
+ - nvyra-x
8
+ ---
9
+
10
+ # NRM: Nvyra Recursive Reasoning Model
11
+
12
+ **Developed by Nvyra X** — Fact-Checking and Disinformation Detection Service
13
+
14
+ ## Model Description
15
+
16
+ NRM (Nvyra Recursive Reasoning Model) is a state-of-the-art reasoning architecture that combines:
17
+
18
+ - **Mixture of Recursions (MoR)** - Weight-tied transformer blocks applied recursively
19
+ - **Multi-Head Latent Attention (MLA)** - 10× KV cache reduction (DeepSeek-V3)
20
+ - **ConvSwiGLU** - Enhanced nonlinearity from URM paper
21
+ - **Aux-Loss-Free MoE** - Bias-based expert load balancing
22
+ - **PonderNet** - Adaptive computation time
23
+ - **Multi-Token Prediction** - 4-ahead planning
24
+
25
+ ## Training
26
+
27
+ - **Budget**: $115 ($25 Nebius + $90 Modal)
28
+ - **Hardware**: H200 NVLink GPUs
29
+ - **Framework**: PyTorch 2.9.1, Flash Attention 3, CUDA 12.8
30
+ - **Dataset**: 300K+ reasoning examples (Sudoku, ARC, Logic, Object Tracking)
31
+
32
+ ## Performance
33
+
34
+ - **Validation Accuracy**: 99.71%
35
+ - **Validation Loss**: 0.0216
36
+ - **Step**: 25000
37
+
38
+ ## Usage
39
+
40
+ ```python
41
+ # This model uses a custom architecture - see repository for full code
42
+ from safetensors.torch import load_file
43
+ weights = load_file("model.safetensors")
44
+ ```
45
+
46
+ ## Citation
47
+
48
+ If you use this model, please cite:
49
+
50
+ ```
51
+ @misc{nrm2025,
52
+ title={NRM: Nvyra Recursive Reasoning Model},
53
+ author={Nvyra X Research Team},
54
+ year={2025},
55
+ url={https://huggingface.co/Feargal/nvyra-x-reasoning-please}
56
+ }
57
+ ```
58
+
59
+ ## References
60
+
61
+ - [Universal Reasoning Model (URM)](https://arxiv.org/abs/2512.14693)
62
+ - [DeepSeek-V3](https://arxiv.org/abs/2401.02954)
63
+ - [PonderNet](https://arxiv.org/abs/2107.05407)
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "NRM"
4
+ ],
5
+ "model_type": "nrm",
6
+ "dim": 2048,
7
+ "n_layers": 1,
8
+ "n_heads": 16,
9
+ "n_mem_tokens": 64,
10
+ "vocab_size": 32000,
11
+ "inner_loops": 8,
12
+ "outer_loops": 16,
13
+ "truncation_loops": 2,
14
+ "moe_experts": 8,
15
+ "experts_per_token": 2,
16
+ "num_shared_experts": 2,
17
+ "use_mla": true,
18
+ "kv_latent_dim": 512,
19
+ "rope_head_dim": 64,
20
+ "rope_base": 10000.0,
21
+ "mtp_num_heads": 4,
22
+ "use_conv_swiglu": true,
23
+ "p_exit": 0.1,
24
+ "tokenizer_class": "LlamaTokenizer"
25
+ }
ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5da0881eac75bcb16cdaf4d0e7bcb0d2daef169e8c62205342cfa4358a52098d
3
+ size 1174807974
model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95f6351281a8961cfb644d3b710c300baa771d34e28454966bd6068ba0eaec2b
3
+ size 1174813193
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0237eeabfb31162b3583576e3f758a16924b966adc1e85e2f2a4d43cc3d45d66
3
+ size 1830160676
optimizer_0.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1af4d526dff07747e2000bf4c8dfe7f651418ace17c2c0464e1a25bf533947ea
3
+ size 2349076825
special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "unk_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
tokenizer_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "additional_special_tokens": [],
32
+ "bos_token": "<s>",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "extra_special_tokens": {},
36
+ "legacy": false,
37
+ "model_max_length": 1000000000000000019884624838656,
38
+ "pad_token": null,
39
+ "sp_model_kwargs": {},
40
+ "spaces_between_special_tokens": false,
41
+ "tokenizer_class": "LlamaTokenizer",
42
+ "unk_token": "<unk>",
43
+ "use_default_system_prompt": false
44
+ }
train_state.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"step": 25000, "val_acc": 0.9971077647478286, "val_loss": 0.021596687794636502}