Epoch 50: 58.38%
Browse files
README.md
CHANGED
|
@@ -5,7 +5,7 @@ tags:
|
|
| 5 |
- cifar100
|
| 6 |
- geometric-learning
|
| 7 |
- fractal-encoding
|
| 8 |
-
-
|
| 9 |
- no-attention
|
| 10 |
- no-cross-entropy
|
| 11 |
datasets:
|
|
@@ -25,7 +25,7 @@ model-index:
|
|
| 25 |
type: cifar100
|
| 26 |
metrics:
|
| 27 |
- type: accuracy
|
| 28 |
-
value:
|
| 29 |
name: Test Accuracy
|
| 30 |
verified: false
|
| 31 |
---
|
|
@@ -34,9 +34,9 @@ model-index:
|
|
| 34 |
|
| 35 |
**Geometric Basin Classification for CIFAR-100**
|
| 36 |
|
| 37 |
-
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
---
|
| 42 |
|
|
@@ -44,24 +44,24 @@ Final Status: Epoch 200/200
|
|
| 44 |
|
| 45 |
| Metric | Value |
|
| 46 |
|--------|-------|
|
| 47 |
-
| **Best Test Accuracy** | **
|
| 48 |
-
| **Best Epoch** |
|
| 49 |
-
| **Current Train Accuracy** |
|
| 50 |
-
| **Current Test Accuracy** |
|
| 51 |
-
| **Current Ξ± (Cantor param)** | 0.
|
| 52 |
-
| **Total Parameters** | 45,
|
| 53 |
-
| **Training Time** |
|
| 54 |
|
| 55 |
### Comparison to State-of-the-Art
|
| 56 |
|
| 57 |
| Model | Accuracy | Status |
|
| 58 |
|-------|----------|--------|
|
| 59 |
-
| **geo-beatrix (this model)** | **
|
| 60 |
| vit-beatrix-dualstream | 66.0% | Vision Transformer + Cross-Entropy |
|
| 61 |
| CLIP ViT-L/14 (zero-shot) | ~63-65% | 400M image-text pairs |
|
| 62 |
| CLIP ViT-B/32 (zero-shot) | ~63.5% | Vision Transformer |
|
| 63 |
|
| 64 |
-
|
| 65 |
|
| 66 |
---
|
| 67 |
|
|
@@ -71,7 +71,7 @@ Final Status: Epoch 200/200
|
|
| 71 |
- **Channels**: 64 β 128 β 256 β 512 β 1024
|
| 72 |
- **Positional Encoding**: Devil's Staircase (Cantor function, 1883)
|
| 73 |
- **PE Levels**: 20
|
| 74 |
-
- **PE Features/Level**:
|
| 75 |
- **Classification**: Geometric Basin Compatibility (NO cross-entropy)
|
| 76 |
- **Attention Mechanisms**: NONE
|
| 77 |
|
|
@@ -90,9 +90,9 @@ Final Status: Epoch 200/200
|
|
| 90 |
"weight_decay": 0.05,
|
| 91 |
"warmup_epochs": 10,
|
| 92 |
"pe_levels": 20,
|
| 93 |
-
"pe_features_per_level":
|
| 94 |
"dropout": 0.1,
|
| 95 |
-
"upload_every_n_epochs":
|
| 96 |
"alphamix": {
|
| 97 |
"enabled": true,
|
| 98 |
"range": [
|
|
@@ -107,7 +107,7 @@ Final Status: Epoch 200/200
|
|
| 107 |
"loss_function": "Geometric Basin Compatibility",
|
| 108 |
"cross_entropy": false,
|
| 109 |
"attention_mechanisms": false,
|
| 110 |
-
"timestamp": "
|
| 111 |
}
|
| 112 |
```
|
| 113 |
|
|
@@ -116,22 +116,27 @@ Final Status: Epoch 200/200
|
|
| 116 |
## Files Structure
|
| 117 |
|
| 118 |
```
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
|
|
|
|
|
|
|
|
|
| 133 |
```
|
| 134 |
|
|
|
|
|
|
|
| 135 |
---
|
| 136 |
|
| 137 |
## Usage
|
|
@@ -140,34 +145,34 @@ runs/geo-beatrix/20251009_222052/
|
|
| 140 |
from huggingface_hub import hf_hub_download
|
| 141 |
import torch
|
| 142 |
|
| 143 |
-
# Download
|
| 144 |
from safetensors.torch import load_file
|
| 145 |
model_path = hf_hub_download(
|
| 146 |
repo_id="AbstractPhil/geo-beatrix",
|
| 147 |
-
filename="
|
| 148 |
)
|
| 149 |
state_dict = load_file(model_path)
|
| 150 |
# model.load_state_dict(state_dict)
|
| 151 |
|
| 152 |
-
#
|
| 153 |
-
|
| 154 |
repo_id="AbstractPhil/geo-beatrix",
|
| 155 |
-
filename="
|
| 156 |
)
|
| 157 |
-
|
| 158 |
-
|
|
|
|
| 159 |
|
| 160 |
-
#
|
| 161 |
-
|
| 162 |
repo_id="AbstractPhil/geo-beatrix",
|
| 163 |
-
filename="weights/geo-beatrix/
|
| 164 |
)
|
| 165 |
|
| 166 |
-
# Download
|
| 167 |
-
|
| 168 |
-
tensorboard_files = hf_hub_download(
|
| 169 |
repo_id="AbstractPhil/geo-beatrix",
|
| 170 |
-
filename="
|
| 171 |
)
|
| 172 |
```
|
| 173 |
|
|
@@ -176,27 +181,23 @@ tensorboard_files = hf_hub_download(
|
|
| 176 |
## Training History
|
| 177 |
|
| 178 |
### Best Checkpoint
|
| 179 |
-
- Epoch:
|
| 180 |
-
- Train Acc:
|
| 181 |
-
- Test Acc:
|
| 182 |
-
- Alpha: 0.
|
| 183 |
-
- Loss:
|
| 184 |
|
| 185 |
### Latest 5 Epochs
|
| 186 |
|
| 187 |
-
- **Epoch
|
| 188 |
-
- **Epoch
|
| 189 |
-
- **Epoch
|
| 190 |
-
- **Epoch
|
| 191 |
-
- **Epoch
|
| 192 |
|
| 193 |
### Training Milestones
|
| 194 |
-
- π― **50% Accuracy** reached at epoch
|
| 195 |
-
-
|
| 196 |
-
- π **Beat vit-beatrix (66.0%)** at epoch 140
|
| 197 |
-
- π **67% Accuracy** reached at epoch 190
|
| 198 |
-
- π **Ξ± β₯ 0.40** reached at epoch 10
|
| 199 |
-
- π **Ξ± β₯ 0.44** (near triadic equilibrium) at epoch 116
|
| 200 |
|
| 201 |
---
|
| 202 |
|
|
|
|
| 5 |
- cifar100
|
| 6 |
- geometric-learning
|
| 7 |
- fractal-encoding
|
| 8 |
+
- in-training
|
| 9 |
- no-attention
|
| 10 |
- no-cross-entropy
|
| 11 |
datasets:
|
|
|
|
| 25 |
type: cifar100
|
| 26 |
metrics:
|
| 27 |
- type: accuracy
|
| 28 |
+
value: 58.38
|
| 29 |
name: Test Accuracy
|
| 30 |
verified: false
|
| 31 |
---
|
|
|
|
| 34 |
|
| 35 |
**Geometric Basin Classification for CIFAR-100**
|
| 36 |
|
| 37 |
+
π§ **Training in Progress** π§
|
| 38 |
|
| 39 |
+
Current Status: Epoch 50/200
|
| 40 |
|
| 41 |
---
|
| 42 |
|
|
|
|
| 44 |
|
| 45 |
| Metric | Value |
|
| 46 |
|--------|-------|
|
| 47 |
+
| **Best Test Accuracy** | **58.38%** |
|
| 48 |
+
| **Best Epoch** | 50 |
|
| 49 |
+
| **Current Train Accuracy** | 62.04% |
|
| 50 |
+
| **Current Test Accuracy** | 58.38% |
|
| 51 |
+
| **Current Ξ± (Cantor param)** | 0.4225 |
|
| 52 |
+
| **Total Parameters** | 45,235,067 |
|
| 53 |
+
| **Training Time** | 0:12:52 |
|
| 54 |
|
| 55 |
### Comparison to State-of-the-Art
|
| 56 |
|
| 57 |
| Model | Accuracy | Status |
|
| 58 |
|-------|----------|--------|
|
| 59 |
+
| **geo-beatrix (this model)** | **58.38%** | π Training |
|
| 60 |
| vit-beatrix-dualstream | 66.0% | Vision Transformer + Cross-Entropy |
|
| 61 |
| CLIP ViT-L/14 (zero-shot) | ~63-65% | 400M image-text pairs |
|
| 62 |
| CLIP ViT-B/32 (zero-shot) | ~63.5% | Vision Transformer |
|
| 63 |
|
| 64 |
+
π― **Current target**: Beat vit-beatrix (66.0%) - Currently -7.62%
|
| 65 |
|
| 66 |
---
|
| 67 |
|
|
|
|
| 71 |
- **Channels**: 64 β 128 β 256 β 512 β 1024
|
| 72 |
- **Positional Encoding**: Devil's Staircase (Cantor function, 1883)
|
| 73 |
- **PE Levels**: 20
|
| 74 |
+
- **PE Features/Level**: 10
|
| 75 |
- **Classification**: Geometric Basin Compatibility (NO cross-entropy)
|
| 76 |
- **Attention Mechanisms**: NONE
|
| 77 |
|
|
|
|
| 90 |
"weight_decay": 0.05,
|
| 91 |
"warmup_epochs": 10,
|
| 92 |
"pe_levels": 20,
|
| 93 |
+
"pe_features_per_level": 10,
|
| 94 |
"dropout": 0.1,
|
| 95 |
+
"upload_every_n_epochs": 50,
|
| 96 |
"alphamix": {
|
| 97 |
"enabled": true,
|
| 98 |
"range": [
|
|
|
|
| 107 |
"loss_function": "Geometric Basin Compatibility",
|
| 108 |
"cross_entropy": false,
|
| 109 |
"attention_mechanisms": false,
|
| 110 |
+
"timestamp": "20251009_234907"
|
| 111 |
}
|
| 112 |
```
|
| 113 |
|
|
|
|
| 116 |
## Files Structure
|
| 117 |
|
| 118 |
```
|
| 119 |
+
βββ model.pt (BEST overall model - easy access!)
|
| 120 |
+
βββ model.safetensors (BEST overall model - easy access!)
|
| 121 |
+
βββ best_model_info.json (which epoch/run this came from)
|
| 122 |
+
βββ README.md
|
| 123 |
+
βββ weights/geo-beatrix/20251009_234907/
|
| 124 |
+
β βββ model.pt (best from this training run)
|
| 125 |
+
β βββ model.safetensors (best from this training run)
|
| 126 |
+
β βββ config.json
|
| 127 |
+
β βββ training_log.txt
|
| 128 |
+
β βββ checkpoints/
|
| 129 |
+
β βββ checkpoint_epoch_10.safetensors
|
| 130 |
+
β βββ checkpoint_epoch_20.safetensors
|
| 131 |
+
β βββ checkpoint_epoch_30.safetensors
|
| 132 |
+
β (snapshots every 50 epochs)
|
| 133 |
+
βββ runs/geo-beatrix/20251009_234907/
|
| 134 |
+
βββ events.out.tfevents.* (TensorBoard logs)
|
| 135 |
+
βββ metrics.csv (training metrics)
|
| 136 |
```
|
| 137 |
|
| 138 |
+
**Note**: The root `model.pt` and `model.safetensors` always contain the best model across all training runs!
|
| 139 |
+
|
| 140 |
---
|
| 141 |
|
| 142 |
## Usage
|
|
|
|
| 145 |
from huggingface_hub import hf_hub_download
|
| 146 |
import torch
|
| 147 |
|
| 148 |
+
# EASIEST: Download BEST overall model from root (recommended!)
|
| 149 |
from safetensors.torch import load_file
|
| 150 |
model_path = hf_hub_download(
|
| 151 |
repo_id="AbstractPhil/geo-beatrix",
|
| 152 |
+
filename="model.safetensors"
|
| 153 |
)
|
| 154 |
state_dict = load_file(model_path)
|
| 155 |
# model.load_state_dict(state_dict)
|
| 156 |
|
| 157 |
+
# Check which epoch/run the best model came from
|
| 158 |
+
info_path = hf_hub_download(
|
| 159 |
repo_id="AbstractPhil/geo-beatrix",
|
| 160 |
+
filename="best_model_info.json"
|
| 161 |
)
|
| 162 |
+
with open(info_path) as f:
|
| 163 |
+
best_info = json.load(f)
|
| 164 |
+
print(f"Best model: epoch {best_info['epoch']}, {best_info['test_accuracy']:.2f}%")
|
| 165 |
|
| 166 |
+
# Or download from specific training run
|
| 167 |
+
model_path = hf_hub_download(
|
| 168 |
repo_id="AbstractPhil/geo-beatrix",
|
| 169 |
+
filename="weights/geo-beatrix/20251009_234907/model.safetensors"
|
| 170 |
)
|
| 171 |
|
| 172 |
+
# Download specific epoch checkpoint
|
| 173 |
+
epoch_checkpoint = hf_hub_download(
|
|
|
|
| 174 |
repo_id="AbstractPhil/geo-beatrix",
|
| 175 |
+
filename="weights/geo-beatrix/20251009_234907/checkpoints/checkpoint_epoch_100.safetensors"
|
| 176 |
)
|
| 177 |
```
|
| 178 |
|
|
|
|
| 181 |
## Training History
|
| 182 |
|
| 183 |
### Best Checkpoint
|
| 184 |
+
- Epoch: 50
|
| 185 |
+
- Train Acc: 62.04%
|
| 186 |
+
- Test Acc: 58.38%
|
| 187 |
+
- Alpha: 0.4225
|
| 188 |
+
- Loss: 1.1254
|
| 189 |
|
| 190 |
### Latest 5 Epochs
|
| 191 |
|
| 192 |
+
- **Epoch 46**: Train 59.73%, Test 0.00%, Ξ±=0.4210, Loss=1.1882
|
| 193 |
+
- **Epoch 47**: Train 59.23%, Test 0.00%, Ξ±=0.4176, Loss=1.1413
|
| 194 |
+
- **Epoch 48**: Train 60.73%, Test 0.00%, Ξ±=0.4184, Loss=1.1374
|
| 195 |
+
- **Epoch 49**: Train 60.30%, Test 0.00%, Ξ±=0.4126, Loss=1.1244
|
| 196 |
+
- **Epoch 50**: Train 62.04%, Test 58.38%, Ξ±=0.4225, Loss=1.1254
|
| 197 |
|
| 198 |
### Training Milestones
|
| 199 |
+
- π― **50% Accuracy** reached at epoch 35
|
| 200 |
+
- π **Ξ± β₯ 0.40** reached at epoch 9
|
|
|
|
|
|
|
|
|
|
|
|
|
| 201 |
|
| 202 |
---
|
| 203 |
|