metadata
license: mit
tags:
- image-classification
- cifar100
- geometric-learning
- fractal-encoding
- trained
- no-attention
- no-cross-entropy
datasets:
- cifar100
metrics:
- accuracy
library_name: pytorch
pipeline_tag: image-classification
model-index:
- name: geo-beatrix-resnet18-imagenetpretrain-step18-feats1000
results:
- task:
type: image-classification
name: Image Classification
dataset:
name: CIFAR-100
type: cifar100
metrics:
- type: accuracy
value: 56.12
name: Test Accuracy
verified: false
geo-beatrix-resnet18-imagenetpretrain-step18-feats1000
Geometric Basin Classification for CIFAR-100
π Training Complete π
Final Status: Epoch 200/200
Current Performance
| Metric | Value |
|---|---|
| Best Test Accuracy | 56.12% |
| Best Epoch | 160 |
| Current Train Accuracy | 67.82% |
| Current Test Accuracy | 54.90% |
| Current Ξ± (Cantor param) | 0.4481 |
| Total Parameters | 17,738,741 |
| Training Time | 0:27:21 |
All Training Runs
| Timestamp | Status | Best Epoch | Test Acc | Train Acc | Ξ± |
|---|---|---|---|---|---|
20251010_203717 |
β | 160 | 56.12% | 67.82% | 0.4481 |
20251010_200842 |
β | 180 | 53.61% | 67.53% | 0.4442 |
20251010_185133 |
β | 200 | 52.97% | 69.87% | 0.4452 |
Comparison to State-of-the-Art
| Model | Accuracy | Status |
|---|---|---|
| geo-beatrix (this model) | 56.12% | β Complete |
| geo-beatrix | 69.0% | Geometric Basin CONV architecture - 50m Params |
π― Current target: Beat geo-beatrix (69.0%) - Currently -12.88%
Architecture
- Base: ResNet18 (torchvision)
- Pretrained: ImageNet
- Features: 512-dim from ResNet18
- Positional Encoding: Devil's Staircase (Cantor function, 1883)
- PE Levels: 18
- PE Features/Level: 1000
- Classification: Geometric Basin Compatibility (NO cross-entropy)
- Attention Mechanisms: NONE
- Mixing: Fractal (triadic multi-patch)
Training Configuration
{
"model_name": "geo-beatrix-resnet18-imagenetpretrain-step18-feats1000",
"model_type": "geometric_basin_classifier",
"num_classes": 100,
"batch_size": 512,
"num_epochs": 200,
"base_learning_rate": 0.002,
"weight_decay": 0.05,
"warmup_epochs": 10,
"pe_levels": 18,
"pe_features_per_level": 1000,
"dropout": 0.1,
"pretrained_resnet": true,
"a100_optimizations": {
"mixed_precision": true,
"torch_compile": false,
"channels_last": true,
"gradient_checkpointing": false
},
"alphamix": {
"enabled": true,
"fractal_mode": true,
"range": [
0.3,
0.7
],
"spatial_ratio": 0.25,
"curriculum_start": 0.0,
"curriculum_end": 0.5,
"fractal_steps": [
1,
3
],
"fractal_scales": [
0.3333333333333333,
0.1111111111111111,
0.037037037037037035
]
},
"architecture": "ResNet18 + Beatrix's Staircase PE",
"loss_function": "Geometric Basin Compatibility",
"cross_entropy": false,
"attention_mechanisms": false,
"timestamp": "20251010_203717"
}
Files Structure
βββ model.pt (BEST overall model - easy access!)
βββ model.safetensors (BEST overall model - easy access!)
βββ best_model_info.json (which epoch/run this came from)
βββ runs_history.json (all training runs and their results)
βββ README.md
βββ weights/geo-beatrix-resnet18-imagenetpretrain-step18-feats1000/20251010_203717/
β βββ model.pt (best from this training run)
β βββ model.safetensors (best from this training run)
β βββ config.json
β βββ training_log.txt
β βββ checkpoints/
β βββ checkpoint_epoch_50.safetensors
β βββ checkpoint_epoch_100.safetensors
β βββ checkpoint_epoch_150.safetensors
β (snapshots every 10 epochs)
βββ runs/geo-beatrix-resnet18-imagenetpretrain-step18-feats1000/20251010_203717/
βββ events.out.tfevents.* (TensorBoard logs)
βββ metrics.csv (training metrics)
Note: The root model.pt and model.safetensors always contain the best model across all training runs!
Usage
from huggingface_hub import hf_hub_download
import torch
# EASIEST: Download BEST overall model from root (recommended!)
from safetensors.torch import load_file
model_path = hf_hub_download(
repo_id="AbstractPhil/geo-beatrix-resnet",
filename="model.safetensors"
)
state_dict = load_file(model_path)
# model.load_state_dict(state_dict)
# Check which epoch/run the best model came from
info_path = hf_hub_download(
repo_id="AbstractPhil/geo-beatrix-resnet",
filename="best_model_info.json"
)
with open(info_path) as f:
best_info = json.load(f)
print(f"Best model: epoch {best_info['epoch']}, {best_info['test_accuracy']:.2f}%")
# Or download from specific training run
model_path = hf_hub_download(
repo_id="AbstractPhil/geo-beatrix-resnet",
filename="weights/geo-beatrix-resnet18-imagenetpretrain-step18-feats1000/20251010_203717/model.safetensors"
)
# Download specific epoch checkpoint
epoch_checkpoint = hf_hub_download(
repo_id="AbstractPhil/geo-beatrix-resnet",
filename="weights/geo-beatrix-resnet18-imagenetpretrain-step18-feats1000/20251010_203717/checkpoints/checkpoint_epoch_100.safetensors"
)
Training History
Best Checkpoint
- Epoch: 160
- Train Acc: 75.82%
- Test Acc: 56.12%
- Alpha: 0.4504
- Loss: 0.7204
Latest 5 Epochs
- Epoch 196: Train 72.92%, Test 0.00%, Ξ±=0.4481, Loss=0.6446
- Epoch 197: Train 68.70%, Test 0.00%, Ξ±=0.4481, Loss=0.6144
- Epoch 198: Train 70.45%, Test 0.00%, Ξ±=0.4481, Loss=0.6430
- Epoch 199: Train 71.07%, Test 0.00%, Ξ±=0.4481, Loss=0.6430
- Epoch 200: Train 67.82%, Test 54.90%, Ξ±=0.4481, Loss=0.6142
Training Milestones
- π― 50% Accuracy reached at epoch 50
- π Ξ± β₯ 0.40 reached at epoch 9
- π Ξ± β₯ 0.44 (near triadic equilibrium) at epoch 52
Innovation
β
NO attention mechanisms
β
NO cross-entropy loss
β
Fractal positional encoding (Cantor function from 1883)
β
Geometric compatibility classification
β
ResNet18 backbone (proven CNN architecture)
β
Triadic fractal mixing (base-3 aligned)
Repository: https://huggingface.co/AbstractPhil/geo-beatrix-resnet
Author: AbstractPhil
Framework: PyTorch