- MICROD-BIGRAM-V2.5
- CHANGE LOG โ Updated 2026-10-25
- Reference Architectures
- Model Details
- Training Notes
- Hardware Requirements
- Test Wrappers Included
- Optional: Enhance test.sh / run.sh to Automate the Suite
- Optional: How to Add Data & Enhance the Tests
- How the Quantum Oscillators Work for Seeding
- Files in the Bundle
- Training Pipeline
- Data Sources
- License
MICROD-BIGRAM-V2.5
This model was trained from scratch using a combination of:
- Simplified policy-gradient (GRPO-style) for character-level trajectory training
- VAE fields recorded as metadata only (do not affect the transition table)
- 4ร quantum harmonic oscillator superposition for deterministic seeding
It is a compact character-level bigram model โ no transformer weights, just transition probabilities. Runs entirely in the browser or on any machine with Python 3.8+.
This model was produced with Micro Distillery v2.5 โ a single-file HTML PWA that fetches open corpora, trains a bigram model, applies optional NLP fan-out polish, and exports a HuggingFace-ready .zip bundle. Includes the Jev Code Nous deterministic API layer for coding-focused token prediction (harness only).
Available for download in the repo folder. Here
CHANGE LOG โ Updated 2026-10-25
Maintenance + feature release for the browser trainer. Bundle format remains mD-v2 / 2.5.0. No breaking changes to the exported artifact schema.
Added
- Enhanced Fan-out NLP Polish (v2) โ configurable LanguageTool (off / public / custom URL), MyMemory paraphrase round-trip with daily quota tracking, Datamuse lexical scoring + cache. Status badges, diagnostics table, and in-flight guards.
- Jev Code โ Nous Deterministic API Layer โ harness-only coding-focused token prediction pipeline (tokenize โ context โ candidates โ score โ select โ validate). Local, seeded, no network. Per-request yes/no confirmation modal.
- Self-host LanguageTool quick-start โ Docker and MindTab proxy snippets in the UI.
- QFM (Quality Filter Module) inspect for harness uploads and artifact validation.
- Export options โ selective inclusion of config, vocab, logs, knowledge graph, diagrams, and
to_parquet.py.
Fixed (fan-out review pass N01โN25)
- N01/N02:
ltStatusgains'unverified'state; badges render?for it. - N03/N24: MyMemory quota-exhausted is distinct (
'quota') and pre-checked with round-trip headroom. - N06/N07: HTTP-prefixed errors classify as
'unreachable', not'cors-blocked'. - N08: LanguageTool test button disabled when mode is off.
- N09: Fan-out โRun testโ has an in-flight guard.
- N12:
lt-status-labelconsistent with mode (showsmode ยท ?when unverified). - N14: Cache column distinguishes
'partial'. - N16: LT test reads live URL input value.
- N18: Custom URL auto-prepends
http://when scheme is missing. - N20: Truncated MyMemory
qis trimmed to word boundary. - N21: Wizard-seen
localStorageflag set only afteropenWizardsucceeds. - N25: Fan-out diagnostics message cap raised to 48 with ellipsis.
Changed
- Version string v2.5 / format
mD-v2/ artifact version2.5.0. - Honest training notes expanded in exported
README.mdandconfig.json(no real transformer, no real VAE, no emitted EOS token, heuristic reward). - Mutual exclusion of async ops (
fetch/train/ harness) viastate.training+state.fetching. - LanguageTool defaults to off (public endpoint is CORS-blocked from browsers).
Notes
- This remains a base model and needs added datasets to it's folder to be more robust. The โmodelโ is a 27ร27 character-bigram transition table.
- VAE
latent_dimandfilter_thresholdappear in config for reference only and do not affect transitions. - No explicit EOS token is emitted; generation is bounded by
max_tokens. BOS (space) is the practical trajectory end signal. - Jev Code runs only inside the Harness modal and never makes network calls.
Reference Architectures
The bundle metadata references these modern open models as inspiration sources. The actual model is a distilled bigram โ not a transformer checkpoint โ and does not load via AutoModelForCausalLM.
- SmolLM2-135M (HuggingFaceTB)
- Qwen2.5-0.5B (Qwen)
- OLMo-2-1B (AllenAI)
- TinyLlama-1.1B (TinyLlama)
Model Details
- Format:
mD-v2 - Version:
2.5.0 - Reference arch: tiny-bigram (default) โ selectable metadata: SmolLM2-135M / Qwen2.5-0.5B / OLMo-2-1B / TinyLlama-1.1B
- Vocab size: 27 tokens (
aโz+ space) - Transition states: 27 (source states)
- Harmonic seed: 1251963776 (default; driven by 4ร oscillator measurement)
- Training method: simplified policy-gradient with KL mixing
- Created: session timestamp (ISO)
Training Notes
- No transformer, no attention, no GPU. The model is a character-bigram transition table.
- โGRPOโ is simplified. Trajectories are sampled, scored with a heuristic text-shape reward (length, alpha-only, vowel-ending, no-triples), advantages are z-scored, high-advantage transitions are multiplied by
(1 + lr ร advantage), then KL-mixed toward a reference snapshot. Reported loss is-mean(advantage ร log_prob). - VAE fields are metadata-only. They do not filter or encode anything.
- Reward is heuristic, not a learned reward model.
- No explicit EOS token. Sentinels are declared for schema compatibility only and are never emitted.
Hardware Requirements
Component Minimum Requirements Recommended (for Self-Hosting Extensions) Processor (CPU) Any modern CPU (Intel Atom, Celeron, Raspberry Pi 3+, or newer) Intel Core i3 / AMD Ryzen 3 or equivalent Graphics (GPU) None (Not Supported) None (Not Supported) Memory (RAM) 128 MB (Total script footprint is < 5 MB) 4 GB to 8 GB (Only if running optional Docker containers) Storage < 1 MB for the model files 10 GB (If downloading external training datasets)
Test Wrappers Included
cd /the folder you have the files in/
# 1. Run the test harness
chmod +x test.sh run.sh
./test.sh
# 2. Or chat directly
python3 test.py
Optional: Enhance test.sh / run.sh to Automate the Suite
Update your bash test harness script to systematically validate predictions, catch empty states, and verify output stability across your custom files.
Optional: How to Add Data & Enhance the Tests
Because this is an ultra-compact character model trained primarily on Andrej Karpathyโs names.txt corpus (plus optional README cards), you can enhance coverage by feeding alternative datasets via the browser Harness (drag-and-drop .txt / .md / .json / .zip) or by updating the wrapper code after export.
How the Quantum Oscillators Work for Seeding
The 4ร quantum harmonic oscillator superposition does not process token prediction step-by-step during inference. It runs at the end of the pipeline to establish a deterministic seed.
| Component | Operational Role |
|---|---|
| Simulated Superposition | Algorithmic simulation of 4 oscillators with frequencies ฯ = 1, ฯ, 2, ฯ. |
| Wavefunction Collapse | Measurement collapses the superposition to a single integer (default harmonic seed 1251963776). |
| Deterministic Initialization | The seed locks the PRNG used for sampling and reproducible transition probabilities in model.json. |
Files in the Bundle
| File | Description |
| --------------------------- | ------------------------------------------------ |
| `model.json` | Trained bigram model (transitions + config) |
| `config.json` | HuggingFace-style metadata |
| `vocab.json` | Character vocabulary |
| `tokenizer_config.json` | Tokenizer metadata (sentinels declared only) |
| `knowledge_graph.json` | 2D graph seeded from corpus |
| `training_logs.json` | Per-step metrics + quantum measurements |
| `test.py` | Interactive chat wrapper |
| `test.sh` | Test harness |
| `test_readme.md` | Testing instructions |
| `run.sh` | Minimal launcher |
| `to_parquet.py` | Convert transitions to parquet |
| `manifest.json` | Bundle checksums (self-excluded) |
| `diagrams/pipeline.svg` | Training pipeline diagram |
| `diagrams/architecture.svg` | Model architecture diagram |
| `README.md` | This model card |
| `LICENSE` | Apache 2.0 |
Training Pipeline
- Fetch โ pull corpus from HuggingFace + GitHub (open 2026 endpoints) or use bundled fallback
- Knowledge graph โ build character-transition graph, laid out in 2D
- Seed โ initialize bigram transition counts from the corpus
- Simplified GRPO โ sample trajectories, heuristic reward, advantage update + KL mix
- VAE metadata โ record latent_dim / filter_threshold (no effect on table)
- Quantum seed โ 4 harmonic oscillators (ฯ = 1, ฯ, 2, ฯ) collapse to deterministic seed
- Export โ HuggingFace-ready
.zipwith model card, tests, diagrams, manifest
Optional at inference time (browser only): Fan-out NLP polish (LanguageTool / MyMemory / Datamuse) and Jev Code deterministic coding token prediction.
Data Sources
This bundle was produced by fetching from these free, open endpoints (with cache fallback):
raw.githubusercontent.com/karpathy/makemore/master/names.txt(training corpus)huggingface.co/HuggingFaceTB/SmolLM2-135M/raw/main/README.md(model card)huggingface.co/api/models?search=smollm2&limit=5(KG enrichment only)- (Optional / fan-out)
api.languagetool.org/v2/check,api.mymemory.translated.net/get,api.datamuse.com/words
License
Apache 2.0
- Downloads last month
- 148
Model tree for webxos/microd-bigram-v2
Base model
HuggingFaceTB/SmolLM2-135M