BWSK Pythia-1B
Pythia-1B (1010M params) trained in 6 variants (3 BWSK modes x 2 experiments) on WikiText-2 with full convergence training and early stopping.
This repo contains all model weights, configs, and training results in a single consolidated repository.
What is BWSK?
BWSK is a framework that classifies every neural network operation as S-type (information-preserving, reversible, coordination-free) or K-type (information-erasing, synchronization point) using combinator logic. This classification enables reversible backpropagation through S-phases to save memory, and CALM-based parallelism analysis.
Model Overview
| Property | Value |
|---|---|
| Base Model | EleutherAI/pythia-1b |
| Architecture | Transformer (causal_lm) |
| Parameters | 1010M |
| Dataset | WikiText-2 |
| Eval Metric | Perplexity |
S/K Classification
| Type | Ratio |
|---|---|
| S-type (information-preserving) | 67.1% |
| K-type (information-erasing) | 32.9% |
Fine-tune Results
| Mode | Final Loss | Val Perplexity | Test Perplexity | Peak Memory | Time | Epochs |
|---|---|---|---|---|---|---|
| Conventional | 1.7611 | 10.96 | N/A (OOM) | 20.7 GB | 33.0m | 2 |
| BWSK Analyzed | 2.4787 | 10.98 | N/A (OOM) | 20.7 GB | 32.4m | 2 |
| BWSK Reversible | 2.1654 | 10.98 | N/A (OOM) | 20.7 GB | 32.0m | 2 |
Memory savings (reversible vs conventional): 0.0%
From Scratch Results
| Mode | Final Loss | Val Perplexity | Test Perplexity | Peak Memory | Time | Epochs |
|---|---|---|---|---|---|---|
| Conventional | 4.8740 | 205.31 | N/A (OOM) | 20.7 GB | 50.4m | 3 |
| BWSK Analyzed | 3.6692 | 205.26 | N/A (OOM) | 20.7 GB | 50.2m | 3 |
| BWSK Reversible | 4.7875 | 204.14 | N/A (OOM) | 20.7 GB | 50.3m | 3 |
Memory savings (reversible vs conventional): 0.0%
Repository Structure
βββ README.md
βββ results.json
βββ finetune-conventional/
β βββ model.safetensors
β βββ config.json
β βββ training_results.json
βββ finetune-bwsk-analyzed/
β βββ model.safetensors
β βββ config.json
β βββ training_results.json
βββ finetune-bwsk-reversible/
β βββ model.safetensors
β βββ config.json
β βββ training_results.json
βββ scratch-conventional/
β βββ model.safetensors
β βββ config.json
β βββ training_results.json
βββ scratch-bwsk-analyzed/
β βββ model.safetensors
β βββ config.json
β βββ training_results.json
βββ scratch-bwsk-reversible/
β βββ model.safetensors
β βββ config.json
β βββ training_results.json
Usage
Load a specific variant:
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load fine-tuned conventional variant
model = AutoModelForCausalLM.from_pretrained(
"tzervas/bwsk-pythia-1b", subfolder="finetune-conventional"
)
tokenizer = AutoTokenizer.from_pretrained(
"tzervas/bwsk-pythia-1b", subfolder="finetune-conventional"
)
# Load from-scratch BWSK reversible variant
model = AutoModelForCausalLM.from_pretrained(
"tzervas/bwsk-pythia-1b", subfolder="scratch-bwsk-reversible"
)
Training Configuration
| Setting | Value |
|---|---|
| Optimizer | AdamW |
| LR (fine-tune) | 1e-05 |
| LR (from-scratch) | 5e-05 |
| LR Schedule | Cosine with warmup |
| Max Grad Norm | 1.0 |
| Mixed Precision | AMP (float16) |
| Early Stopping | Patience 3 |
| Batch Size | 1 |
| Sequence Length | 256 |
Links
Citation
@software{zervas2026bwsk,
author = {Zervas, Tyler},
title = {BWSK: Combinator-Typed Neural Network Analysis},
year = {2026},
url = {https://github.com/tzervas/ai-s-combinator},
}
License
MIT
Model tree for tzervas/bwsk-pythia-1b
Base model
EleutherAI/pythia-1bDataset used to train tzervas/bwsk-pythia-1b
Evaluation results
- perplexity on wikitextself-reported10.963
- perplexity on wikitextself-reported10.980
- perplexity on wikitextself-reported10.976
- perplexity on wikitextself-reported205.308
- perplexity on wikitextself-reported205.257
- perplexity on wikitextself-reported204.143