Transformers
Safetensors
nano_deep_reasoner_hypermini
causal-lm
decoder-only
reasoning
deep-reasoning
recurrent-transformer
adaptive-computation
chain-of-thought
adaptive-reasoning
Instructions to use 11-47/Nano.Deep.Reasoner.11m-HyperMini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 11-47/Nano.Deep.Reasoner.11m-HyperMini with Transformers:
# Load model directly from transformers import HyperMiniReasoner model = HyperMiniReasoner.from_pretrained("11-47/Nano.Deep.Reasoner.11m-HyperMini", device_map="auto") - Notebooks
- Google Colab
- Kaggle
RESERVED Session 1 | 20,000 examples | crash-safe reservation
Browse files- README.md +102 -0
- config.json +48 -0
- example_ledger.json +0 -0
- model.safetensors +3 -0
- optimizer.pt +3 -0
- rng_state.pt +3 -0
- token_id_manifest.json +31 -0
- tokenizer.json +0 -0
- tokenizer_config.json +9 -0
- training_state.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: transformers
|
| 4 |
+
tags:
|
| 5 |
+
- causal-lm
|
| 6 |
+
- decoder-only
|
| 7 |
+
- reasoning
|
| 8 |
+
- deep-reasoning
|
| 9 |
+
- recurrent-transformer
|
| 10 |
+
- adaptive-computation
|
| 11 |
+
- chain-of-thought
|
| 12 |
+
- adaptive-reasoning
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Nano.Deep.Reasoner.11m-HyperMini
|
| 16 |
+
|
| 17 |
+
An approximately 11,094,003-parameter decoder-only
|
| 18 |
+
adaptive recurrent reasoning language model.
|
| 19 |
+
|
| 20 |
+
## Architecture
|
| 21 |
+
|
| 22 |
+
- Parameters: 11,094,003
|
| 23 |
+
- Context: 1096
|
| 24 |
+
- Vocabulary: 16,000
|
| 25 |
+
- Hidden size: 240
|
| 26 |
+
- Base Transformer blocks: 6
|
| 27 |
+
- Attention heads: 8
|
| 28 |
+
- Head dimension: 30
|
| 29 |
+
- Intermediate size: 1072
|
| 30 |
+
- Shared recurrent reasoning block
|
| 31 |
+
- Learned latent reasoning memory: 8 tokens
|
| 32 |
+
- Adaptive reasoning depth: 2-16
|
| 33 |
+
- Gated recurrent memory updates
|
| 34 |
+
- Adaptive halting controller
|
| 35 |
+
- Verification head
|
| 36 |
+
- Revision head
|
| 37 |
+
- RoPE
|
| 38 |
+
- Tied input/output embeddings
|
| 39 |
+
- Padding-aware causal attention
|
| 40 |
+
- Explicit padded-state suppression
|
| 41 |
+
|
| 42 |
+
## Reasoning tokens
|
| 43 |
+
|
| 44 |
+
<think>
|
| 45 |
+
</think>
|
| 46 |
+
|
| 47 |
+
<thought>
|
| 48 |
+
</thought>
|
| 49 |
+
|
| 50 |
+
<reasoning>
|
| 51 |
+
</reasoning>
|
| 52 |
+
|
| 53 |
+
<answer>
|
| 54 |
+
</answer>
|
| 55 |
+
|
| 56 |
+
## Training
|
| 57 |
+
|
| 58 |
+
Dataset:
|
| 59 |
+
|
| 60 |
+
Plans11/Organized_PreTrain_1k_Context
|
| 61 |
+
|
| 62 |
+
Each session contains up to 20,000 NEW examples.
|
| 63 |
+
|
| 64 |
+
Examples are protected by SHA-256 hashes.
|
| 65 |
+
|
| 66 |
+
Session reservations are committed before training so a hard
|
| 67 |
+
Kaggle interruption cannot cause the same reserved examples
|
| 68 |
+
to be selected again.
|
| 69 |
+
|
| 70 |
+
## Resume safety
|
| 71 |
+
|
| 72 |
+
The checkpoint contains:
|
| 73 |
+
|
| 74 |
+
- model.safetensors
|
| 75 |
+
- optimizer.pt
|
| 76 |
+
- rng_state.pt
|
| 77 |
+
- training_state.json
|
| 78 |
+
- example_ledger.json
|
| 79 |
+
- tokenizer.json
|
| 80 |
+
- tokenizer_config.json
|
| 81 |
+
- token_id_manifest.json
|
| 82 |
+
- config.json
|
| 83 |
+
|
| 84 |
+
Dataset fingerprint and tokenizer artifact hashes are verified
|
| 85 |
+
before resume.
|
| 86 |
+
|
| 87 |
+
## Current state
|
| 88 |
+
|
| 89 |
+
Completed sessions:
|
| 90 |
+
0
|
| 91 |
+
|
| 92 |
+
Unique examples reserved/trained:
|
| 93 |
+
20,000
|
| 94 |
+
|
| 95 |
+
Unique completed examples:
|
| 96 |
+
0
|
| 97 |
+
|
| 98 |
+
Global optimizer steps:
|
| 99 |
+
0
|
| 100 |
+
|
| 101 |
+
Last session loss:
|
| 102 |
+
None
|
config.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"adaptive_halting": true,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"HyperMiniReasoner"
|
| 5 |
+
],
|
| 6 |
+
"base_layers": 6,
|
| 7 |
+
"context_length": 1096,
|
| 8 |
+
"dataset": "Plans11/Organized_PreTrain_1k_Context",
|
| 9 |
+
"head_dimension": 30,
|
| 10 |
+
"hidden_size": 240,
|
| 11 |
+
"intermediate_size": 1072,
|
| 12 |
+
"max_position_embeddings": 1096,
|
| 13 |
+
"max_reasoning_steps": 16,
|
| 14 |
+
"memory_tokens": 8,
|
| 15 |
+
"min_reasoning_steps": 2,
|
| 16 |
+
"model_name": "Nano.Deep.Reasoner.11m-HyperMini",
|
| 17 |
+
"model_type": "nano_deep_reasoner_hypermini",
|
| 18 |
+
"num_attention_heads": 8,
|
| 19 |
+
"padding_aware_attention": true,
|
| 20 |
+
"padding_query_zeroing": true,
|
| 21 |
+
"parameter_count": 11094003,
|
| 22 |
+
"reasoning_tokens": [
|
| 23 |
+
"<pad>",
|
| 24 |
+
"<bos>",
|
| 25 |
+
"<eos>",
|
| 26 |
+
"<unk>",
|
| 27 |
+
"<think>",
|
| 28 |
+
"</think>",
|
| 29 |
+
"<thought>",
|
| 30 |
+
"</thought>",
|
| 31 |
+
"<reasoning>",
|
| 32 |
+
"</reasoning>",
|
| 33 |
+
"<answer>",
|
| 34 |
+
"</answer>",
|
| 35 |
+
"<question>",
|
| 36 |
+
"</question>",
|
| 37 |
+
"<analysis>",
|
| 38 |
+
"</analysis>",
|
| 39 |
+
"<tool>",
|
| 40 |
+
"</tool>"
|
| 41 |
+
],
|
| 42 |
+
"revision_head": true,
|
| 43 |
+
"rope": true,
|
| 44 |
+
"shared_recurrent_reasoner": true,
|
| 45 |
+
"tie_word_embeddings": true,
|
| 46 |
+
"verification_head": true,
|
| 47 |
+
"vocab_size": 16000
|
| 48 |
+
}
|
example_ledger.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7395c7c3b61893cadfa369d36f78a12f61c3c844856821b5cd88ccf24b9b0971
|
| 3 |
+
size 59742900
|
optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d493a143ff47266f40b916d678f4bce6de34ba3c9592c59d1f92078ab1b7c9de
|
| 3 |
+
size 1721
|
rng_state.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55c3041a7be4d734bf7df211c94ad7620ecd54feff1b53e73c11c884179f2879
|
| 3 |
+
size 10931
|
token_id_manifest.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_sha256": {
|
| 3 |
+
"tokenizer.json": "9619297bcfd3ea8f40d56f991e214d166b7c3bf45aee8cabb908881adeaf6ff9",
|
| 4 |
+
"tokenizer_config.json": "2e82dbc3e20a656b022331e8b616deb37897c4544b5c4489a598793cae589c91"
|
| 5 |
+
},
|
| 6 |
+
"immutable": true,
|
| 7 |
+
"reasoning_token_ids": {
|
| 8 |
+
"</analysis>": 15,
|
| 9 |
+
"</answer>": 11,
|
| 10 |
+
"</question>": 13,
|
| 11 |
+
"</reasoning>": 9,
|
| 12 |
+
"</think>": 5,
|
| 13 |
+
"</thought>": 7,
|
| 14 |
+
"</tool>": 17,
|
| 15 |
+
"<analysis>": 14,
|
| 16 |
+
"<answer>": 10,
|
| 17 |
+
"<question>": 12,
|
| 18 |
+
"<reasoning>": 8,
|
| 19 |
+
"<think>": 4,
|
| 20 |
+
"<thought>": 6,
|
| 21 |
+
"<tool>": 16
|
| 22 |
+
},
|
| 23 |
+
"special_token_ids": {
|
| 24 |
+
"<bos>": 1,
|
| 25 |
+
"<eos>": 2,
|
| 26 |
+
"<pad>": 0,
|
| 27 |
+
"<unk>": 3
|
| 28 |
+
},
|
| 29 |
+
"tokenizer_version": 3,
|
| 30 |
+
"vocab_size": 16000
|
| 31 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<bos>",
|
| 4 |
+
"eos_token": "<eos>",
|
| 5 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 6 |
+
"pad_token": "<pad>",
|
| 7 |
+
"tokenizer_class": "TokenizersBackend",
|
| 8 |
+
"unk_token": "<unk>"
|
| 9 |
+
}
|
training_state.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|