Downloads · 30 days
8
4% of all-time downloads
AbstractPhil/geovit-david-beans-run002-5expert
geovit-david-beans-run002-5expert is a image classification model from AbstractPhil. Use it when you need a label for an image. It is set up for pytorch. The card lists the license as apache-2.0.
DavidBeans combines ViT-Beans (Cantor-routed sparse attention) with David (multi-scale crystal classification) into a unified geometric deep learning architecture.
Downloads · 30 days
8
4% of all-time downloads
All-time downloads
194
Public
Parameters
18.8M
3 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin75.5 MB · 50%
How the weights are stored.
F3218.8M · 100%
From the Hugging Face model README
DavidBeans combines ViT-Beans (Cantor-routed sparse attention) with David (multi-scale crystal classification) into a unified geometric deep learning architecture.
This model implements several novel techniques:
Image [B, 3, 32, 32]
│
▼
┌─────────────────────────────────────────┐
│ BEANS BACKBONE │
│ ├─ Patch Embed → [64 patches, 512d]
│ ├─ Hybrid Cantor Router (α=0.3)
│ ├─ 4 × Attention Blocks (16 heads)
│ └─ 4 × Pentachoron Expert Layers
└─────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────┐
│ DAVID HEAD │
│ ├─ Multi-scale projection: [256, 384, 512, 640, 768]
│ ├─ Per-scale Crystal Heads
│ └─ Geometric Fusion (learned weights)
└─────────────────────────────────────────┘
│
▼
[100 classes]
| Parameter | Value |
|---|---|
| Dataset | CIFAR-100 |
| Classes | 100 |
| Image Size | 32×32 |
| Patch Size | 4×4 |
| Embedding Dim | 512 |
| Layers | 4 |
| Attention Heads | 16 |
| Experts | 5 (pentachoron) |
| Sparse Neighbors | k=32 |
| Scales | [256, 384, 512, 640, 768] |
| Epochs | 200 |
| Batch Size | 128 |
| Learning Rate | 0.0005 |
| Weight Decay | 0.1 |
| Mixup α | 0.3 |
| CutMix α | 1.0 |
| Label Smoothing | 0.1 |
| Metric | Value |
|---|---|
| Top-1 Accuracy | 68.34% |
Training logs are included in the tensorboard/ directory. To view:
tensorboard --logdir tensorboard/
import torch
from safetensors.torch import load_file
from david_beans import DavidBeans, DavidBeansConfig
# Load config
config = DavidBeansConfig(
image_size=32,
patch_size=4,
dim=512,
num_layers=4,
num_heads=16,
num_experts=5,
k_neighbors=32,
cantor_weight=0.3,
scales=[256, 384, 512, 640, 768],
num_classes=100
)
# Create model and load weights
model = DavidBeans(config)
state_dict = load_file("model.safetensors")
model.load_state_dict(state_dict)
# Inference
model.eval()
with torch.no_grad():
output = model(images)
predictions = output['logits'].argmax(dim=-1)
@misc{davidbeans2025,
author = {AbstractPhil},
title = {DavidBeans: Unified Vision-to-Crystal Architecture},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/AbstractPhil/geovit-david-beans}
}
Apache 2.0