Text Generation
GGUF
English
nae1
neuralai
causal-lm
llama-cpp
from-scratch
pretraining
local-ai
tiny-model
Instructions to use Subject-Emu-5259/NeuralAI-Nae1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Subject-Emu-5259/NeuralAI-Nae1 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Subject-Emu-5259/NeuralAI-Nae1:Q4_K_M # Run inference directly in the terminal: llama cli -hf Subject-Emu-5259/NeuralAI-Nae1:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Subject-Emu-5259/NeuralAI-Nae1:Q4_K_M # Run inference directly in the terminal: llama cli -hf Subject-Emu-5259/NeuralAI-Nae1:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Subject-Emu-5259/NeuralAI-Nae1:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Subject-Emu-5259/NeuralAI-Nae1:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Subject-Emu-5259/NeuralAI-Nae1:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Subject-Emu-5259/NeuralAI-Nae1:Q4_K_M
Use Docker
docker model run hf.co/Subject-Emu-5259/NeuralAI-Nae1:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Subject-Emu-5259/NeuralAI-Nae1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Subject-Emu-5259/NeuralAI-Nae1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Subject-Emu-5259/NeuralAI-Nae1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Subject-Emu-5259/NeuralAI-Nae1:Q4_K_M
- Ollama
How to use Subject-Emu-5259/NeuralAI-Nae1 with Ollama:
ollama run hf.co/Subject-Emu-5259/NeuralAI-Nae1:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Subject-Emu-5259/NeuralAI-Nae1 with Docker Model Runner:
docker model run hf.co/Subject-Emu-5259/NeuralAI-Nae1:Q4_K_M
- Lemonade
How to use Subject-Emu-5259/NeuralAI-Nae1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Subject-Emu-5259/NeuralAI-Nae1:Q4_K_M
Run and chat with the model
lemonade run user.NeuralAI-Nae1-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Publish Nae1 step-8000: card, graphics, GGUFs (f32 + Q4_K_M), config, tokenizer, eval report
Browse files- .gitattributes +4 -0
- README.md +178 -0
- config.json +27 -0
- eval_step8000_q4_n512.json +18 -0
- nae1-llama-Q4_K_M.gguf +3 -0
- nae1-llama-f32.gguf +3 -0
- neuralai-nae1-banner.png +3 -0
- neuralai-nae1-banner.svg +35 -0
- neuralai-nae1-comparison.png +0 -0
- neuralai-nae1-comparison.svg +8 -0
- neuralai-nae1-training.png +3 -0
- neuralai-nae1-training.svg +19 -0
- tokenizer/manifest.json +14 -0
- tokenizer/merges.txt +179 -0
- tokenizer/vocab.json +1 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
nae1-llama-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
nae1-llama-f32.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
neuralai-nae1-banner.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
neuralai-nae1-training.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- neuralai
|
| 7 |
+
- nae1
|
| 8 |
+
- text-generation
|
| 9 |
+
- causal-lm
|
| 10 |
+
- llama-cpp
|
| 11 |
+
- gguf
|
| 12 |
+
- from-scratch
|
| 13 |
+
- pretraining
|
| 14 |
+
- local-ai
|
| 15 |
+
- tiny-model
|
| 16 |
+
pipeline_tag: text-generation
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
<!--
|
| 20 |
+
NeuralAI — Nae1
|
| 21 |
+
Model card maintained by De'Andrew Preston Harris (@Subject-Emu-5259)
|
| 22 |
+
Last updated: 2026-10-07
|
| 23 |
+
-->
|
| 24 |
+
|
| 25 |
+
<img src="neuralai-nae1-banner.png" alt="NeuralAI Nae1 banner" width="100%" />
|
| 26 |
+
|
| 27 |
+
<h1 align="center">🧠 NeuralAI — Nae1</h1>
|
| 28 |
+
|
| 29 |
+
<p align="center">
|
| 30 |
+
<strong>Trained from scratch. Every weight owned.</strong><br/>
|
| 31 |
+
A 100M-parameter decoder pretrained end-to-end on 768M FineWeb tokens — no distillation, no fine-tune of someone else's base.
|
| 32 |
+
</p>
|
| 33 |
+
|
| 34 |
+
<p align="center">
|
| 35 |
+
<a href="https://huggingface.co/Subject-Emu-5259/NeuralAI-Nae1"><img src="https://img.shields.io/badge/🤗%20Hub-NeuralAI%20Nae1-blue" alt="Nae1"></a>
|
| 36 |
+
<img src="https://img.shields.io/badge/params-100.1M-22d3ee" alt="100.1M params">
|
| 37 |
+
<img src="https://img.shields.io/badge/held--out%20PPL-165.92-34d399" alt="PPL 165.92">
|
| 38 |
+
<img src="https://img.shields.io/badge/steps-8,000-a78bfa" alt="8000 steps">
|
| 39 |
+
<img src="https://img.shields.io/badge/license-Apache%202.0-orange" alt="Apache 2.0">
|
| 40 |
+
</p>
|
| 41 |
+
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
## 🚀 Quick facts
|
| 45 |
+
|
| 46 |
+
| Property | Value |
|
| 47 |
+
| --- | --- |
|
| 48 |
+
| **Architecture** | Llama-style decoder — RoPE, GQA, SwiGLU |
|
| 49 |
+
| **Parameters** | 100,111,872 (100.1M) |
|
| 50 |
+
| **Layers / hidden / heads** | 12 layers · 768 hidden · 12 heads · 4 KV heads (GQA) |
|
| 51 |
+
| **Vocabulary** | 439 tokens (ByteLevel BPE, sliced from a 32,000-target config) |
|
| 52 |
+
| **Context** | 2,048 trained · evaluated on `n_ctx=512` |
|
| 53 |
+
| **Training data** | 768M tokens — FineWeb CC-MAIN-2013-20, 400k documents, 8 shards |
|
| 54 |
+
| **Training schedule** | 8,000 steps · cosine to lr 1.2e-11 · Kaggle T4 |
|
| 55 |
+
| **Final training loss** | 24.90 (down from 25.49 @ step 4000; early chaos ~25.9 resolved) |
|
| 56 |
+
| **Held-out perplexity** | **165.92** (Q4_K_M, 992 docs / 1,027,766 tokens, teacher-forced) |
|
| 57 |
+
| **Formats in this repo** | `f32` GGUF (305 MB) · `Q4_K_M` GGUF (45 MB) · config + tokenizer |
|
| 58 |
+
| **License** | Apache 2.0 |
|
| 59 |
+
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
+
## 📈 Training
|
| 63 |
+
|
| 64 |
+
<p align="center">
|
| 65 |
+
<img src="neuralai-nae1-training.png" alt="Nae1 training loss step 4000 to 8000" width="92%" />
|
| 66 |
+
</p>
|
| 67 |
+
|
| 68 |
+
Nae1 is pretrained from random initialization in two stages: step 0 → 4000, then resumed 4000 → 8000 with a full cosine decay. The chart shows the second stage — loss falls from ~25.9 to a best of **22.88** (step 7,050), finishing at **24.90** at step 8,000 as the learning rate anneals to 1.2e-11.
|
| 69 |
+
|
| 70 |
+
- **Data pipeline**: FineWeb parquet → chunked into 513-token windows served as zero-copy views (peak-RAM-safe at 768M tokens)
|
| 71 |
+
- **Checkpoints**: every 250 steps; this release ships the final step-8000 checkpoint
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
## 📊 Evaluation
|
| 76 |
+
|
| 77 |
+
<p align="center">
|
| 78 |
+
<img src="neuralai-nae1-comparison.png" alt="Held-out perplexity comparison across Nae1 checkpoints" width="92%" />
|
| 79 |
+
</p>
|
| 80 |
+
|
| 81 |
+
Teacher-forced perplexity on a held-out FineWeb slice (992 documents / 1,027,766 tokens, `n_ctx=512`), scored token-by-token with exact row alignment — not the `echo=True` logprob path, which mispairs positions and inflates NLL.
|
| 82 |
+
|
| 83 |
+
| Checkpoint (Q4_K_M) | Held-out PPL |
|
| 84 |
+
| --- | --- |
|
| 85 |
+
| step-2000 | 192.97 |
|
| 86 |
+
| step-4000 (resumed run) | 188.89 |
|
| 87 |
+
| step-4000 (from scratch) | 179.17 |
|
| 88 |
+
| **step-8000 — this release** | **165.92** |
|
| 89 |
+
|
| 90 |
+
Raw report: [`eval_step8000_q4_n512.json`](eval_step8000_q4_n512.json) — mean NLL 5.1115 nats/token. Fixed probe ("The quick brown fox", 10 tokens): 150.25.
|
| 91 |
+
|
| 92 |
+
> ⚠️ Perplexity is the trust signal here, not raw capability. At 100M params over 768M tokens, expect exploratory, often garbled text — this is a research-lineage model, not a chat assistant.
|
| 93 |
+
|
| 94 |
+
### Logits Parity Notice
|
| 95 |
+
|
| 96 |
+
Logits parity with the Nae1 native forward pass is not achievable by design: `llama.cpp` uses **RMSNorm (no bias)** while the native model uses **LayerNorm (with bias)**, so conversion skips the bias tensors. Tensor integrity is fully verified (109/109 tensors match the source safetensors, max diff 0.00e+00) — small logit drift is a runtime constraint, not a conversion bug.
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
## 🛠️ Usage
|
| 101 |
+
|
| 102 |
+
### llama.cpp (recommended)
|
| 103 |
+
|
| 104 |
+
```bash
|
| 105 |
+
llama-server -m nae1-llama-Q4_K_M.gguf -c 512 --host 127.0.0.1 --port 8080
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
### llama-cpp-python
|
| 109 |
+
|
| 110 |
+
```python
|
| 111 |
+
from llama_cpp import Llama
|
| 112 |
+
|
| 113 |
+
llm = Llama(
|
| 114 |
+
model_path="nae1-llama-Q4_K_M.gguf",
|
| 115 |
+
n_ctx=512,
|
| 116 |
+
verbose=False,
|
| 117 |
+
)
|
| 118 |
+
|
| 119 |
+
out = llm("The future of AI", max_tokens=32, temperature=0.7)
|
| 120 |
+
print(out["choices"][0]["text"])
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
### Files
|
| 124 |
+
|
| 125 |
+
| File | What it is |
|
| 126 |
+
| --- | --- |
|
| 127 |
+
| `nae1-llama-Q4_K_M.gguf` | 4-bit quant, 4.80 BPW, 45 MB — the recommended artifact |
|
| 128 |
+
| `nae1-llama-f32.gguf` | Full-precision GGUF, 305 MB — for requantization / research |
|
| 129 |
+
| `config.json` | Architecture config as trained |
|
| 130 |
+
| `tokenizer/` | Native 439-token vocab + merges + manifest |
|
| 131 |
+
| `eval_step8000_q4_n512.json` | The exact evaluation report cited above |
|
| 132 |
+
|
| 133 |
+
---
|
| 134 |
+
|
| 135 |
+
## 🧰 What Is NeuralAI?
|
| 136 |
+
|
| 137 |
+
**NeuralAI** is a local-first, private generative AI engine built by **De'Andrew Preston Harris**. The mission: *your AI, on your hardware, under your control.* Nae1 is the project's first end-to-end pretrained model — trained from random init on public data, converted with verified tensor integrity, and evaluated with a reproducible protocol.
|
| 138 |
+
|
| 139 |
+
---
|
| 140 |
+
|
| 141 |
+
## ⚠️ Limitations
|
| 142 |
+
|
| 143 |
+
- **Scale**: 100M parameters pretrained on 768M tokens is a research checkpoint — long-form reasoning, coding, and factual recall are limited.
|
| 144 |
+
- **Vocabulary**: a 439-token BPE trained on this corpus; out-of-domain text will tokenize inefficiently.
|
| 145 |
+
- **No chat template**: base completion only — it was never instruction-tuned.
|
| 146 |
+
- **No internet access**: pair with a tool layer if you need live data.
|
| 147 |
+
|
| 148 |
+
---
|
| 149 |
+
|
| 150 |
+
## 👤 Who Created NeuralAI?
|
| 151 |
+
|
| 152 |
+
- **Founder & Lead Architect:** De'Andrew Preston Harris (D. Harris / Dre)
|
| 153 |
+
- **Hugging Face:** [@Subject-Emu-5259](https://huggingface.co/Subject-Emu-5259)
|
| 154 |
+
- **GitHub:** [@Subject-Emu-5259](https://github.com/Subject-Emu-5259)
|
| 155 |
+
- **LinkedIn:** [linkedin.com/in/deandrewharris94](https://linkedin.com/in/deandrewharris94/)
|
| 156 |
+
- **Location:** Memphis, Tennessee / West Memphis, Arkansas
|
| 157 |
+
- **Education:** AI Software Engineering at Maestro College
|
| 158 |
+
|
| 159 |
+
NeuralAI was built from resilience, fatherhood, and the belief that personal computing deserves personal intelligence. Every release is handcrafted, iterated, and documented in the open.
|
| 160 |
+
|
| 161 |
+
---
|
| 162 |
+
|
| 163 |
+
## 📖 Citation
|
| 164 |
+
|
| 165 |
+
```bibtex
|
| 166 |
+
@software{neuralai_nae1_2026,
|
| 167 |
+
author = {Harris, De'Andrew Preston},
|
| 168 |
+
title = {NeuralAI — Nae1},
|
| 169 |
+
year = {2026},
|
| 170 |
+
url = {https://huggingface.co/Subject-Emu-5259/NeuralAI-Nae1},
|
| 171 |
+
version = {step-8000},
|
| 172 |
+
description = {A 100M-parameter language model pretrained from scratch on 768M FineWeb tokens}
|
| 173 |
+
}
|
| 174 |
+
```
|
| 175 |
+
|
| 176 |
+
---
|
| 177 |
+
|
| 178 |
+
*Built with discipline by De'Andrew Preston Harris. Maintained in the open. Updated whenever the model, dataset, or project state changes.*
|
config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Nae1ForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attn_pdrop": 0.1,
|
| 6 |
+
"bos_token_id": 2,
|
| 7 |
+
"dtype": "float32",
|
| 8 |
+
"embd_pdrop": 0.1,
|
| 9 |
+
"eos_token_id": 3,
|
| 10 |
+
"head_dim": 64,
|
| 11 |
+
"hidden_act": "silu",
|
| 12 |
+
"intermediate_size": 2048,
|
| 13 |
+
"layer_norm_epsilon": 1e-05,
|
| 14 |
+
"model_type": "nae1",
|
| 15 |
+
"n_embd": 768,
|
| 16 |
+
"n_head": 12,
|
| 17 |
+
"n_kv_heads": 4,
|
| 18 |
+
"n_layer": 12,
|
| 19 |
+
"n_positions": 2048,
|
| 20 |
+
"n_query_groups": 3,
|
| 21 |
+
"pad_token_id": 0,
|
| 22 |
+
"resid_pdrop": 0.1,
|
| 23 |
+
"rope_theta": 1000000.0,
|
| 24 |
+
"tie_word_embeddings": true,
|
| 25 |
+
"transformers_version": "5.16.1",
|
| 26 |
+
"vocab_size": 32000
|
| 27 |
+
}
|
eval_step8000_q4_n512.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "artifacts/nae1_gguf/nae1-llama-Q4_K_M-step8000.gguf",
|
| 3 |
+
"context_size": 512,
|
| 4 |
+
"scoring": "teacher forcing: one llm.eval(chunk) + row j scores token j+1 (first token excluded)",
|
| 5 |
+
"probe": {
|
| 6 |
+
"text": "The quick brown fox",
|
| 7 |
+
"tokens": 10,
|
| 8 |
+
"total_nll_nats": 50.12293620961254,
|
| 9 |
+
"perplexity": 150.24895539740825
|
| 10 |
+
},
|
| 11 |
+
"heldout": {
|
| 12 |
+
"documents": 992,
|
| 13 |
+
"tokens": 1027766,
|
| 14 |
+
"total_nll_nats": 5253414.275733181,
|
| 15 |
+
"mean_nll_nats_per_token": 5.111488681016088,
|
| 16 |
+
"perplexity": 165.91716885402047
|
| 17 |
+
}
|
| 18 |
+
}
|
nae1-llama-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b65e5be4bde6a74b742563f5938d2d35d27170d026f14275b63c340a26cf4c9b
|
| 3 |
+
size 45762464
|
nae1-llama-f32.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f76e1516460ed45b0d5b3f15e8114ee2b3609ac52d7511b8812ed3e5382c3847
|
| 3 |
+
size 304778816
|
neuralai-nae1-banner.png
ADDED
|
Git LFS Details
|
neuralai-nae1-banner.svg
ADDED
|
|
neuralai-nae1-comparison.png
ADDED
|
neuralai-nae1-comparison.svg
ADDED
|
|
neuralai-nae1-training.png
ADDED
|
Git LFS Details
|
neuralai-nae1-training.svg
ADDED
|
|
tokenizer/manifest.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"vocab_size": 32000,
|
| 3 |
+
"min_frequency": 2,
|
| 4 |
+
"special_tokens": [
|
| 5 |
+
"<|pad|>",
|
| 6 |
+
"<|unk|>",
|
| 7 |
+
"<|bos|>",
|
| 8 |
+
"<|eos|>",
|
| 9 |
+
"\n"
|
| 10 |
+
],
|
| 11 |
+
"vocab_file": "nae1_tokenizer-vocab.json",
|
| 12 |
+
"merges_file": "nae1_tokenizer-merges.txt",
|
| 13 |
+
"note": "BOS token id is 2, EOS token id is 3. GPT2Config for Nae1 should set bos_token_id=2, eos_token_id=3 (NOT the blueprint's literal 0/2, which don't match this tokenizer layout). Reload the tokenizer with ByteLevelBPETokenizer.from_file(vocab_file, merges_file)."
|
| 14 |
+
}
|
tokenizer/merges.txt
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version: 0.2
|
| 2 |
+
Ġ Ġ
|
| 3 |
+
Ġ t
|
| 4 |
+
a n
|
| 5 |
+
Ġ i
|
| 6 |
+
h e
|
| 7 |
+
r e
|
| 8 |
+
r i
|
| 9 |
+
ĠĠ Ġ
|
| 10 |
+
Ġ s
|
| 11 |
+
Ġ o
|
| 12 |
+
Ġt he
|
| 13 |
+
Ġi s
|
| 14 |
+
o r
|
| 15 |
+
Ġ a
|
| 16 |
+
e l
|
| 17 |
+
l e
|
| 18 |
+
m e
|
| 19 |
+
n t
|
| 20 |
+
p ri
|
| 21 |
+
Ġ c
|
| 22 |
+
Ġ an
|
| 23 |
+
a t
|
| 24 |
+
d e
|
| 25 |
+
i n
|
| 26 |
+
u r
|
| 27 |
+
Ġ f
|
| 28 |
+
Ġ w
|
| 29 |
+
Ġt h
|
| 30 |
+
a l
|
| 31 |
+
Ġ b
|
| 32 |
+
ĠĠ ĠĠ
|
| 33 |
+
Ġan d
|
| 34 |
+
Ġ =
|
| 35 |
+
Ġ m
|
| 36 |
+
Ġ n
|
| 37 |
+
Ġt o
|
| 38 |
+
) :
|
| 39 |
+
T he
|
| 40 |
+
a r
|
| 41 |
+
e r
|
| 42 |
+
o u
|
| 43 |
+
Ġ e
|
| 44 |
+
Ġ l
|
| 45 |
+
Ġ r
|
| 46 |
+
Ġ re
|
| 47 |
+
el f
|
| 48 |
+
pri nt
|
| 49 |
+
ĠĠĠĠ ĠĠĠ
|
| 50 |
+
a y
|
| 51 |
+
g e
|
| 52 |
+
n e
|
| 53 |
+
s e
|
| 54 |
+
t ur
|
| 55 |
+
u e
|
| 56 |
+
u s
|
| 57 |
+
Ġ h
|
| 58 |
+
Ġi n
|
| 59 |
+
re e
|
| 60 |
+
Ġo f
|
| 61 |
+
in g
|
| 62 |
+
Ġre tur
|
| 63 |
+
Ġretur n
|
| 64 |
+
a d
|
| 65 |
+
c k
|
| 66 |
+
g le
|
| 67 |
+
l o
|
| 68 |
+
q u
|
| 69 |
+
s t
|
| 70 |
+
u m
|
| 71 |
+
u n
|
| 72 |
+
v e
|
| 73 |
+
Ġ d
|
| 74 |
+
Ġ g
|
| 75 |
+
Ġo ne
|
| 76 |
+
pri me
|
| 77 |
+
Ġc an
|
| 78 |
+
de f
|
| 79 |
+
Ġf or
|
| 80 |
+
a s
|
| 81 |
+
a re
|
| 82 |
+
a me
|
| 83 |
+
c e
|
| 84 |
+
i o
|
| 85 |
+
i de
|
| 86 |
+
i us
|
| 87 |
+
o o
|
| 88 |
+
s elf
|
| 89 |
+
t e
|
| 90 |
+
v al
|
| 91 |
+
Ġ *
|
| 92 |
+
Ġ +
|
| 93 |
+
Ġ 0
|
| 94 |
+
Ġ 1
|
| 95 |
+
Ġ p
|
| 96 |
+
Ġ print
|
| 97 |
+
an ge
|
| 98 |
+
Ġi f
|
| 99 |
+
he r
|
| 100 |
+
Ġs elf
|
| 101 |
+
Ġc o
|
| 102 |
+
Ġth at
|
| 103 |
+
Ġth ree
|
| 104 |
+
ad ius
|
| 105 |
+
io n
|
| 106 |
+
val ue
|
| 107 |
+
" )
|
| 108 |
+
( "
|
| 109 |
+
F al
|
| 110 |
+
T r
|
| 111 |
+
W ri
|
| 112 |
+
_ _
|
| 113 |
+
b o
|
| 114 |
+
b er
|
| 115 |
+
c t
|
| 116 |
+
d s
|
| 117 |
+
d re
|
| 118 |
+
e st
|
| 119 |
+
f or
|
| 120 |
+
i l
|
| 121 |
+
i r
|
| 122 |
+
i s
|
| 123 |
+
m p
|
| 124 |
+
n ame
|
| 125 |
+
o g
|
| 126 |
+
o w
|
| 127 |
+
o y
|
| 128 |
+
o ur
|
| 129 |
+
p le
|
| 130 |
+
r a
|
| 131 |
+
r ow
|
| 132 |
+
s ide
|
| 133 |
+
t y
|
| 134 |
+
t her
|
| 135 |
+
v er
|
| 136 |
+
Ġ 5
|
| 137 |
+
Ġ I
|
| 138 |
+
Ġ [
|
| 139 |
+
Ġ x
|
| 140 |
+
Ġ y
|
| 141 |
+
Ġ prime
|
| 142 |
+
Ġ def
|
| 143 |
+
Ġ Fal
|
| 144 |
+
Ġ Tr
|
| 145 |
+
Ġt w
|
| 146 |
+
Ġt ri
|
| 147 |
+
an d
|
| 148 |
+
an gle
|
| 149 |
+
Ġi t
|
| 150 |
+
Ġs ur
|
| 151 |
+
le ar
|
| 152 |
+
Ġan gle
|
| 153 |
+
at h
|
| 154 |
+
Ġw ay
|
| 155 |
+
Ġth an
|
| 156 |
+
Ġb u
|
| 157 |
+
Ġb lo
|
| 158 |
+
Ġm o
|
| 159 |
+
Ġm an
|
| 160 |
+
Ġm ath
|
| 161 |
+
Ġn um
|
| 162 |
+
ou t
|
| 163 |
+
ou nt
|
| 164 |
+
Ġe qu
|
| 165 |
+
Ġl and
|
| 166 |
+
Ġr ange
|
| 167 |
+
Ġr adius
|
| 168 |
+
Ġh un
|
| 169 |
+
Ġh as
|
| 170 |
+
Ġd og
|
| 171 |
+
are a
|
| 172 |
+
dre d
|
| 173 |
+
ĠFal se
|
| 174 |
+
ĠTr ue
|
| 175 |
+
Ġtri angle
|
| 176 |
+
Ġangle s
|
| 177 |
+
Ġblo ck
|
| 178 |
+
Ġnum ber
|
| 179 |
+
Ġhun dred
|
tokenizer/vocab.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"<|pad|>":0,"<|unk|>":1,"<|bos|>":2,"<|eos|>":3,"\n":4,"!":5,"\"":6,"#":7,"$":8,"%":9,"&":10,"'":11,"(":12,")":13,"*":14,"+":15,",":16,"-":17,".":18,"/":19,"0":20,"1":21,"2":22,"3":23,"4":24,"5":25,"6":26,"7":27,"8":28,"9":29,":":30,";":31,"<":32,"=":33,">":34,"?":35,"@":36,"A":37,"B":38,"C":39,"D":40,"E":41,"F":42,"G":43,"H":44,"I":45,"J":46,"K":47,"L":48,"M":49,"N":50,"O":51,"P":52,"Q":53,"R":54,"S":55,"T":56,"U":57,"V":58,"W":59,"X":60,"Y":61,"Z":62,"[":63,"\\":64,"]":65,"^":66,"_":67,"`":68,"a":69,"b":70,"c":71,"d":72,"e":73,"f":74,"g":75,"h":76,"i":77,"j":78,"k":79,"l":80,"m":81,"n":82,"o":83,"p":84,"q":85,"r":86,"s":87,"t":88,"u":89,"v":90,"w":91,"x":92,"y":93,"z":94,"{":95,"|":96,"}":97,"~":98,"¡":99,"¢":100,"£":101,"¤":102,"¥":103,"¦":104,"§":105,"¨":106,"©":107,"ª":108,"«":109,"¬":110,"®":111,"¯":112,"°":113,"±":114,"²":115,"³":116,"´":117,"µ":118,"¶":119,"·":120,"¸":121,"¹":122,"º":123,"»":124,"¼":125,"½":126,"¾":127,"¿":128,"À":129,"Á":130,"Â":131,"Ã":132,"Ä":133,"Å":134,"Æ":135,"Ç":136,"È":137,"É":138,"Ê":139,"Ë":140,"Ì":141,"Í":142,"Î":143,"Ï":144,"Ð":145,"Ñ":146,"Ò":147,"Ó":148,"Ô":149,"Õ":150,"Ö":151,"×":152,"Ø":153,"Ù":154,"Ú":155,"Û":156,"Ü":157,"Ý":158,"Þ":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,"IJ":243,"ij":244,"Ĵ":245,"ĵ":246,"Ķ":247,"ķ":248,"ĸ":249,"Ĺ":250,"ĺ":251,"Ļ":252,"ļ":253,"Ľ":254,"ľ":255,"Ŀ":256,"ŀ":257,"Ł":258,"ł":259,"Ń":260,"ĠĠ":261,"Ġt":262,"an":263,"Ġi":264,"he":265,"re":266,"ri":267,"ĠĠĠ":268,"Ġs":269,"Ġo":270,"Ġthe":271,"Ġis":272,"or":273,"Ġa":274,"el":275,"le":276,"me":277,"nt":278,"pri":279,"Ġc":280,"Ġan":281,"at":282,"de":283,"in":284,"ur":285,"Ġf":286,"Ġw":287,"Ġth":288,"al":289,"Ġb":290,"ĠĠĠĠ":291,"Ġand":292,"Ġ=":293,"Ġm":294,"Ġn":295,"Ġto":296,"):":297,"The":298,"ar":299,"er":300,"ou":301,"Ġe":302,"Ġl":303,"Ġr":304,"Ġre":305,"elf":306,"print":307,"ĠĠĠĠĠĠĠ":308,"ay":309,"ge":310,"ne":311,"se":312,"tur":313,"ue":314,"us":315,"Ġh":316,"Ġin":317,"ree":318,"Ġof":319,"ing":320,"Ġretur":321,"Ġreturn":322,"ad":323,"ck":324,"gle":325,"lo":326,"qu":327,"st":328,"um":329,"un":330,"ve":331,"Ġd":332,"Ġg":333,"Ġone":334,"prime":335,"Ġcan":336,"def":337,"Ġfor":338,"as":339,"are":340,"ame":341,"ce":342,"io":343,"ide":344,"ius":345,"oo":346,"self":347,"te":348,"val":349,"Ġ*":350,"Ġ+":351,"Ġ0":352,"Ġ1":353,"Ġp":354,"Ġprint":355,"ange":356,"Ġif":357,"her":358,"Ġself":359,"Ġco":360,"Ġthat":361,"Ġthree":362,"adius":363,"ion":364,"value":365,"\")":366,"(\"":367,"Fal":368,"Tr":369,"Wri":370,"__":371,"bo":372,"ber":373,"ct":374,"ds":375,"dre":376,"est":377,"for":378,"il":379,"ir":380,"is":381,"mp":382,"name":383,"og":384,"ow":385,"oy":386,"our":387,"ple":388,"ra":389,"row":390,"side":391,"ty":392,"ther":393,"ver":394,"Ġ5":395,"ĠI":396,"Ġ[":397,"Ġx":398,"Ġy":399,"Ġprime":400,"Ġdef":401,"ĠFal":402,"ĠTr":403,"Ġtw":404,"Ġtri":405,"and":406,"angle":407,"Ġit":408,"Ġsur":409,"lear":410,"Ġangle":411,"ath":412,"Ġway":413,"Ġthan":414,"Ġbu":415,"Ġblo":416,"Ġmo":417,"Ġman":418,"Ġmath":419,"Ġnum":420,"out":421,"ount":422,"Ġequ":423,"Ġland":424,"Ġrange":425,"Ġradius":426,"Ġhun":427,"Ġhas":428,"Ġdog":429,"area":430,"dred":431,"ĠFalse":432,"ĠTrue":433,"Ġtriangle":434,"Ġangles":435,"Ġblock":436,"Ġnumber":437,"Ġhundred":438}
|