Upload completed Sol Nano 2.9M model trained on 5B tokens
Browse filesSol Lite SolForCausalLM with TN-Gram, 1024-token vocabulary, 512 context, and full zero-shot Axiomic index results.
- README.md +122 -0
- config.json +39 -0
- evaluation/README.md +17 -0
- evaluation/summary.json +33 -0
- model.safetensors +3 -0
- modeling_sol_lite.py +474 -0
- run.json +85 -0
- tokenizer.json +1 -0
- training_metadata.json +9 -0
README.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
library_name: pytorch
|
| 5 |
+
tags:
|
| 6 |
+
- causal-lm
|
| 7 |
+
- sol-nano
|
| 8 |
+
- sol-lite
|
| 9 |
+
- tn-gram
|
| 10 |
+
- math
|
| 11 |
+
- pretraining
|
| 12 |
+
- custom-code
|
| 13 |
+
datasets:
|
| 14 |
+
- HuggingFaceFW/fineweb-edu
|
| 15 |
+
- HuggingFaceTB/finemath
|
| 16 |
+
- open-web-math/open-web-math
|
| 17 |
+
- HuggingFaceTB/smollm-corpus
|
| 18 |
+
- nomic-ai/cornstack-python-v1
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# Sol Nano
|
| 22 |
+
|
| 23 |
+
Sol Nano is a **2,895,188-parameter base language model trained on 5,000,000,000 tokens**, using the Sol Lite `SolForCausalLM` architecture. This repository contains the completed September 29, 2026 checkpoint.
|
| 24 |
+
|
| 25 |
+
## Architecture
|
| 26 |
+
|
| 27 |
+
| Setting | Value |
|
| 28 |
+
|---|---:|
|
| 29 |
+
| Total parameters | 2,895,188 |
|
| 30 |
+
| TN-Gram parameters | 209,748 |
|
| 31 |
+
| Vocabulary | 1,024 |
|
| 32 |
+
| Training context | 512 tokens |
|
| 33 |
+
| Hidden width | 128 |
|
| 34 |
+
| Stored transformer blocks | 10 |
|
| 35 |
+
| Effective block applications | 14 |
|
| 36 |
+
| Query heads / KV heads | 4 / 2 |
|
| 37 |
+
| FFN width | 536 |
|
| 38 |
+
|
| 39 |
+
The model uses tied token embeddings and output weights, RoPE, QK normalization, loop conditioning, and factorized causal 2–5-gram TN-Gram memory. Engram and XSA are disabled in this checkpoint. The default attention implementation is compiled Triton FlexAttention with causal grouped-query attention; it does not use PyTorch SDPA.
|
| 40 |
+
|
| 41 |
+
The exact configuration is in `config.json`. The custom PyTorch implementation is in `modeling_sol_lite.py`.
|
| 42 |
+
|
| 43 |
+
## Training
|
| 44 |
+
|
| 45 |
+
- **Tokens:** 5,000,000,000.
|
| 46 |
+
- **Optimizer updates:** 19,074.
|
| 47 |
+
- **Optimizer:** fused AdamW; BF16 training with FP32 optimizer states.
|
| 48 |
+
- **Peak LR:** 0.001.
|
| 49 |
+
- **Schedule:** WSD; first 2% of optimizer steps warm up linearly, LR remains at its peak through 90%, final 10% decay linearly to zero.
|
| 50 |
+
- **Batch:** 512 sequences of 512 tokens per full optimizer update.
|
| 51 |
+
- **Hardware:** one NVIDIA RTX PRO 6000 Blackwell Server Edition.
|
| 52 |
+
- **Runtime:** PyTorch 2.11.0+cu130 and Triton 3.6.0.
|
| 53 |
+
|
| 54 |
+
CPU workers streamed and tokenized the data while the GPU trained. Every optimizer update contained the complete scheduled source mixture, shuffled together.
|
| 55 |
+
|
| 56 |
+
| Phase | FineWeb-Edu | FineMath | OpenWebMath | Generated arithmetic | Procedural | Physical science | Code |
|
| 57 |
+
|---|---:|---:|---:|---:|---:|---:|---:|
|
| 58 |
+
| Opening, approximately 0–1.333B tokens | 65% | 7.5% | 4.5% | 3% | 12% | 4% | 4% |
|
| 59 |
+
| Main phase, approximately 1.4–4.5B tokens | 45% | 20% | 12% | 8% | 8% | 3% | 4% |
|
| 60 |
+
| Final 10% of optimizer steps | 30% | 30% | 20% | 10% | 4% | 2% | 4% |
|
| 61 |
+
|
| 62 |
+
A roughly 66.85M-token ramp connects the opening and main mixtures. The final phase uses FineWeb-Edu score ≥3.5 and FineMath score ≥4.5. Procedural text comes from a filtered Cosmopedia-v2 stream; physical-science text comes from a topic-filtered FineWeb-Edu stream; code uses CoRNStack Python query/code pairs. The exact run contract and phase boundaries are in `run.json`.
|
| 63 |
+
|
| 64 |
+
## Evaluation
|
| 65 |
+
|
| 66 |
+
Full zero-shot benchmark sets were scored with LM Evaluation Harness 0.4.12 and the official ArithMark-3.0 dataset. Evaluation used float32, a 512-token context, and compiled Triton FlexAttention with PyTorch 2.14.0+cu130. No candidate request required context truncation.
|
| 67 |
+
|
| 68 |
+
| Benchmark | Normalized accuracy | Examples |
|
| 69 |
+
|---|---:|---:|
|
| 70 |
+
| HellaSwag | 28.40% | 10,042 |
|
| 71 |
+
| ARC-Easy | 32.07% | 2,376 |
|
| 72 |
+
| ARC-Challenge | 21.16% | 1,172 |
|
| 73 |
+
| PIQA | 53.92% | 1,838 |
|
| 74 |
+
| ArithMark-3.0 | 33.80% | 1,000 |
|
| 75 |
+
|
| 76 |
+
**Axiomic Labs Open SLM Intelligence Index: 6.0684 / 100.** This is a local evaluation following the [published methodology](https://huggingface.co/spaces/AxiomicLabs/Open_SLM_Leaderboard/blob/main/index.html), and has not been independently verified by Axiomic Labs. Full-precision scores, runtime versions, checkpoint identity, and scoring metadata are in `evaluation/summary.json`.
|
| 77 |
+
|
| 78 |
+
## Load the model
|
| 79 |
+
|
| 80 |
+
This is a custom `torch.nn.Module`. Load it with the supplied implementation. A CUDA PyTorch environment with Triton and FlexAttention support is required for the default backend; the other dependencies are `huggingface_hub`, `tokenizers`, and `safetensors`.
|
| 81 |
+
|
| 82 |
+
```python
|
| 83 |
+
import os
|
| 84 |
+
import sys
|
| 85 |
+
from pathlib import Path
|
| 86 |
+
|
| 87 |
+
import torch
|
| 88 |
+
from huggingface_hub import snapshot_download
|
| 89 |
+
from safetensors.torch import load_file
|
| 90 |
+
from tokenizers import Tokenizer
|
| 91 |
+
|
| 92 |
+
os.environ["SOL_NANO_ATTENTION"] = "triton"
|
| 93 |
+
model_dir = Path(snapshot_download("solintellegence/sol-nano"))
|
| 94 |
+
sys.path.insert(0, str(model_dir))
|
| 95 |
+
|
| 96 |
+
from modeling_sol_lite import SolForCausalLM, variant_config
|
| 97 |
+
|
| 98 |
+
model = SolForCausalLM(variant_config("sol_nano_2p9m_tn_gram"))
|
| 99 |
+
model.load_state_dict(load_file(str(model_dir / "model.safetensors")), strict=True)
|
| 100 |
+
model = model.cuda().eval()
|
| 101 |
+
tokenizer = Tokenizer.from_file(str(model_dir / "tokenizer.json"))
|
| 102 |
+
|
| 103 |
+
prompt = "The sum of 12 and 7 is"
|
| 104 |
+
ids = tokenizer.encode(prompt, add_special_tokens=False).ids
|
| 105 |
+
inputs = torch.tensor([ids], dtype=torch.long, device="cuda")
|
| 106 |
+
with torch.inference_mode():
|
| 107 |
+
logits = model(inputs) # [batch, sequence, vocabulary]
|
| 108 |
+
next_id = logits[0, -1].argmax().item()
|
| 109 |
+
print(tokenizer.decode([next_id]))
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
Access to this private repository requires an authorized Hugging Face account. `snapshot_download` uses your locally configured Hub credentials.
|
| 113 |
+
|
| 114 |
+
## Files and limitations
|
| 115 |
+
|
| 116 |
+
`model.safetensors` stores the completed model weights as float32 (11,591,920 bytes). The repository also contains the matching tokenizer, custom architecture implementation, configuration, and training metadata. It contains model weights rather than an optimizer-resume checkpoint.
|
| 117 |
+
|
| 118 |
+
Sol Nano is a very small base language model. It has not been instruction-tuned, and its mathematical answers and factual claims can be incorrect. The reported benchmark scores measure multiple-choice likelihood accuracy, not reliable free-form problem solving.
|
| 119 |
+
|
| 120 |
+
Tokenizer SHA-256: `72a97c4c592c991733fcc6ad687734ce51e1ba25b0f7c2faf611ac30edc50231`.
|
| 121 |
+
|
| 122 |
+
Original completed training checkpoint SHA-256: `682584ee247f1dd9d9c2fd702a79e5713f5d9c2f61b78e8fe7fd08ec7054db5e`.
|
config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_name": "Sol Nano",
|
| 3 |
+
"model_type": "sol_nano",
|
| 4 |
+
"base_architecture": "Sol Lite",
|
| 5 |
+
"architecture_class": "SolForCausalLM",
|
| 6 |
+
"variant": "sol_nano_2p9m_tn_gram",
|
| 7 |
+
"parameter_budget": 2900000,
|
| 8 |
+
"expected_parameters": 2895188,
|
| 9 |
+
"vocab_size": 1024,
|
| 10 |
+
"width": 128,
|
| 11 |
+
"heads": 4,
|
| 12 |
+
"kv_heads": 2,
|
| 13 |
+
"stored_blocks": 10,
|
| 14 |
+
"ffn_width": 536,
|
| 15 |
+
"recurrent_start": 1,
|
| 16 |
+
"recurrent_blocks": 4,
|
| 17 |
+
"recurrent_passes": 2,
|
| 18 |
+
"effective_block_applications": 14,
|
| 19 |
+
"engram_entries": 0,
|
| 20 |
+
"use_engram": false,
|
| 21 |
+
"use_tn_gram": true,
|
| 22 |
+
"tn_rank": 10,
|
| 23 |
+
"tn_buckets": 4950,
|
| 24 |
+
"use_qk_norm": true,
|
| 25 |
+
"use_loop_conditioning": true,
|
| 26 |
+
"use_xsa": false,
|
| 27 |
+
"max_position_embeddings": 512,
|
| 28 |
+
"rope_theta": 20000.0,
|
| 29 |
+
"tie_word_embeddings": true,
|
| 30 |
+
"parameter_ledger": {
|
| 31 |
+
"token_embedding_and_tied_head": 131072,
|
| 32 |
+
"ten_transformer_blocks": 2552960,
|
| 33 |
+
"loop_embeddings_and_gates": 1280,
|
| 34 |
+
"final_norm": 128,
|
| 35 |
+
"tn_gram": 209748
|
| 36 |
+
},
|
| 37 |
+
"tokenizer_path": "models/Sol-Nano/tokenizer.json",
|
| 38 |
+
"tokenizer_sha256": "72a97c4c592c991733fcc6ad687734ce51e1ba25b0f7c2faf611ac30edc50231"
|
| 39 |
+
}
|
evaluation/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Evaluation summary
|
| 2 |
+
|
| 3 |
+
`summary.json` records the completed Sol Nano checkpoint's full zero-shot evaluation on HellaSwag, ARC-Easy, ARC-Challenge, PIQA, and ArithMark-3.0.
|
| 4 |
+
|
| 5 |
+
The Axiomic Labs Open SLM Intelligence Index is calculated with:
|
| 6 |
+
|
| 7 |
+
`N(s,c) = 100 * (s-c) / (100-c)`
|
| 8 |
+
|
| 9 |
+
`ARC = (ARC-Easy + ARC-Challenge) / 2`
|
| 10 |
+
|
| 11 |
+
`Index = [N(HellaSwag,25) + N(ARC,25) + N(PIQA,50) + 0.65*N(ArithMark-3,25)] / 3.65`
|
| 12 |
+
|
| 13 |
+
Result: **6.068393579554266 / 100**.
|
| 14 |
+
|
| 15 |
+
This is a local result, not an independently verified leaderboard submission. The original checkpoint path in the summary identifies the Molab training environment; model weights in this repository are exported from that checkpoint.
|
| 16 |
+
|
| 17 |
+
References: [Axiomic index methodology](https://huggingface.co/spaces/AxiomicLabs/Open_SLM_Leaderboard/blob/main/index.html), [official ArithMark-3.0 dataset and evaluator](https://huggingface.co/datasets/AxiomicLabs/Arithmark-3.0).
|
evaluation/summary.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Sol Nano",
|
| 3 |
+
"parameters": 2895188,
|
| 4 |
+
"tokens_seen": 5000000000,
|
| 5 |
+
"checkpoint_sha256": "682584ee247f1dd9d9c2fd702a79e5713f5d9c2f61b78e8fe7fd08ec7054db5e",
|
| 6 |
+
"tokenizer_sha256": "72a97c4c592c991733fcc6ad687734ce51e1ba25b0f7c2faf611ac30edc50231",
|
| 7 |
+
"dtype": "float32",
|
| 8 |
+
"attention": "Triton compiled FlexAttention, no SDPA",
|
| 9 |
+
"max_length": 512,
|
| 10 |
+
"scored_requests": 62032,
|
| 11 |
+
"requests_requiring_context_truncation": 0,
|
| 12 |
+
"continuations_longer_than_context": 0,
|
| 13 |
+
"torch_version": "2.14.0+cu130",
|
| 14 |
+
"lm_eval_version": "0.4.12",
|
| 15 |
+
"sample_counts": {
|
| 16 |
+
"hellaswag": 10042,
|
| 17 |
+
"arc_easy": 2376,
|
| 18 |
+
"arc_challenge": 1172,
|
| 19 |
+
"piqa": 1838
|
| 20 |
+
},
|
| 21 |
+
"updates": 19074,
|
| 22 |
+
"checkpoint": "/marimo/sol_nano_5b_mixed_live/checkpoint.pt",
|
| 23 |
+
"scores_percent": {
|
| 24 |
+
"hellaswag": 28.40071698864768,
|
| 25 |
+
"arc_easy": 32.07070707070707,
|
| 26 |
+
"arc_challenge": 21.160409556313994,
|
| 27 |
+
"piqa": 53.91730141458106,
|
| 28 |
+
"arithmark3": 33.8
|
| 29 |
+
},
|
| 30 |
+
"open_slm_intelligence_index": 6.068393579554266,
|
| 31 |
+
"protocol": "zero-shot normalized accuracy; LM-evaluation-harness 0.4.12 plus official ArithMark-3.0",
|
| 32 |
+
"elapsed_seconds": 106.02102780342102
|
| 33 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8152509fc9ebfc98026a07d3054ee60da53a9860dfb2b3ccaa0af1834b9f97e
|
| 3 |
+
size 11591920
|
modeling_sol_lite.py
ADDED
|
@@ -0,0 +1,474 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Sol Lite source architecture and parameter-audited Sol Nano variant."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
from dataclasses import dataclass
|
| 6 |
+
import json
|
| 7 |
+
import math
|
| 8 |
+
import os
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
|
| 11 |
+
import torch
|
| 12 |
+
from torch import nn
|
| 13 |
+
import torch.nn.functional as F
|
| 14 |
+
|
| 15 |
+
try:
|
| 16 |
+
from flash_attn.cute import flash_attn_func as _flash_attn4_func
|
| 17 |
+
except ImportError:
|
| 18 |
+
_flash_attn4_func = None
|
| 19 |
+
|
| 20 |
+
ATTENTION_BACKEND = os.environ.get("SOL_NANO_ATTENTION", "triton")
|
| 21 |
+
if ATTENTION_BACKEND == "triton":
|
| 22 |
+
from torch.nn.attention.flex_attention import flex_attention as _flex_attention
|
| 23 |
+
|
| 24 |
+
def _causal_score(score, batch, head, query_index, key_index):
|
| 25 |
+
return torch.where(query_index >= key_index, score, -float("inf"))
|
| 26 |
+
|
| 27 |
+
@torch.compile(backend="inductor", fullgraph=True, dynamic=False)
|
| 28 |
+
def _triton_causal_attention(q, k, v):
|
| 29 |
+
return _flex_attention(q, k, v, score_mod=_causal_score, enable_gqa=True)
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
@torch.compiler.disable
|
| 33 |
+
def fused_causal_attention(q: torch.Tensor, k: torch.Tensor, v: torch.Tensor) -> torch.Tensor:
|
| 34 |
+
"""Fused causal GQA on (batch, sequence, heads, head_dim), with no SDPA."""
|
| 35 |
+
if ATTENTION_BACKEND == "triton":
|
| 36 |
+
result = _triton_causal_attention(
|
| 37 |
+
q.transpose(1, 2).contiguous(), k.transpose(1, 2).contiguous(),
|
| 38 |
+
v.transpose(1, 2).contiguous(),
|
| 39 |
+
)
|
| 40 |
+
return result.transpose(1, 2)
|
| 41 |
+
if _flash_attn4_func is None:
|
| 42 |
+
raise RuntimeError(
|
| 43 |
+
"Sol Nano requires flash-attn-4; install the pinned FA4 runtime dependency"
|
| 44 |
+
)
|
| 45 |
+
# SM120's current CuTe packed-GQA LSE path does not compile; unpacked GQA
|
| 46 |
+
# preserves the same attention math and shared K/V projection parameters.
|
| 47 |
+
result = _flash_attn4_func(q, k, v, causal=True, pack_gqa=False)
|
| 48 |
+
# FA4 currently returns (output, logsumexp), even when LSE is not requested.
|
| 49 |
+
return result[0] if isinstance(result, tuple) else result
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
@dataclass(frozen=True)
|
| 53 |
+
class SolLiteConfig:
|
| 54 |
+
vocab_size: int = 2048
|
| 55 |
+
width: int = 128
|
| 56 |
+
heads: int = 4
|
| 57 |
+
kv_heads: int = 2
|
| 58 |
+
stored_blocks: int = 10
|
| 59 |
+
ffn_width: int = 531
|
| 60 |
+
recurrent_start: int = 1
|
| 61 |
+
recurrent_blocks: int = 4
|
| 62 |
+
recurrent_passes: int = 2
|
| 63 |
+
engram_entries: int = 768
|
| 64 |
+
use_engram: bool = True
|
| 65 |
+
use_tn_gram: bool = False
|
| 66 |
+
tn_rank: int = 10
|
| 67 |
+
tn_buckets: int = 4950
|
| 68 |
+
use_qk_norm: bool = True
|
| 69 |
+
use_loop_conditioning: bool = True
|
| 70 |
+
use_xsa: bool = True
|
| 71 |
+
max_position_embeddings: int = 2048
|
| 72 |
+
rope_theta: float = 20000.0
|
| 73 |
+
|
| 74 |
+
@property
|
| 75 |
+
def head_dim(self) -> int:
|
| 76 |
+
return self.width // self.heads
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
class RMSNorm(nn.Module):
|
| 80 |
+
def __init__(self, width: int, eps: float = 1e-6):
|
| 81 |
+
super().__init__()
|
| 82 |
+
self.weight = nn.Parameter(torch.ones(width))
|
| 83 |
+
self.eps = eps
|
| 84 |
+
|
| 85 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 86 |
+
return x * torch.rsqrt(x.float().square().mean(-1, keepdim=True) + self.eps).to(x.dtype) * self.weight.to(x.dtype)
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
class CenteredUnitNorm(nn.Module):
|
| 90 |
+
def __init__(self, width: int, eps: float = 1e-5):
|
| 91 |
+
super().__init__()
|
| 92 |
+
self.scale = nn.Parameter(torch.ones(width))
|
| 93 |
+
self.shift = nn.Parameter(torch.zeros(width))
|
| 94 |
+
self.eps = eps
|
| 95 |
+
|
| 96 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 97 |
+
centered = x - x.mean(-1, keepdim=True)
|
| 98 |
+
return centered * torch.rsqrt(centered.square().mean(-1, keepdim=True) + self.eps) * self.scale + self.shift
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
def deterministic_coordinates(length: int, width: int, base: float, device, dtype):
|
| 102 |
+
half = (width + 1) // 2
|
| 103 |
+
positions = torch.arange(length, device=device, dtype=torch.float32)[:, None]
|
| 104 |
+
frequencies = torch.exp(torch.arange(half, device=device, dtype=torch.float32) * (-math.log(base) / max(half - 1, 1)))
|
| 105 |
+
result = torch.cat((torch.sin(positions * frequencies), torch.cos(positions * frequencies)), dim=-1)[:, :width]
|
| 106 |
+
return result.to(dtype)
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
def apply_rope(x: torch.Tensor, theta: float) -> torch.Tensor:
|
| 110 |
+
_, _, length, dim = x.shape
|
| 111 |
+
inv = theta ** (-torch.arange(0, dim, 2, device=x.device, dtype=torch.float32) / dim)
|
| 112 |
+
angles = torch.arange(length, device=x.device, dtype=torch.float32)[:, None] * inv[None, :]
|
| 113 |
+
cos = angles.cos().to(x.dtype)[None, None, :, :]
|
| 114 |
+
sin = angles.sin().to(x.dtype)[None, None, :, :]
|
| 115 |
+
even, odd = x[..., ::2], x[..., 1::2]
|
| 116 |
+
return torch.stack((even * cos - odd * sin, even * sin + odd * cos), dim=-1).flatten(-2)
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
class EngramLite(nn.Module):
|
| 120 |
+
"""Collision-tolerant bigram/trigram memory with a contextual read gate."""
|
| 121 |
+
|
| 122 |
+
def __init__(self, cfg: SolLiteConfig):
|
| 123 |
+
super().__init__()
|
| 124 |
+
self.entries = cfg.engram_entries
|
| 125 |
+
self.tables = nn.ModuleList([nn.Embedding(cfg.engram_entries, cfg.width) for _ in range(2)])
|
| 126 |
+
self.gate = nn.Linear(cfg.width, 2, bias=True)
|
| 127 |
+
self.scale = nn.Parameter(torch.tensor(0.1))
|
| 128 |
+
|
| 129 |
+
def _hash(self, ids: torch.Tensor, order: int, prime: int) -> torch.Tensor:
|
| 130 |
+
padded = F.pad(ids, (order - 1, 0), value=0)
|
| 131 |
+
value = torch.zeros_like(ids)
|
| 132 |
+
for offset in range(order):
|
| 133 |
+
value = (value * prime + padded[:, offset : offset + ids.shape[1]]) % self.entries
|
| 134 |
+
return value
|
| 135 |
+
|
| 136 |
+
def forward(self, ids: torch.Tensor, hidden: torch.Tensor) -> torch.Tensor:
|
| 137 |
+
bigram = self.tables[0](self._hash(ids, 2, 10007))
|
| 138 |
+
trigram = self.tables[1](self._hash(ids, 3, 10009))
|
| 139 |
+
weights = torch.sigmoid(self.gate(hidden))
|
| 140 |
+
memory = weights[..., :1] * bigram + weights[..., 1:] * trigram
|
| 141 |
+
return hidden + self.scale.tanh() * memory
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
class TNGramLite(nn.Module):
|
| 145 |
+
"""Factorized causal 2--5-gram lookup with fixed-size hash tables."""
|
| 146 |
+
|
| 147 |
+
def __init__(self, cfg: SolLiteConfig):
|
| 148 |
+
super().__init__()
|
| 149 |
+
self.rank = cfg.tn_rank
|
| 150 |
+
self.buckets = cfg.tn_buckets
|
| 151 |
+
self.token_factors = nn.Parameter(torch.empty(cfg.vocab_size, self.rank))
|
| 152 |
+
self.hash_tables = nn.Parameter(torch.empty(4, self.buckets, self.rank))
|
| 153 |
+
self.order_factors = nn.Parameter(torch.ones(4, self.rank))
|
| 154 |
+
self.rank_to_hidden = nn.Parameter(torch.empty(cfg.width, self.rank))
|
| 155 |
+
self.output_bias = nn.Parameter(torch.zeros(cfg.width))
|
| 156 |
+
self.gates = nn.Parameter(torch.full((4,), -2.0))
|
| 157 |
+
self.order_mix = nn.Parameter(torch.zeros(4, self.rank))
|
| 158 |
+
self.context_controls = nn.Parameter(torch.zeros(16))
|
| 159 |
+
nn.init.normal_(self.token_factors, mean=1.0, std=0.02)
|
| 160 |
+
nn.init.normal_(self.hash_tables, std=0.02)
|
| 161 |
+
nn.init.normal_(self.rank_to_hidden, std=0.02)
|
| 162 |
+
nn.init.normal_(self.order_mix, std=0.01)
|
| 163 |
+
|
| 164 |
+
def forward(self, ids: torch.Tensor, hidden: torch.Tensor) -> torch.Tensor:
|
| 165 |
+
batch, length = ids.shape
|
| 166 |
+
positions = torch.arange(length, device=ids.device)
|
| 167 |
+
result = hidden + self.output_bias.to(hidden.dtype)
|
| 168 |
+
for order_index, order in enumerate(range(2, 6)):
|
| 169 |
+
hashed = torch.zeros_like(ids)
|
| 170 |
+
factors = torch.ones(
|
| 171 |
+
batch, length, self.rank, device=ids.device, dtype=torch.float32
|
| 172 |
+
)
|
| 173 |
+
for lag in range(order):
|
| 174 |
+
if lag == 0:
|
| 175 |
+
shifted = ids
|
| 176 |
+
else:
|
| 177 |
+
shifted = F.pad(ids[:, :-lag], (lag, 0), value=0)
|
| 178 |
+
hashed = (hashed * (131 + order_index * 6) + shifted) % self.buckets
|
| 179 |
+
factors = factors * self.token_factors[shifted].float()
|
| 180 |
+
|
| 181 |
+
rank = factors * self.hash_tables[order_index, hashed].float()
|
| 182 |
+
control = self.context_controls[order_index * 4 : (order_index + 1) * 4]
|
| 183 |
+
rank = rank * self.order_factors[order_index]
|
| 184 |
+
rank = rank + self.order_mix[order_index] * control.tanh().mean()
|
| 185 |
+
contribution = F.linear(rank, self.rank_to_hidden.float()).to(hidden.dtype)
|
| 186 |
+
valid = (positions >= order - 1).to(hidden.dtype)[None, :, None]
|
| 187 |
+
result = result + contribution * torch.sigmoid(self.gates[order_index]) * valid
|
| 188 |
+
return result
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
class CausalGQAAttention(nn.Module):
|
| 192 |
+
def __init__(self, cfg: SolLiteConfig):
|
| 193 |
+
super().__init__()
|
| 194 |
+
self.cfg = cfg
|
| 195 |
+
self.q = nn.Linear(cfg.width, cfg.heads * cfg.head_dim, bias=False)
|
| 196 |
+
self.k = nn.Linear(cfg.width, cfg.kv_heads * cfg.head_dim, bias=False)
|
| 197 |
+
self.v = nn.Linear(cfg.width, cfg.kv_heads * cfg.head_dim, bias=False)
|
| 198 |
+
self.o = nn.Linear(cfg.heads * cfg.head_dim, cfg.width, bias=False)
|
| 199 |
+
self.q_norm = RMSNorm(cfg.head_dim) if cfg.use_qk_norm else nn.Identity()
|
| 200 |
+
self.k_norm = RMSNorm(cfg.head_dim) if cfg.use_qk_norm else nn.Identity()
|
| 201 |
+
|
| 202 |
+
def _attend(self, x: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor]:
|
| 203 |
+
batch, length, _ = x.shape
|
| 204 |
+
q = self.q(x).view(batch, length, self.cfg.heads, self.cfg.head_dim).transpose(1, 2)
|
| 205 |
+
k = self.k(x).view(batch, length, self.cfg.kv_heads, self.cfg.head_dim).transpose(1, 2)
|
| 206 |
+
v = self.v(x).view(batch, length, self.cfg.kv_heads, self.cfg.head_dim).transpose(1, 2)
|
| 207 |
+
q = apply_rope(self.q_norm(q), self.cfg.rope_theta)
|
| 208 |
+
k = apply_rope(self.k_norm(k), self.cfg.rope_theta)
|
| 209 |
+
# Both fused backends keep the grouped-query projection parameters.
|
| 210 |
+
attended = fused_causal_attention(
|
| 211 |
+
q.transpose(1, 2).contiguous(),
|
| 212 |
+
k.transpose(1, 2).contiguous(),
|
| 213 |
+
v.transpose(1, 2).contiguous(),
|
| 214 |
+
)
|
| 215 |
+
return attended, v.transpose(1, 2).contiguous()
|
| 216 |
+
|
| 217 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 218 |
+
attended, _ = self._attend(x)
|
| 219 |
+
batch, length, _ = x.shape
|
| 220 |
+
return self.o(attended.contiguous().view(batch, length, -1))
|
| 221 |
+
|
| 222 |
+
|
| 223 |
+
class XSAAttention(CausalGQAAttention):
|
| 224 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 225 |
+
attended, v = self._attend(x)
|
| 226 |
+
batch, length, _ = x.shape
|
| 227 |
+
groups = self.cfg.heads // self.cfg.kv_heads
|
| 228 |
+
if groups > 1:
|
| 229 |
+
v = v.repeat_interleave(groups, dim=2)
|
| 230 |
+
unit_v = F.normalize(v, p=2, dim=-1, eps=1e-6)
|
| 231 |
+
attended = attended - (attended * unit_v).sum(-1, keepdim=True) * unit_v
|
| 232 |
+
return self.o(attended.contiguous().view(batch, length, -1))
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
class Block(nn.Module):
|
| 236 |
+
def __init__(self, cfg: SolLiteConfig):
|
| 237 |
+
super().__init__()
|
| 238 |
+
self.attn_norm = RMSNorm(cfg.width)
|
| 239 |
+
self.attn = XSAAttention(cfg) if cfg.use_xsa else CausalGQAAttention(cfg)
|
| 240 |
+
self.ffn_norm = RMSNorm(cfg.width)
|
| 241 |
+
self.gate = nn.Linear(cfg.width, cfg.ffn_width, bias=False)
|
| 242 |
+
self.up = nn.Linear(cfg.width, cfg.ffn_width, bias=False)
|
| 243 |
+
self.down = nn.Linear(cfg.ffn_width, cfg.width, bias=False)
|
| 244 |
+
|
| 245 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 246 |
+
x = x + self.attn(self.attn_norm(x))
|
| 247 |
+
normed = self.ffn_norm(x)
|
| 248 |
+
return x + self.down(F.silu(self.gate(normed)) * self.up(normed))
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
class ReleasedXSAAttention(nn.Module):
|
| 252 |
+
def __init__(self, width: int = 128, heads: int = 4):
|
| 253 |
+
super().__init__()
|
| 254 |
+
self.width, self.heads, self.head_dim = width, heads, width // heads
|
| 255 |
+
self.q = nn.Linear(width, width, bias=False)
|
| 256 |
+
self.k = nn.Linear(width, width, bias=False)
|
| 257 |
+
self.v = nn.Linear(width, width, bias=False)
|
| 258 |
+
self.o = nn.Linear(width, width, bias=False)
|
| 259 |
+
|
| 260 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 261 |
+
batch, length, _ = x.shape
|
| 262 |
+
split = lambda value: value.view(batch, length, self.heads, self.head_dim)
|
| 263 |
+
q, k, v = split(self.q(x)), split(self.k(x)), split(self.v(x))
|
| 264 |
+
attended = flash_attention4_causal(q.contiguous(), k.contiguous(), v.contiguous())
|
| 265 |
+
coefficient = (attended * v).sum(-1, keepdim=True) / v.square().sum(-1, keepdim=True).clamp_min(1e-6)
|
| 266 |
+
attended = attended - coefficient * v
|
| 267 |
+
return self.o(attended.contiguous().view(batch, length, self.width))
|
| 268 |
+
|
| 269 |
+
|
| 270 |
+
class ReleasedBlock(nn.Module):
|
| 271 |
+
def __init__(self, width: int = 128, ffn_width: int = 540):
|
| 272 |
+
super().__init__()
|
| 273 |
+
self.attn_norm = CenteredUnitNorm(width)
|
| 274 |
+
self.attn = ReleasedXSAAttention(width)
|
| 275 |
+
self.ffn_norm = CenteredUnitNorm(width)
|
| 276 |
+
self.expand = nn.Linear(width, 2 * ffn_width, bias=False)
|
| 277 |
+
self.contract = nn.Linear(ffn_width, width, bias=False)
|
| 278 |
+
|
| 279 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 280 |
+
x = x + self.attn(self.attn_norm(x))
|
| 281 |
+
content, gate = self.expand(self.ffn_norm(x)).chunk(2, dim=-1)
|
| 282 |
+
return x + self.contract(F.silu(content) * torch.sigmoid(gate))
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
class ReleasedSolLiteControl(nn.Module):
|
| 286 |
+
"""Faithful PyTorch control for the released 2,996,480-parameter graph."""
|
| 287 |
+
|
| 288 |
+
def __init__(self):
|
| 289 |
+
super().__init__()
|
| 290 |
+
self.config = SolLiteConfig(kv_heads=4, ffn_width=540, engram_entries=0, use_engram=False, use_qk_norm=False, use_loop_conditioning=False)
|
| 291 |
+
self.embedding = nn.Embedding(2048, 128)
|
| 292 |
+
self.blocks = nn.ModuleList([ReleasedBlock() for _ in range(10)])
|
| 293 |
+
self.norm = CenteredUnitNorm(128)
|
| 294 |
+
|
| 295 |
+
def forward(self, ids: torch.Tensor) -> torch.Tensor:
|
| 296 |
+
x = self.embedding(ids) + deterministic_coordinates(ids.shape[1], 128, 20000.0, ids.device, self.embedding.weight.dtype)[None]
|
| 297 |
+
x = self.blocks[0](x)
|
| 298 |
+
for _ in range(2):
|
| 299 |
+
for block in self.blocks[1:5]:
|
| 300 |
+
x = block(x)
|
| 301 |
+
for block in self.blocks[5:]:
|
| 302 |
+
x = block(x)
|
| 303 |
+
return F.linear(self.norm(x), self.embedding.weight)
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
class SolForCausalLM(nn.Module):
|
| 307 |
+
"""Sol Lite with optional EngramLite or factorized TNGramLite memory."""
|
| 308 |
+
|
| 309 |
+
def __init__(self, cfg: SolLiteConfig = SolLiteConfig()):
|
| 310 |
+
super().__init__()
|
| 311 |
+
self.config = cfg
|
| 312 |
+
if cfg.use_engram and cfg.use_tn_gram:
|
| 313 |
+
raise ValueError("select either EngramLite or TNGramLite, not both")
|
| 314 |
+
self.embedding = nn.Embedding(cfg.vocab_size, cfg.width)
|
| 315 |
+
self.engram = EngramLite(cfg) if cfg.use_engram else None
|
| 316 |
+
self.tn_gram = TNGramLite(cfg) if cfg.use_tn_gram else None
|
| 317 |
+
self.blocks = nn.ModuleList([Block(cfg) for _ in range(cfg.stored_blocks)])
|
| 318 |
+
self.loop_embeddings = nn.Parameter(torch.zeros(cfg.recurrent_passes, cfg.width))
|
| 319 |
+
self.loop_gates = nn.Parameter(torch.zeros(cfg.recurrent_passes, cfg.recurrent_blocks, cfg.width))
|
| 320 |
+
self.norm = RMSNorm(cfg.width)
|
| 321 |
+
nn.init.normal_(self.loop_embeddings, std=0.01)
|
| 322 |
+
|
| 323 |
+
def forward(self, ids: torch.Tensor) -> torch.Tensor:
|
| 324 |
+
x = self.embedding(ids)
|
| 325 |
+
if self.engram is not None:
|
| 326 |
+
x = self.engram(ids, x)
|
| 327 |
+
elif self.tn_gram is not None:
|
| 328 |
+
x = self.tn_gram(ids, x)
|
| 329 |
+
start = self.config.recurrent_start
|
| 330 |
+
stop = start + self.config.recurrent_blocks
|
| 331 |
+
for block in self.blocks[:start]:
|
| 332 |
+
x = block(x)
|
| 333 |
+
for pass_index in range(self.config.recurrent_passes):
|
| 334 |
+
if self.config.use_loop_conditioning:
|
| 335 |
+
x = x + self.loop_embeddings[pass_index]
|
| 336 |
+
for local_index, block in enumerate(self.blocks[start:stop]):
|
| 337 |
+
if self.config.use_loop_conditioning:
|
| 338 |
+
proposal = block(x)
|
| 339 |
+
gate = torch.sigmoid(self.loop_gates[pass_index, local_index])[None, None, :]
|
| 340 |
+
x = x + gate * (proposal - x)
|
| 341 |
+
else:
|
| 342 |
+
x = block(x)
|
| 343 |
+
for block in self.blocks[stop:]:
|
| 344 |
+
x = block(x)
|
| 345 |
+
return F.linear(self.norm(x), self.embedding.weight)
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
def parameter_count(model: nn.Module) -> int:
|
| 349 |
+
return sum(parameter.numel() for parameter in model.parameters())
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
def variant_config(name: str) -> SolLiteConfig:
|
| 353 |
+
if name == "sol_nano_2p9m_tn_gram":
|
| 354 |
+
return SolLiteConfig(
|
| 355 |
+
vocab_size=1024,
|
| 356 |
+
width=128,
|
| 357 |
+
heads=4,
|
| 358 |
+
kv_heads=2,
|
| 359 |
+
stored_blocks=10,
|
| 360 |
+
ffn_width=536,
|
| 361 |
+
recurrent_start=1,
|
| 362 |
+
recurrent_blocks=4,
|
| 363 |
+
recurrent_passes=2,
|
| 364 |
+
engram_entries=0,
|
| 365 |
+
use_engram=False,
|
| 366 |
+
use_tn_gram=True,
|
| 367 |
+
tn_rank=10,
|
| 368 |
+
tn_buckets=4950,
|
| 369 |
+
use_qk_norm=True,
|
| 370 |
+
use_loop_conditioning=True,
|
| 371 |
+
use_xsa=False,
|
| 372 |
+
max_position_embeddings=512,
|
| 373 |
+
rope_theta=20000.0,
|
| 374 |
+
)
|
| 375 |
+
if name == "control":
|
| 376 |
+
return SolLiteConfig(kv_heads=4, ffn_width=540, engram_entries=0, use_engram=False, use_qk_norm=False, use_loop_conditioning=False)
|
| 377 |
+
if name == "gqa":
|
| 378 |
+
return SolLiteConfig(kv_heads=2, ffn_width=582, engram_entries=0, use_engram=False, use_qk_norm=False, use_loop_conditioning=False)
|
| 379 |
+
if name == "gqa_qknorm":
|
| 380 |
+
return SolLiteConfig(kv_heads=2, ffn_width=582, engram_entries=0, use_engram=False, use_qk_norm=True, use_loop_conditioning=False)
|
| 381 |
+
if name == "loop_conditioned":
|
| 382 |
+
return SolLiteConfig(kv_heads=2, ffn_width=582, engram_entries=0, use_engram=False, use_qk_norm=True, use_loop_conditioning=True)
|
| 383 |
+
if name == "full":
|
| 384 |
+
return SolLiteConfig()
|
| 385 |
+
raise ValueError(f"unknown architecture variant: {name}")
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
def build_variant(name: str) -> nn.Module:
|
| 389 |
+
if name == "released_control":
|
| 390 |
+
return ReleasedSolLiteControl()
|
| 391 |
+
return SolForCausalLM(variant_config(name))
|
| 392 |
+
|
| 393 |
+
|
| 394 |
+
def architecture_audit() -> dict[str, int | float | bool]:
|
| 395 |
+
results = {}
|
| 396 |
+
for name in ("released_control", "control", "gqa", "gqa_qknorm", "loop_conditioned", "full", "sol_nano_2p9m_tn_gram"):
|
| 397 |
+
model = build_variant(name)
|
| 398 |
+
cfg = model.config
|
| 399 |
+
count = parameter_count(model)
|
| 400 |
+
if count >= 3_000_000:
|
| 401 |
+
raise AssertionError(f"{name} exceeds the parameter cap: {count:,}")
|
| 402 |
+
ids = torch.arange(64).remainder(cfg.vocab_size).view(1, -1)
|
| 403 |
+
with torch.no_grad():
|
| 404 |
+
logits = model(ids)
|
| 405 |
+
changed = ids.clone()
|
| 406 |
+
changed[:, 32:] = (changed[:, 32:] + 17) % cfg.vocab_size
|
| 407 |
+
changed_logits = model(changed)
|
| 408 |
+
prefix_error = float((logits[:, :32] - changed_logits[:, :32]).abs().max())
|
| 409 |
+
if logits.shape != (1, 64, cfg.vocab_size) or prefix_error > 1e-5:
|
| 410 |
+
raise AssertionError((name, logits.shape, prefix_error))
|
| 411 |
+
results[name] = {"parameters": count, "causal_prefix_max_error": prefix_error}
|
| 412 |
+
return results
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
def load_model(model_dir: str | Path, device: str | torch.device = "cpu"):
|
| 416 |
+
"""Load the released safetensors checkpoint and tokenizer."""
|
| 417 |
+
from safetensors.torch import load_file
|
| 418 |
+
from transformers import AutoTokenizer
|
| 419 |
+
|
| 420 |
+
model_dir = Path(model_dir)
|
| 421 |
+
raw = json.loads((model_dir / "config.json").read_text())
|
| 422 |
+
fields = SolLiteConfig.__dataclass_fields__
|
| 423 |
+
cfg = SolLiteConfig(**{key: value for key, value in raw.items() if key in fields})
|
| 424 |
+
model = SolForCausalLM(cfg)
|
| 425 |
+
model.load_state_dict(load_file(model_dir / "model.safetensors"), strict=True)
|
| 426 |
+
model.to(device).eval()
|
| 427 |
+
tokenizer = AutoTokenizer.from_pretrained(model_dir)
|
| 428 |
+
return model, tokenizer
|
| 429 |
+
|
| 430 |
+
|
| 431 |
+
@torch.inference_mode()
|
| 432 |
+
def generate(
|
| 433 |
+
model: SolForCausalLM,
|
| 434 |
+
tokenizer,
|
| 435 |
+
prompt: str,
|
| 436 |
+
max_new_tokens: int = 64,
|
| 437 |
+
temperature: float = 0.8,
|
| 438 |
+
top_p: float = 0.95,
|
| 439 |
+
repetition_penalty: float = 1.1,
|
| 440 |
+
seed: int = 7,
|
| 441 |
+
) -> str:
|
| 442 |
+
"""Simple deterministic-seed nucleus sampler using full-prefix recomputation."""
|
| 443 |
+
device = model.embedding.weight.device
|
| 444 |
+
ids = tokenizer.encode(prompt, add_special_tokens=False)
|
| 445 |
+
generator = torch.Generator(device=device).manual_seed(seed)
|
| 446 |
+
for _ in range(max_new_tokens):
|
| 447 |
+
context = torch.tensor([ids[-model.config.max_position_embeddings :]], device=device)
|
| 448 |
+
logits = model(context)[0, -1].float()
|
| 449 |
+
if repetition_penalty != 1.0:
|
| 450 |
+
seen = torch.tensor(sorted(set(ids)), device=device)
|
| 451 |
+
logits[seen] = torch.where(
|
| 452 |
+
logits[seen] < 0,
|
| 453 |
+
logits[seen] * repetition_penalty,
|
| 454 |
+
logits[seen] / repetition_penalty,
|
| 455 |
+
)
|
| 456 |
+
if temperature <= 0:
|
| 457 |
+
next_id = int(logits.argmax())
|
| 458 |
+
else:
|
| 459 |
+
sorted_logits, sorted_ids = (logits / temperature).sort(descending=True)
|
| 460 |
+
probabilities = sorted_logits.softmax(-1)
|
| 461 |
+
keep = probabilities.cumsum(-1) <= top_p
|
| 462 |
+
keep[0] = True
|
| 463 |
+
filtered = probabilities * keep
|
| 464 |
+
choice = torch.multinomial(filtered / filtered.sum(), 1, generator=generator)
|
| 465 |
+
next_id = int(sorted_ids[choice])
|
| 466 |
+
ids.append(next_id)
|
| 467 |
+
if next_id == tokenizer.eos_token_id:
|
| 468 |
+
break
|
| 469 |
+
return tokenizer.decode(ids, skip_special_tokens=True)
|
| 470 |
+
|
| 471 |
+
|
| 472 |
+
if __name__ == "__main__":
|
| 473 |
+
import json
|
| 474 |
+
print("SOL_LITE_AUDIT=" + json.dumps(architecture_audit(), sort_keys=True))
|
run.json
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architecture_class": "SolForCausalLM",
|
| 3 |
+
"attention": "Triton fused causal GQA via compiled FlexAttention; XSA and SDPA disabled",
|
| 4 |
+
"attention_backend": "triton",
|
| 5 |
+
"base_architecture": "Sol Lite",
|
| 6 |
+
"batch_mixing": "all scheduled source quotas are assembled in every optimizer update, then shuffled together",
|
| 7 |
+
"compile": true,
|
| 8 |
+
"compile_mode": "reduce-overhead",
|
| 9 |
+
"compiler_backend": "TorchInductor/Triton",
|
| 10 |
+
"cpu_threads": 16,
|
| 11 |
+
"data_sources": {
|
| 12 |
+
"arithmetic_generated": "on-the-fly deterministic arithmetic with worked answers",
|
| 13 |
+
"code": "CoRNStack Python query/code pairs",
|
| 14 |
+
"finemath_4p5plus": "FineMath score >=4.5 heldout split",
|
| 15 |
+
"finemath_4plus": "FineMath 4+ base split",
|
| 16 |
+
"fineweb_edu_3p5plus": "FineWeb-Edu score >=3.5 heldout split",
|
| 17 |
+
"general": "FineWeb-Edu score >=3; stable heldout split; science topics routed separately",
|
| 18 |
+
"openwebmath": "OpenWebMath",
|
| 19 |
+
"physical_science": "FineWeb-Edu score >=3 with science-topic filter",
|
| 20 |
+
"procedural": "Cosmopedia-v2 instructional/procedural subset"
|
| 21 |
+
},
|
| 22 |
+
"decay_start_update_index": 17166,
|
| 23 |
+
"decay_updates": 1908,
|
| 24 |
+
"fineweb_edu_source_pool": "sample-10BT; direct bounded Parquet streaming",
|
| 25 |
+
"flash_attention_4_version": null,
|
| 26 |
+
"gpu": "NVIDIA RTX PRO 6000 Blackwell Server Edition",
|
| 27 |
+
"gpu_compute_capability": [
|
| 28 |
+
12,
|
| 29 |
+
0
|
| 30 |
+
],
|
| 31 |
+
"gpu_memory_bytes": 101975851008,
|
| 32 |
+
"gradient_accumulation": 1,
|
| 33 |
+
"input_pipeline": "JIT streaming from public dataset sources; CPU fetch/filter/tokenization overlaps GPU training",
|
| 34 |
+
"microbatch_sequences": 512,
|
| 35 |
+
"mix": {
|
| 36 |
+
"corrective": {
|
| 37 |
+
"arithmetic_generated": 8.0,
|
| 38 |
+
"code": 4.0,
|
| 39 |
+
"finemath_4plus": 20.0,
|
| 40 |
+
"general": 45.0,
|
| 41 |
+
"openwebmath": 12.0,
|
| 42 |
+
"physical_science": 3.0,
|
| 43 |
+
"procedural": 8.0
|
| 44 |
+
},
|
| 45 |
+
"high_quality": {
|
| 46 |
+
"arithmetic_generated": 10.0,
|
| 47 |
+
"code": 4.0,
|
| 48 |
+
"finemath_4p5plus": 30.0,
|
| 49 |
+
"fineweb_edu_3p5plus": 30.0,
|
| 50 |
+
"openwebmath": 20.0,
|
| 51 |
+
"physical_science": 2.0,
|
| 52 |
+
"procedural": 4.0
|
| 53 |
+
},
|
| 54 |
+
"legacy": {
|
| 55 |
+
"arithmetic_generated": 3.0,
|
| 56 |
+
"code": 4.0,
|
| 57 |
+
"finemath_4plus": 7.5,
|
| 58 |
+
"general": 65.0,
|
| 59 |
+
"openwebmath": 4.5,
|
| 60 |
+
"physical_science": 4.0,
|
| 61 |
+
"procedural": 12.0
|
| 62 |
+
}
|
| 63 |
+
},
|
| 64 |
+
"mix_boundaries_tokens": {
|
| 65 |
+
"corrective_ramp_end": 1400111104,
|
| 66 |
+
"high_quality_start": 4499963904,
|
| 67 |
+
"legacy_end": 1333264384
|
| 68 |
+
},
|
| 69 |
+
"model": "Sol Nano",
|
| 70 |
+
"optimizer": "PyTorch fused AdamW",
|
| 71 |
+
"parameters": 2895188,
|
| 72 |
+
"peak_learning_rate": 0.001,
|
| 73 |
+
"schedule": "2% linear warmup, stable through 90%, final 10% linear decay to zero",
|
| 74 |
+
"seed": 20260929,
|
| 75 |
+
"sequence_length": 512,
|
| 76 |
+
"sequences_per_update": 512,
|
| 77 |
+
"target_tokens": 5000000000,
|
| 78 |
+
"tokenizer_sha256": "72a97c4c592c991733fcc6ad687734ce51e1ba25b0f7c2faf611ac30edc50231",
|
| 79 |
+
"tokens_per_update": 262144,
|
| 80 |
+
"total_updates": 19074,
|
| 81 |
+
"triton_version": "3.6.0",
|
| 82 |
+
"use_xsa": false,
|
| 83 |
+
"variant": "sol_nano_2p9m_tn_gram",
|
| 84 |
+
"warmup_updates": 382
|
| 85 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":"1.0","truncation":null,"padding":null,"added_tokens":[{"id":0,"content":"<|unk|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":1,"content":"<|pad|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":2,"content":"<|bos|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":3,"content":"<|eos|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":4,"content":"<|mask|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":5,"content":"<|im_start|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":6,"content":"<|im_end|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":7,"content":"<|system|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":8,"content":"<|user|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":9,"content":"<|assistant|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":10,"content":"<think>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":11,"content":"</think>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":12,"content":"<|begin_of_thought|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":13,"content":"<|end_of_thought|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":14,"content":"<answer>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":15,"content":"</answer>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":16,"content":"<|step|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":17,"content":"<|/step|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":18,"content":"<context>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":19,"content":"</context>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":20,"content":"<|doc_start|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":21,"content":"<|doc_end|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":22,"content":"<|search|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":23,"content":"<|search_results|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":24,"content":"<|tool_list_start|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":25,"content":"<|tool_list_end|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":26,"content":"<tools>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":27,"content":"</tools>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":28,"content":"<|tool_call_start|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":29,"content":"<|tool_call_end|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":30,"content":"<|tool_call|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":31,"content":"<|/tool_call|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":32,"content":"<|tool_response_start|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":33,"content":"<|tool_response_end|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":34,"content":"<|tool_response|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":35,"content":"<|/tool_response|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":36,"content":"<|image|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":37,"content":"<|image_pad|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":38,"content":"<|image_placeholder|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":39,"content":"<|audio|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":40,"content":"<|audio_pad|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":41,"content":"<|audio_placeholder|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":42,"content":"<|video|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":43,"content":"<|video_pad|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":44,"content":"<|fim_prefix|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":45,"content":"<|fim_suffix|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":46,"content":"<|fim_middle|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":47,"content":"<|repo_name|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":48,"content":"<|file_separator|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":49,"content":"<|reward|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":50,"content":"<|reserved_0|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":51,"content":"<|reserved_1|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":52,"content":"<|reserved_2|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":53,"content":"<|reserved_3|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":54,"content":"<|reserved_4|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":55,"content":"<|reserved_5|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":56,"content":"<|reserved_6|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":57,"content":"<|reserved_7|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":58,"content":"<|reserved_8|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":59,"content":"<|reserved_9|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":60,"content":"<|reserved_10|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":61,"content":"<|reserved_11|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":62,"content":"<|reserved_12|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":63,"content":"<|reserved_13|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":64,"content":"<|reserved_14|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":65,"content":"<|reserved_15|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":66,"content":"<|reserved_16|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":67,"content":"<|reserved_17|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":68,"content":"<|reserved_18|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true},{"id":69,"content":"<|reserved_19|>","single_word":false,"lstrip":false,"rstrip":false,"normalized":false,"special":true}],"normalizer":null,"pre_tokenizer":{"type":"Sequence","pretokenizers":[{"type":"Split","pattern":{"Regex":"(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+"},"behavior":"Isolated","invert":false},{"type":"ByteLevel","add_prefix_space":false,"trim_offsets":true,"use_regex":false}]},"post_processor":{"type":"ByteLevel","add_prefix_space":true,"trim_offsets":false,"use_regex":true},"decoder":{"type":"ByteLevel","add_prefix_space":true,"trim_offsets":true,"use_regex":true},"model":{"type":"BPE","dropout":null,"unk_token":"<|unk|>","continuing_subword_prefix":null,"end_of_word_suffix":null,"fuse_unk":false,"byte_fallback":false,"ignore_merges":false,"vocab":{"<|unk|>":0,"<|pad|>":1,"<|bos|>":2,"<|eos|>":3,"<|mask|>":4,"<|im_start|>":5,"<|im_end|>":6,"<|system|>":7,"<|user|>":8,"<|assistant|>":9,"<think>":10,"</think>":11,"<|begin_of_thought|>":12,"<|end_of_thought|>":13,"<answer>":14,"</answer>":15,"<|step|>":16,"<|/step|>":17,"<context>":18,"</context>":19,"<|doc_start|>":20,"<|doc_end|>":21,"<|search|>":22,"<|search_results|>":23,"<|tool_list_start|>":24,"<|tool_list_end|>":25,"<tools>":26,"</tools>":27,"<|tool_call_start|>":28,"<|tool_call_end|>":29,"<|tool_call|>":30,"<|/tool_call|>":31,"<|tool_response_start|>":32,"<|tool_response_end|>":33,"<|tool_response|>":34,"<|/tool_response|>":35,"<|image|>":36,"<|image_pad|>":37,"<|image_placeholder|>":38,"<|audio|>":39,"<|audio_pad|>":40,"<|audio_placeholder|>":41,"<|video|>":42,"<|video_pad|>":43,"<|fim_prefix|>":44,"<|fim_suffix|>":45,"<|fim_middle|>":46,"<|repo_name|>":47,"<|file_separator|>":48,"<|reward|>":49,"<|reserved_0|>":50,"<|reserved_1|>":51,"<|reserved_2|>":52,"<|reserved_3|>":53,"<|reserved_4|>":54,"<|reserved_5|>":55,"<|reserved_6|>":56,"<|reserved_7|>":57,"<|reserved_8|>":58,"<|reserved_9|>":59,"<|reserved_10|>":60,"<|reserved_11|>":61,"<|reserved_12|>":62,"<|reserved_13|>":63,"<|reserved_14|>":64,"<|reserved_15|>":65,"<|reserved_16|>":66,"<|reserved_17|>":67,"<|reserved_18|>":68,"<|reserved_19|>":69,"!":70,"\"":71,"#":72,"$":73,"%":74,"&":75,"'":76,"(":77,")":78,"*":79,"+":80,",":81,"-":82,".":83,"/":84,"0":85,"1":86,"2":87,"3":88,"4":89,"5":90,"6":91,"7":92,"8":93,"9":94,":":95,";":96,"<":97,"=":98,">":99,"?":100,"@":101,"A":102,"B":103,"C":104,"D":105,"E":106,"F":107,"G":108,"H":109,"I":110,"J":111,"K":112,"L":113,"M":114,"N":115,"O":116,"P":117,"Q":118,"R":119,"S":120,"T":121,"U":122,"V":123,"W":124,"X":125,"Y":126,"Z":127,"[":128,"\\":129,"]":130,"^":131,"_":132,"`":133,"a":134,"b":135,"c":136,"d":137,"e":138,"f":139,"g":140,"h":141,"i":142,"j":143,"k":144,"l":145,"m":146,"n":147,"o":148,"p":149,"q":150,"r":151,"s":152,"t":153,"u":154,"v":155,"w":156,"x":157,"y":158,"z":159,"{":160,"|":161,"}":162,"~":163,"¡":164,"¢":165,"£":166,"¤":167,"¥":168,"¦":169,"§":170,"¨":171,"©":172,"ª":173,"«":174,"¬":175,"®":176,"¯":177,"°":178,"±":179,"²":180,"³":181,"´":182,"µ":183,"¶":184,"·":185,"¸":186,"¹":187,"º":188,"»":189,"¼":190,"½":191,"¾":192,"¿":193,"À":194,"Á":195,"Â":196,"Ã":197,"Ä":198,"Å":199,"Æ":200,"Ç":201,"È":202,"É":203,"Ê":204,"Ë":205,"Ì":206,"Í":207,"Î":208,"Ï":209,"Ð":210,"Ñ":211,"Ò":212,"Ó":213,"Ô":214,"Õ":215,"Ö":216,"×":217,"Ø":218,"Ù":219,"Ú":220,"Û":221,"Ü":222,"Ý":223,"Þ":224,"ß":225,"à":226,"á":227,"â":228,"ã":229,"ä":230,"å":231,"æ":232,"ç":233,"è":234,"é":235,"ê":236,"ë":237,"ì":238,"í":239,"î":240,"ï":241,"ð":242,"ñ":243,"ò":244,"ó":245,"ô":246,"õ":247,"ö":248,"÷":249,"ø":250,"ù":251,"ú":252,"û":253,"ü":254,"ý":255,"þ":256,"ÿ":257,"Ā":258,"ā":259,"Ă":260,"ă":261,"Ą":262,"ą":263,"Ć":264,"ć":265,"Ĉ":266,"ĉ":267,"Ċ":268,"ċ":269,"Č":270,"č":271,"Ď":272,"ď":273,"Đ":274,"đ":275,"Ē":276,"ē":277,"Ĕ":278,"ĕ":279,"Ė":280,"ė":281,"Ę":282,"ę":283,"Ě":284,"ě":285,"Ĝ":286,"ĝ":287,"Ğ":288,"ğ":289,"Ġ":290,"ġ":291,"Ģ":292,"ģ":293,"Ĥ":294,"ĥ":295,"Ħ":296,"ħ":297,"Ĩ":298,"ĩ":299,"Ī":300,"ī":301,"Ĭ":302,"ĭ":303,"Į":304,"į":305,"İ":306,"ı":307,"IJ":308,"ij":309,"Ĵ":310,"ĵ":311,"Ķ":312,"ķ":313,"ĸ":314,"Ĺ":315,"ĺ":316,"Ļ":317,"ļ":318,"Ľ":319,"ľ":320,"Ŀ":321,"ŀ":322,"Ł":323,"ł":324,"Ń":325,"Ġt":326,"Ġa":327,"he":328,"in":329,"re":330,"Ġthe":331,"on":332,"er":333,"Ġs":334,"at":335,"Ġo":336,"en":337,"Ġw":338,"Ġc":339,"is":340,"es":341,"it":342,"nd":343,"or":344,"Ġp":345,"Ġb":346,"al":347,"Ġf":348,"an":349,"ed":350,"ing":351,"Ġof":352,"ou":353,"Ġm":354,"Ġin":355,"ar":356,"Ġto":357,"Ġd":358,"Ġand":359,"ic":360,"ion":361,"le":362,"Ġth":363,"as":364,"ro":365,"ĠĠ":366,"Ġh":367,"ent":368,"Ġe":369,"ct":370,"Ġn":371,"il":372,"Ġl":373,"om":374,"ve":375,"Ġre":376,"st":377,".Ċ":378,"Ġis":379,"ly":380,"Ġbe":381,"Ġg":382,"se":383,"ĠT":384,"âĢ":385,"ut":386,"ot":387,"et":388,"im":389,"ol":390,"id":391,"ow":392,"ra":393,"ĠI":394,"ce":395,"ation":396,"Ġy":397,"Ġthat":398,"ig":399,"Ġfor":400,"Ġu":401,"Ġon":402,"ĠA":403,"ch":404,"ĠS":405,"ur":406,"ver":407,"Ġst":408,"ay":409,"am":410,"ĠC":411,"ir":412,"ul":413,"Ġyou":414,"el":415,"ad":416,"ith":417,"Ġit":418,"ĠĠĠĠ":419,"ĊĊ":420,"Ġas":421,"Ġan":422,"her":423,"if":424,"Ġwh":425,"Ġare":426,"Ġ(":427,"Ġwith":428,"Ġpro":429,"Ġcon":430,"Ġal":431,"ter":432,"ĠM":433,"od":434,"Ġor":435,"um":436,"ge":437,"ĠThe":438,"ĠP":439,"Ġhe":440,"ate":441,"ers":442,"Ġha":443,"ill":444,"Ġwe":445,"th":446,"qu":447,"ist":448,"ĠB":449,"op":450,"Ġde":451,"ke":452,"Ġex":453,"ld":454,"ri":455,"ore":456,"ess":457,"est":458,"ab":459,"ment":460,"Ġcom":461,"us":462,"Ġv":463,"ĠW":464,"ac":465,"ĠH":466,"ect":467,"res":468,"Ġat":469,"igh":470,"os":471,"ity":472,"Ġsu":473,"rom":474,"Ġby":475,"pp":476,"ive":477,"em":478,"nt":479,"ant":480,"Ġwas":481,"ĠD":482,"ain":483,"âĢĻ":484,"ies":485,"Ġcan":486,"Ġr":487,"ĠF":488,"ĠR":489,"Ġne":490,"Ġse":491,"Ġnot":492,"ĠE":493,"iv":494,"and":495,".ĊĊ":496,"Ġfrom":497,"Ġch":498,"oc":499,"Ġhave":500,"un":501,"Ġthis":502,"ort":503,"ud":504,"ĠN":505,"art":506,"ight":507,"Ġsh":508,"Ġle":509,"ould":510,"ure":511,"ĠL":512,"ĠG":513,"ĠâĢ":514,"Âł":515,"ally":516,"all":517,"Ġab":518,"end":519,"'s":520,"Ġsp":521,"og":522,"ust":523,"ome":524,"ere":525,"pt":526,"out":527,"Ġwor":528,"ost":529,"gh":530,"pl":531,"ions":532,"Ġk":533,"ich":534,"ine":535,"our":536,"rou":537,"The":538,"ial":539,"ard":540,"Ġus":541,"ag":542,"Ġpl":543,"ther":544,"Ġint":545,"ĠO":546,"per":547,"Ġwhe":548,"Ġdo":549,"ell":550,"are":551,"act":552,"Ġthey":553,"Ġall":554,"age":555,"ak":556,"ated":557,"Ġ=":558,"ast":559,"ide":560,"ff":561,"Ġim":562,"ical":563,"Ġyour":564,"Ġwill":565,"ĠJ":566,"ear":567,"Ġtheir":568,"ans":569,"Ġen":570,"Ġbut":571,"âĢĻs":572,"ie":573,"iz":574,"Ġwhich":575,"ous":576,"ind":577,"Ġme":578,"ap":579,"ult":580,"Ġ\"":581,"ĠĠĠ":582,"ec":583,"Ġhas":584,"du":585,"ĠU":586,"Ġj":587,"Ġgo":588,"Ġcomp":589,"Ġad":590,"Ġmore":591,"ong":592,"ip":593,"ber":594,"Ġcont":595,"ok":596,"ru":597,"ĠIn":598,"ĠĠĠĠĠĠĠĠ":599,"ĠTh":600,"Ġone":601,"Ġres":602,"ations":603,"ry":604,"orm":605,"cc":606,"one":607,"ame":608,"ble":609,"ire":610,"Ġso":611,"Ġdis":612,"able":613,"Ġinc":614,"vel":615,"Ġout":616,"ep":617,"ack":618,"Ġcl":619,"so":620,"ake":621,"ary":622,"Ġother":623,"Ġman":624,"ime":625,"ence":626,"Ġ-":627,"ach":628,"ia":629,"ass":630,"au":631,"ose":632,"ction":633,"ance":634,"Ġper":635,"ice":636,"very":637,"Ġhis":638,"Ġli":639,"âĢĿ":640,"ents":641,"Ġabout":642,"Ġwere":643,"ase":644,"ater":645,"ign":646,"Ġun":647,"Ġup":648,"ue":649,"ress":650,"Ġqu":651,"int":652,"ild":653,"..":654,"ace":655,"Ġar":656,"ite":657,"Ġwho":658,"Ġif":659,"Ġte":660,"av":661,"Ġapp":662,"ks":663,"Ġalso":664,"Ġev":665,"now":666,"ang":667,"ition":668,"ook":669,"Ġimp":670,"ĠSt":671,"Ġpre":672,"Ġthem":673,"Ġthere":674,"ub":675,"reat":676,"Ġpart":677,"Ġsome":678,"ount":679,"ord":680,"ens":681,"ree":682,"Ġpe":683,"low":684,"ays":685,"ew":686,"ood":687,"ĠâĢľ":688,"ĠK":689,"Ġthan":690,"Ġsc":691,"Ġbec":692,"ile":693,"ĠIt":694,"ound":695,"ory":696,"ors":697,"Ġwhen":698,"Ġwould":699,"iff":700,"##":701,"Ġlike":702,"ces":703,"ish":704,"ough":705,"ll":706,"Ġtime":707,"ople":708,"ric":709,"Ġsy":710,"form":711,"Ġag":712,"Ġhow":713,"ail":714,"Ġinto":715,"ond":716,"Ġhad":717,"Ġwhat":718,"Ġany":719,"Ġstud":720,"Ġcomm":721,"Ġro":722,"ph":723,"ings":724,"Ġknow":725,"Ġbeen":726,"ĠCh":727,"Ġtw":728,"Ġyear":729,"ĠY":730,"ause":731,"Ġover":732,"ĠV":733,"nder":734,"te":735,"Ġwork":736,"Ġ$":737,"'t":738,"ath":739,"ple":740,"Ġsa":741,"Ġdiff":742,"ove":743,"Ġmay":744,"Ġpeople":745,"Ġits":746,"Ġrec":747,"ates":748,"Ġra":749,"Ġbet":750,"Ġpo":751,"ms":752,"irst":753,"Ġuse":754,"Ġnum":755,"rit":756,"les":757,"Ġtra":758,"Ġno":759,"ĠThis":760,"ons":761,"Ġget":762,"mer":763,"ian":764,"ink":765,"we":766,"vers":767,"Ġthese":768,"olog":769,"Ġneed":770,"Ġind":771,"ual":772,"Ġact":773,"³³":774,"rough":775,"ject":776,"Ġour":777,"ys":778,"ific":779,"Ġonly":780,"Ġcol":781,"ious":782,"Ġtwo":783,"Ġbl":784,"lic":785,"erv":786,"Ġcons":787,"row":788,"Ġnew":789,"Ġunder":790,":Ċ":791,"red":792,"Ġ\\":793,")Ċ":794,"ren":795,"tern":796,").":797,"Ġmost":798,"ning":799,"ft":800,"Ġoff":801,"ck":802,"ov":803,"lect":804,"Ġdes":805,"Ġam":806,"Ġmy":807,"Ġrep":808,"),":809,"ob":810,"xt":811,"Ġrel":812,"Ġacc":813,"Ġtr":814,"lud":815,"yp":816,"Ġjust":817,"Ġfirst":818,"eth":819,"ative":820,"Ġher":821,"ib":822,"stem":823,"sel":824,"hed":825,"Ġsuch":826,"Ġexp":827,"ities":828,"own":829,"fter":830,"ating":831,"Ġfe":832,"Ġgen":833,"ular":834,"ics":835,"Ġdiffere":836,"ient":837,"Ġhel":838,"ise":839,"Ġmany":840,"ments":841,"hat":842,"Ġthen":843,"ne":844,"ark":845,"Ġpos":846,"round":847,"Ġused":848,"rib":849,"Ġco":850,"Ġob":851,"cess":852,"Ġhelp":853,"ced":854,"Ġph":855,"erm":856,"old":857,"oth":858,"ef":859,"Ġshould":860,"Ġcould":861,"Ġthrough":862,"ffect":863,"ick":864,"ange":865,"urn":866,"Ġprodu":867,"ution":868,"als":869,"Ġpr":870,"ĠHe":871,"Ġadd":872,"alth":873,"hen":874,"Ġ+":875,"Ġdec":876,"ful":877,"ational":878,"ĠâĢĵ":879,"velop":880,"ible":881,"Ġinclud":882,"ility":883,"Ġwhere":884,"Ġem":885,"ied":886,"ert":887,"iss":888,"ĠĠĠĠĠĠĠ":889,"Ġchild":890,"Ġass":891,"Ġmake":892,"Ġprov":893,"ram":894,"ract":895,"uch":896,"Ġatt":897,"Ġreg":898,"__":899,"Ġsub":900,"Ġspec":901,"Ġac":902,"ween":903,"aw":904,"Ġsystem":905,"ower":906,"In":907,"Ġbecause":908,"its":909,"ĠUn":910,"fore":911,"Ġrem":912,"Ġfl":913,"Ġsm":914,"Ġform":915,"Ġbetween":916,"Ġwell":917,"Ġshe":918,"ting":919,"Ġway":920,"Ġsee":921,"uring":922,"ased":923,"ade":924,"rop":925,"hes":926,"eg":927,"ife":928,"wn":929,"Ġyears":930,"ool":931,"Ġinv":932,"ng":933,"ata":934,"Ġbu":935,"cy":936,"ten":937,"ict":938,"Ġsim":939,"Ġeven":940,"Ġsur":941,"Ġsaid":942,"Ġsupp":943,"ures":944,"Ġnumber":945,"ont":946,"Ġdevelop":947,"Ġequ":948,"Ġexam":949,"Ġdoes":950,"Ġevery":951,"get":952,"iet":953,"Ġvery":954,"Ġval":955,"ered":956,"Ġinter":957,"Ġinf":958,"ss":959,"Ġx":960,"ually":961,"cept":962,"Ġmod":963,"--":964,"arch":965,"iew":966,"ily":967,"Ġeach":968,"ts":969,"Ġdifferent":970,"ident":971,"other":972,"ollow":973,"Ġafter":974,"Ġpers":975,"Ġset":976,"ĠIf":977,"Ġinst":978,"ever":979,"oy":980,"Ġlong":981,"Ġpoint":982,"Ġpres":983,"Ġright":984,"Ġfind":985,"Ġtrans":986,"Ġsame":987,"Ġpol":988,"Ġdef":989,"Ġgra":990,"Ġmuch":991,"Ġsec":992,"Ġke":993,"Ġhigh":994,"Ġhim":995,"Ġback":996,"Ġcall":997,"Ġfact":998,"ĠWe":999,"ines":1000,"aking":1001,"Th":1002,"Ġvar":1003,"imes":1004,"ues":1005,"?Ċ":1006,"Ġdisc":1007,"Ġlook":1008,"Ġ'":1009,"Ġwater":1010,"Ġproble":1011,"ited":1012,"Ġthose":1013,"Ġsol":1014,"Ġcar":1015,"gan":1016,"self":1017,"Ġbeing":1018,"ants":1019,"ins":1020,"Ġear":1021,"Ġfun":1022,"Ġdist":1023},"merges":[["Ġ","t"],["Ġ","a"],["h","e"],["i","n"],["r","e"],["��t","he"],["o","n"],["e","r"],["Ġ","s"],["a","t"],["Ġ","o"],["e","n"],["Ġ","w"],["Ġ","c"],["i","s"],["e","s"],["i","t"],["n","d"],["o","r"],["Ġ","p"],["Ġ","b"],["a","l"],["Ġ","f"],["a","n"],["e","d"],["in","g"],["Ġo","f"],["o","u"],["Ġ","m"],["Ġ","in"],["a","r"],["Ġt","o"],["Ġ","d"],["Ġa","nd"],["i","c"],["i","on"],["l","e"],["Ġt","h"],["a","s"],["r","o"],["Ġ","Ġ"],["Ġ","h"],["en","t"],["Ġ","e"],["c","t"],["Ġ","n"],["i","l"],["Ġ","l"],["o","m"],["v","e"],["Ġ","re"],["s","t"],[".","Ċ"],["Ġ","is"],["l","y"],["Ġb","e"],["Ġ","g"],["s","e"],["Ġ","T"],["â","Ģ"],["u","t"],["o","t"],["e","t"],["i","m"],["o","l"],["i","d"],["o","w"],["r","a"],["Ġ","I"],["c","e"],["at","ion"],["Ġ","y"],["Ġth","at"],["i","g"],["Ġf","or"],["Ġ","u"],["Ġ","on"],["Ġ","A"],["c","h"],["Ġ","S"],["u","r"],["v","er"],["Ġs","t"],["a","y"],["a","m"],["Ġ","C"],["i","r"],["u","l"],["Ġy","ou"],["e","l"],["a","d"],["it","h"],["Ġ","it"],["ĠĠ","ĠĠ"],["Ċ","Ċ"],["Ġa","s"],["Ġa","n"],["he","r"],["i","f"],["Ġw","h"],["Ġa","re"],["Ġ","("],["Ġw","ith"],["Ġp","ro"],["Ġc","on"],["Ġa","l"],["t","er"],["Ġ","M"],["o","d"],["Ġo","r"],["u","m"],["g","e"],["ĠT","he"],["Ġ","P"],["Ġ","he"],["at","e"],["er","s"],["Ġh","a"],["il","l"],["Ġw","e"],["t","h"],["q","u"],["is","t"],["Ġ","B"],["o","p"],["Ġd","e"],["k","e"],["Ġe","x"],["l","d"],["r","i"],["o","re"],["es","s"],["es","t"],["a","b"],["m","ent"],["Ġc","om"],["u","s"],["Ġ","v"],["Ġ","W"],["a","c"],["Ġ","H"],["e","ct"],["re","s"],["Ġa","t"],["ig","h"],["o","s"],["it","y"],["Ġs","u"],["ro","m"],["Ġb","y"],["p","p"],["i","ve"],["e","m"],["n","t"],["an","t"],["Ġw","as"],["Ġ","D"],["a","in"],["âĢ","Ļ"],["i","es"],["Ġc","an"],["Ġ","r"],["Ġ","F"],["Ġ","R"],["Ġn","e"],["Ġs","e"],["Ġn","ot"],["Ġ","E"],["i","v"],["a","nd"],[".Ċ","Ċ"],["Ġf","rom"],["Ġc","h"],["o","c"],["Ġha","ve"],["u","n"],["Ġth","is"],["or","t"],["u","d"],["Ġ","N"],["ar","t"],["igh","t"],["Ġs","h"],["Ġ","le"],["ou","ld"],["u","re"],["Ġ","L"],["Ġ","G"],["Ġ","âĢ"],["Â","ł"],["al","ly"],["al","l"],["Ġa","b"],["en","d"],["'","s"],["Ġs","p"],["o","g"],["u","st"],["om","e"],["e","re"],["p","t"],["ou","t"],["Ġw","or"],["o","st"],["g","h"],["p","l"],["ion","s"],["Ġ","k"],["ic","h"],["in","e"],["ou","r"],["r","ou"],["T","he"],["i","al"],["ar","d"],["Ġu","s"],["a","g"],["Ġp","l"],["t","her"],["Ġin","t"],["Ġ","O"],["p","er"],["Ġw","he"],["Ġd","o"],["el","l"],["a","re"],["a","ct"],["Ġthe","y"],["Ġal","l"],["a","ge"],["a","k"],["at","ed"],["Ġ","="],["as","t"],["id","e"],["f","f"],["Ġ","im"],["ic","al"],["Ġyou","r"],["Ġw","ill"],["Ġ","J"],["e","ar"],["Ġthe","ir"],["an","s"],["Ġ","en"],["Ġb","ut"],["âĢĻ","s"],["i","e"],["i","z"],["Ġwh","ich"],["ou","s"],["in","d"],["Ġm","e"],["a","p"],["ul","t"],["Ġ","\""],["ĠĠ","Ġ"],["e","c"],["Ġh","as"],["d","u"],["Ġ","U"],["Ġ","j"],["Ġg","o"],["Ġcom","p"],["Ġa","d"],["Ġm","ore"],["on","g"],["i","p"],["b","er"],["Ġcon","t"],["o","k"],["r","u"],["ĠI","n"],["ĠĠĠĠ","ĠĠĠĠ"],["ĠT","h"],["Ġon","e"],["Ġre","s"],["ation","s"],["r","y"],["or","m"],["c","c"],["on","e"],["am","e"],["b","le"],["i","re"],["Ġs","o"],["Ġd","is"],["ab","le"],["Ġin","c"],["ve","l"],["Ġo","ut"],["e","p"],["ac","k"],["Ġc","l"],["s","o"],["a","ke"],["ar","y"],["Ġo","ther"],["Ġm","an"],["im","e"],["en","ce"],["Ġ","-"],["a","ch"],["i","a"],["as","s"],["a","u"],["o","se"],["ct","ion"],["an","ce"],["Ġp","er"],["ic","e"],["ver","y"],["Ġh","is"],["Ġl","i"],["âĢ","Ŀ"],["ent","s"],["Ġab","out"],["Ġwe","re"],["as","e"],["at","er"],["ig","n"],["Ġu","n"],["Ġu","p"],["u","e"],["res","s"],["Ġ","qu"],["in","t"],["il","d"],[".","."],["a","ce"],["Ġa","r"],["it","e"],["Ġwh","o"],["Ġ","if"],["Ġt","e"],["a","v"],["Ġa","pp"],["k","s"],["Ġal","so"],["Ġe","v"],["n","ow"],["an","g"],["it","ion"],["o","ok"],["Ġim","p"],["ĠS","t"],["Ġp","re"],["Ġthe","m"],["Ġthe","re"],["u","b"],["re","at"],["Ġp","art"],["Ġs","ome"],["ou","nt"],["or","d"],["en","s"],["re","e"],["Ġp","e"],["l","ow"],["ay","s"],["e","w"],["o","od"],["ĠâĢ","ľ"],["Ġ","K"],["Ġth","an"],["Ġs","c"],["Ġbe","c"],["i","le"],["ĠI","t"],["ou","nd"],["or","y"],["or","s"],["Ġwhe","n"],["Ġw","ould"],["if","f"],["#","#"],["Ġli","ke"],["c","es"],["is","h"],["ou","gh"],["l","l"],["Ġt","ime"],["op","le"],["r","ic"],["Ġs","y"],["f","orm"],["Ġa","g"],["Ġh","ow"],["a","il"],["Ġint","o"],["on","d"],["Ġh","ad"],["Ġwh","at"],["Ġan","y"],["Ġst","ud"],["Ġcom","m"],["Ġ","ro"],["p","h"],["ing","s"],["Ġk","now"],["Ġbe","en"],["ĠC","h"],["Ġt","w"],["Ġy","ear"],["Ġ","Y"],["au","se"],["Ġo","ver"],["Ġ","V"],["nd","er"],["t","e"],["Ġwor","k"],["Ġ","$"],["'","t"],["at","h"],["p","le"],["Ġs","a"],["Ġd","iff"],["o","ve"],["Ġm","ay"],["Ġpe","ople"],["Ġit","s"],["Ġre","c"],["at","es"],["Ġ","ra"],["Ġbe","t"],["Ġp","o"],["m","s"],["ir","st"],["Ġu","se"],["Ġn","um"],["r","it"],["l","es"],["Ġt","ra"],["Ġn","o"],["ĠTh","is"],["on","s"],["Ġg","et"],["m","er"],["i","an"],["in","k"],["w","e"],["ver","s"],["Ġthe","se"],["ol","og"],["Ġne","ed"],["Ġin","d"],["u","al"],["Ġa","ct"],["Âł","Âł"],["rou","gh"],["j","ect"],["Ġo","ur"],["y","s"],["if","ic"],["Ġon","ly"],["Ġc","ol"],["i","ous"],["Ġtw","o"],["Ġb","l"],["l","ic"],["er","v"],["Ġcon","s"],["ro","w"],["Ġne","w"],["Ġu","nder"],[":","Ċ"],["re","d"],["Ġ","\\"],[")","Ċ"],["re","n"],["ter","n"],[")","."],["Ġm","ost"],["n","ing"],["f","t"],["Ġof","f"],["c","k"],["o","v"],["le","ct"],["Ġd","es"],["Ġa","m"],["Ġm","y"],["Ġre","p"],[")",","],["o","b"],["x","t"],["Ġre","l"],["Ġa","cc"],["Ġt","r"],["l","ud"],["y","p"],["Ġj","ust"],["Ġf","irst"],["et","h"],["at","ive"],["Ġ","her"],["i","b"],["st","em"],["se","l"],["he","d"],["Ġsu","ch"],["Ġex","p"],["it","ies"],["ow","n"],["f","ter"],["at","ing"],["Ġf","e"],["Ġg","en"],["ul","ar"],["ic","s"],["Ġdiff","ere"],["i","ent"],["Ġhe","l"],["is","e"],["Ġman","y"],["ment","s"],["h","at"],["Ġthe","n"],["n","e"],["ar","k"],["Ġp","os"],["rou","nd"],["Ġus","ed"],["ri","b"],["Ġc","o"],["Ġo","b"],["c","ess"],["Ġhel","p"],["c","ed"],["Ġp","h"],["er","m"],["ol","d"],["ot","h"],["e","f"],["Ġsh","ould"],["Ġc","ould"],["Ġth","rough"],["ff","ect"],["ic","k"],["an","ge"],["ur","n"],["Ġpro","du"],["ut","ion"],["al","s"],["Ġp","r"],["ĠH","e"],["Ġad","d"],["al","th"],["he","n"],["Ġ","+"],["Ġde","c"],["f","ul"],["ation","al"],["ĠâĢ","ĵ"],["vel","op"],["i","ble"],["Ġinc","lud"],["il","ity"],["Ġwhe","re"],["Ġe","m"],["i","ed"],["er","t"],["is","s"],["ĠĠĠĠ","ĠĠĠ"],["Ġch","ild"],["Ġas","s"],["Ġm","ake"],["Ġpro","v"],["ra","m"],["ra","ct"],["u","ch"],["Ġat","t"],["Ġre","g"],["_","_"],["Ġsu","b"],["Ġsp","ec"],["Ġa","c"],["we","en"],["a","w"],["Ġsy","stem"],["ow","er"],["I","n"],["Ġbec","ause"],["it","s"],["ĠU","n"],["f","ore"],["Ġre","m"],["Ġf","l"],["Ġs","m"],["Ġfor","m"],["Ġbet","ween"],["Ġw","ell"],["Ġs","he"],["t","ing"],["Ġw","ay"],["Ġse","e"],["ur","ing"],["as","ed"],["ad","e"],["ro","p"],["he","s"],["e","g"],["if","e"],["w","n"],["Ġyear","s"],["o","ol"],["Ġin","v"],["n","g"],["at","a"],["Ġb","u"],["c","y"],["t","en"],["ic","t"],["Ġs","im"],["Ġev","en"],["Ġs","ur"],["Ġsa","id"],["Ġsu","pp"],["u","res"],["Ġnum","ber"],["on","t"],["Ġde","velop"],["Ġe","qu"],["Ġex","am"],["Ġdo","es"],["Ġe","very"],["g","et"],["i","et"],["Ġ","very"],["Ġv","al"],["ere","d"],["Ġin","ter"],["Ġin","f"],["s","s"],["Ġ","x"],["u","ally"],["ce","pt"],["Ġm","od"],["-","-"],["ar","ch"],["ie","w"],["il","y"],["Ġe","ach"],["t","s"],["Ġdiffere","nt"],["id","ent"],["ot","her"],["ol","low"],["Ġa","fter"],["Ġp","ers"],["Ġs","et"],["ĠI","f"],["Ġin","st"],["e","ver"],["o","y"],["Ġl","ong"],["Ġpo","int"],["Ġp","res"],["Ġr","ight"],["Ġf","ind"],["Ġtr","ans"],["Ġs","ame"],["Ġp","ol"],["Ġde","f"],["Ġg","ra"],["Ġm","uch"],["Ġse","c"],["Ġ","ke"],["Ġh","igh"],["Ġh","im"],["Ġb","ack"],["Ġc","all"],["Ġf","act"],["ĠW","e"],["in","es"],["ak","ing"],["T","h"],["Ġv","ar"],["im","es"],["u","es"],["?","Ċ"],["Ġdis","c"],["Ġl","ook"],["Ġ","'"],["Ġw","ater"],["Ġpro","ble"],["it","ed"],["Ġth","ose"],["Ġs","ol"],["Ġc","ar"],["g","an"],["sel","f"],["Ġbe","ing"],["ant","s"],["in","s"],["Ġe","ar"],["Ġf","un"],["Ġd","ist"]]}}
|
training_metadata.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Sol Nano",
|
| 3 |
+
"tokens_seen": 5000000000,
|
| 4 |
+
"updates": 19074,
|
| 5 |
+
"parameters": 2895188,
|
| 6 |
+
"tokenizer_sha256": "72a97c4c592c991733fcc6ad687734ce51e1ba25b0f7c2faf611ac30edc50231",
|
| 7 |
+
"architecture": "SolForCausalLM",
|
| 8 |
+
"base_architecture": "Sol Lite"
|
| 9 |
+
}
|