Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
| 1 |
---
|
| 2 |
license: other
|
|
|
|
| 3 |
tags:
|
|
|
|
| 4 |
- ufo-compression
|
| 5 |
-
-
|
| 6 |
-
-
|
| 7 |
-
-
|
| 8 |
-
- edge-ai
|
| 9 |
language:
|
| 10 |
- en
|
| 11 |
pipeline_tag: text-generation
|
|
@@ -13,49 +14,69 @@ pipeline_tag: text-generation
|
|
| 13 |
|
| 14 |

|
| 15 |
|
| 16 |
-
# S-PAUP Dynamic JIT Weights Router & VRAM Optimizer
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
---
|
| 23 |
|
| 24 |
-
##
|
|
|
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
---
|
| 35 |
|
| 36 |
-
##
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
* **
|
| 40 |
-
* **
|
| 41 |
-
* **VRAM footprint reduction:**
|
| 42 |
-
* Each specialized domain adapter consumes only **624 KB** of VRAM.
|
| 43 |
-
* Naive simultaneous adapter loading VRAM footprint (4 domains): **2,496 KB**
|
| 44 |
-
* Semantic JIT weights routing VRAM footprint (1 active): **624 KB**
|
| 45 |
-
* **Net VRAM Reclaimed:** **1,872 KB (1.828 MB)**
|
| 46 |
-
* Scaling: GPU VRAM overhead remains completely flat at **1 active adapter** ($1 imes 624$ KB) regardless of whether $N=4$ or $N=50$ domains are configured.
|
| 47 |
-
* **Lossless Restoration:** 100% bitwise parity is verified post-inference, returning base layers to their original states.
|
| 48 |
|
| 49 |
---
|
| 50 |
|
| 51 |
-
##
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
###
|
| 55 |
-
*
|
| 56 |
-
*
|
| 57 |
-
* **
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
---
|
| 61 |
|
|
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
+
base_model: arnir0/Tiny-LLM
|
| 4 |
tags:
|
| 5 |
+
- subzero
|
| 6 |
- ufo-compression
|
| 7 |
+
- 1paup
|
| 8 |
+
- fec-recovery
|
| 9 |
+
- proofs
|
|
|
|
| 10 |
language:
|
| 11 |
- en
|
| 12 |
pipeline_tag: text-generation
|
|
|
|
| 14 |
|
| 15 |

|
| 16 |
|
|
|
|
| 17 |
|
| 18 |
+
# SubZeroLLM Claim Verification & Proofs Card (S-PAUP-JIT-Weights-Router)
|
| 19 |
|
| 20 |
+
The `SubZeroLLM` series houses portable LoRA models, claims verification suites, and roundtrip evaluation runs (like the Phase 16 A-to-B packetset restore proofs) designed to validate the reliability of the 1-PAUP and UFO restore protocols under extreme transmission limits.
|
| 21 |
|
| 22 |
---
|
| 23 |
|
| 24 |
+
## Licensing Compliance & Intellectual Property Map
|
| 25 |
+
This repository contains components from multiple origins. Licenses are assigned per component to respect the code we used while strictly protecting Zymatica's intellectual property:
|
| 26 |
|
| 27 |
+
### Third-Party Components (retained under their original licenses)
|
| 28 |
+
| Component | Origin | License | Description |
|
| 29 |
+
| :--- | :--- | :--- | :--- |
|
| 30 |
+
| **PyTorch** | Meta AI | BSD 3-Clause | Deep learning framework used for matrix math |
|
| 31 |
+
| **NumPy** | NumPy Developers | BSD 3-Clause | Numerical computations and random state generation |
|
| 32 |
+
| **safetensors** | HuggingFace Inc. | Apache 2.0 | Standard tensor storage and sharding format |
|
| 33 |
|
| 34 |
+
### Proprietary Components — All Rights Reserved, zymatica.space
|
| 35 |
+
The following are the exclusive intellectual property of **zymatica.space** and are **All Rights Reserved**. No part may be reproduced, distributed, reverse-engineered, modified, or used in any form without explicit written permission:
|
| 36 |
+
* **Language-U Framework:** The compression taxonomy, semantic decomposition theory, Shannon Bypass mathematical framework, and entropy decomposition equations.
|
| 37 |
+
* **Cuneiform-U Semantic Hypercube System (Yin):** The 6-dimensional hypercube mapping along orthogonal axes (Domain, Subdomain, Operation, Modality, Depth, Polarity) and coordinate radical representation schemas ($R_C$, $R_F$, $R_A$).
|
| 38 |
+
* **Cuneiform-U Production Engine (Yang):** Edge-ready semantic range coder production engine.
|
| 39 |
+
* **Genesis Protocol:** The sharded layers transmission & seed reassembly.
|
| 40 |
+
* **ProceduralSeed File Format (`.LLM` / `.genesis`):** The custom binary seed format, layer encoding schemas, coordinate-packing matrices, and weights projection indexing.
|
| 41 |
+
* **Chirp Packetization & FEC Scheme:** The LoRA packet layout wrappers (including 78-chirp and 28-chirp physical packetization formats), Qualia Seed configuration (0xE0), Huffman facts coding mappings, and XOR-FEC (Forward Error Correction) recovery stream algorithms.
|
| 42 |
+
* **SVD/DCT Compression & Reconstructor Pipeline:** The weights reduction algorithms, singular value decomposition (SVD) projection targets, discrete cosine transform (DCT) spectral compression, and grow_weight / shrink_weight reconstruction implementations.
|
| 43 |
+
* **LLM-Logits-Driven Range Coding (LLD-AC):** The active logits-driven probability range coding and decoding mechanisms, dynamic entropy priors, and collapse signal scaling.
|
| 44 |
+
* **Embedding-Driven Weight Projection (E-PAUP / 1-PAUP):** The mathematical projection of target weight deltas/manifolds onto base-model shared word embedding matrices.
|
| 45 |
+
* **Tokenizer Prefix-Suffix Varint Differential Coding:** The lossless tokenizer serialization storing tokens by ID order using variable-length prefix sharing indexes and suffix bytes.
|
| 46 |
+
* **Multi-Language Runtimes & Ports (Yang):** Low-overhead execution runtimes, off-line tokenizers, and edge-optimized memory management bindings (including C++, Rust, Go, Python, Swift, Java, and TypeScript implementations).
|
| 47 |
+
* **SFT Healing & Adaptive Cognitive Alignment:** The LoRA PEFT receiver-side healing loops, multi-task SFT alignment recipes, loss balancing weights, and token-based on-device reconstruction correction scripts (including decode_teleport.py).
|
| 48 |
+
* **Zymatica Inference Engine (Class 27):** Multi-runtime execution inventory containing 27 language and target runtimes.
|
| 49 |
|
| 50 |
---
|
| 51 |
|
| 52 |
+
## Claims Verification & Verification Pipeline
|
| 53 |
+
This repository includes evidence and test runners for verifying absolute reconstruction accuracy:
|
| 54 |
+
* **XOR FEC Recovery:** Proves full-archive error-correction recovery over simulated transmission losses.
|
| 55 |
+
* **1-PAUP / E-PAUP Projections:** Verifies the alignment accuracy of reconstructed SVD weight directions.
|
| 56 |
+
* **Fidelity Testing:** Confirms that model perplexity remains within normal operational boundaries after on-device SFT healing cycles.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
---
|
| 59 |
|
| 60 |
+
## RAK Miner & Edge Device Deployment Guide (4GB RAM)
|
| 61 |
+
From a hardware and systems engineering perspective, this pipeline is designed to execute on resource-constrained edge hardware, such as a **RAK Wireless Miner (typically a Raspberry Pi 4 with 4 GB RAM)**, without triggering Out-of-Memory (OOM) crashes. However, execution must be separated into three distinct phases to ensure 100% reliability:
|
| 62 |
+
|
| 63 |
+
### Phase 1: Weight Reconstruction (SUCCESS ✅)
|
| 64 |
+
* **How it fits:** The decoder generates weights procedurally and streams them directly to sharded `.safetensors` files on the local drive (microSD, USB SSD, or external hard drive) layer-by-layer.
|
| 65 |
+
* **Memory Profile:** By immediately flushing each layer tensor to disk and freeing the RAM buffers, peak memory usage stays **under 1.5 GB RAM**.
|
| 66 |
+
* **Smooth Execution Tip:** Ensure you have at least **15 GB of free space** on your storage drive before starting the reconstruction.
|
| 67 |
+
|
| 68 |
+
### Phase 2: Inference & Execution (SUCCESS ✅ via Single-Layer Streaming)
|
| 69 |
+
* **How it fits:** A 31B or large parameter model normally requires tens of gigabytes of memory. Since the Raspberry Pi uses unified system memory shared between CPU and OS, loading the entire model into RAM is impossible. The runtime solves this by loading only **one active layer** from disk into memory, performing the token attention calculation, and immediately discarding it before loading the next layer.
|
| 70 |
+
* **Memory Profile:** Peak VRAM/RAM consumption remains bounded to **~30 MB to 100 MB** at any single moment.
|
| 71 |
+
* **Smooth Execution Tip:** Disk read latency is the primary bottleneck. Running this from a standard Class 10 microSD card or an external mechanical hard drive (HDD) will introduce seek latency and slow down the layer-streaming process. For a 100% smooth, high-throughput experience, run the model from a **high-speed USB 3.0 SSD** or connect your external hard drive directly to the Pi's USB 3.0 port (blue port) to avoid bus-speed limits.
|
| 72 |
+
|
| 73 |
+
### Phase 3: LoRA SFT Healing (WARNING ⚠️ - Extremely Tight)
|
| 74 |
+
* **The Bottleneck:** Fine-tuning is significantly heavier than inference because backpropagation requires storing activations, gradients, and optimizer states (AdamW) in RAM.
|
| 75 |
+
* **How to prevent OOMs:**
|
| 76 |
+
1. **Strict Parameter Freezing:** Ensure all reconstructed SVD base weights are strictly frozen (`requires_grad = False`). Only train the small embedding and layer normalization tensors.
|
| 77 |
+
2. **Batch Size Limit:** Force a batch size of `1` and gradient accumulation steps if needed.
|
| 78 |
+
3. **Virtual Memory (Swap Space):** Configure a **4 GB or 8 GB swap file** on the SSD or external hard drive to act as virtual memory overflow.
|
| 79 |
+
4. **Optimizer Choice:** Use memory-efficient optimizers (like `Adafactor` or quantized 8-bit optimizers) rather than standard 32-bit `AdamW` if RAM limits are reached.
|
| 80 |
|
| 81 |
---
|
| 82 |
|