Views
No views yet
| Feature | Legacy SqueezeNet v1.1 | SqueezeNet-SwiGLU (This Model) |
|---|---|---|
| Activation Function | Standard ReLU | Residual-Scaled SwiGLU Gated Activation |
| Normalization | Batch Normalization | FP32 Layer Normalization (GroupNorm(1, C)) |
| Batch Size Dependency | High (sensitive to batch stats & EMA lag) | Zero (Inference identical across any batch size) |
| Gradient Flow | Standard Fire Connections | Residual Fire Block Skip Connections & Scaling |
| Activation Variance | Prone to un-bounded drift | Strictly bounded via LayerNorm & FP32 Precision |
pipeline1from transformers import pipeline
2
3# Initialize the classification pipeline (requires trust_remote_code=True)
4classifier = pipeline(
5 "image-classification",
6 model="kd13/Modern-SqueezeNet",
7 trust_remote_code=True
8)
9
10# Run prediction on an image URL or local PIL Image
11results = classifier("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")
12
13for pred in results:
14 print(f"Label: {pred['label']} | Score: {pred['score']:.4f}")