breast-cancer-wisconsin-phi-lattice-v2
Second-generation (v2) clinical diagnostic classifier trained on the Breast Cancer Wisconsin (Diagnostic) dataset (569 fine-needle aspirate biopsy samples, 30 cytological features) and quantized with phi-lattice-v2.
1. Quantitative Clinical Benchmark (Baseline FP32 vs Uniform vs phi-lattice v1 vs phi-lattice v2)
| Method | 4-bit Weight SQNR | 4-bit Test Accuracy | 4-bit Sparsity | 3-bit Weight SQNR | 3-bit Test Accuracy | 2-bit Noisy Input Accuracy |
|---|---|---|---|---|---|---|
1. Baseline (FP32) | Reference | 93.86% | 0.00% | Reference | 93.86% | 92.31% |
| 2. Standard Uniform | 20.71 dB | 93.86% | 0.00% | 13.51 dB | 93.86% | 91.61% (SQNR 5.27 dB) |
3. phi-lattice v1 | 18.48 dB | 93.86% | 5.94% | 12.67 dB | 93.86% | 93.01% (SQNR 7.85 dB) |
4. phi-lattice v2 (This Repo) | 19.88 dB (+1.40 dB vs v1) | 93.86% | 9.51% | 13.49 dB (+0.82 dB vs v1) | 93.86% | 93.01% (46.9% sparsity) |
2. Quick Start (weights_only=True)
import torch
from huggingface_hub import hf_hub_download
repo_id = "ununununununununununununununununununun/breast-cancer-wisconsin-phi-lattice-v2"
ckpt_path = hf_hub_download(repo_id, "wbc_phi_lattice_v2.pt")
checkpoint = torch.load(ckpt_path, map_location="cpu", weights_only=True)
print("Loaded keys:", list(checkpoint.keys()))