spandrel-extra-arches
Implements extra model architectures for spandrel
What it is and what it does
Spandrel-extra-arches is a companion library to spandrel that extends its model loader with support for additional PyTorch architectures. These architectures are bundled separately because they carry restrictive licenses—primarily non-commercial or copyleft terms—that differ from spandrel's own licensing. The package works by registering these architectures with spandrel's model loading system, allowing you to load and use models built on these architectures once the registration function is called.
The library is designed for developers working with spandrel who need access to architectures beyond the main library's scope. It depends on torch, torchvision, numpy, einops, and typing-extensions. Installation is straightforward, but users must understand the license implications: private projects and non-commercial open-source work face no restrictions, while commercial or closed-source projects need to audit the individual architecture licenses before deployment.
Use it for:
- Load pre-trained models built on restricted-license architectures within spandrel's unified model loader interface.
- Extend a non-commercial research or open-source project with additional model architecture support beyond spandrel's core.
- Evaluate or prototype with model architectures that are not available in the main spandrel library.
- Build a private tool or service that relies on specific restricted-license architectures registered via spandrel.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Registers additional PyTorch model architectures with spandrel's model loader, enabling support for architectures that carry restrictive (non-commercial or copyleft) licenses.
Yes, if you are working on a private or non-commercial open-source project and need the specific architectures this library provides. No, if you are building a commercial or closed-source product without first auditing the individual architecture licenses. The dormant maintenance status (no updates in 697 days) is acceptable for a stable, narrow-purpose extension, but signals that new architectures or bug fixes are unlikely.
Install
spandrel-extra-arches on PyPI
pip
pip install spandrel-extra-archesuv
uv add spandrel-extra-archespoetry
poetry add spandrel-extra-archesInstalling spandrel-extra-arches
Before you install
Low friction installation as a pure Python wheel. Dormant maintenance status (last release 697 days ago) means no active development, though the package remains functional for its narrow purpose.
License in practice
MIT-licensed wrapper, but the architectures it implements carry non-commercial and copyleft licenses. Commercial or closed-source projects must review individual architecture licenses before use; private and non-commercial open-source projects are unrestricted.
Quickstart
pip install spandrel spandrel_extra_arches
import spandrel
import spandrel_extra_arches
spandrel_extra_arches.install()
model = spandrel.ModelLoader().load_from_file("path/to/model.pth")
Requires spandrel to be installed first; torch and torchvision are runtime dependencies that must be available in your environment.
Verify before relying
- Which specific architectures are included and their exact license restrictions (fact sheet references external documentation).
- Whether the package works with recent PyTorch versions beyond those listed in classifiers.
- Active maintenance status or plans for future updates given dormant status.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — spandrel, torch, torchvision, numpy, einops, typing-extensions |
| Maintenance | dormant — 697 days since the last release |
| First released | |
| Downloads | 285,220/month — #8,056 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: spandrel_extra_arches-0.2.0-py3-none-any.whl
Keywords: spandrel, pytorch architecture, pytorch arch, model arch, model architecture
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
spandrelSpandrel loads and runs pre-trained PyTorch…
permissive · top 5,000 on PyPI
xformersXFormers provides reusable, composable building…
permissive · top 5,000 on PyPI
extra-platformsDetects and exposes rich metadata about runtime…
permissive · top 15,000 on PyPI
torchsrProvides pretrained neural network models for…
permissive · top 15,000 on PyPI
torchvisionTorchvision provides pre-built datasets, model…
permissive · top 1,000 on PyPI
accelforgeAccelForge models, designs, and explores tensor…
unclear · top 15,000 on PyPI
torch-npuEnables PyTorch to run computations on Huawei…
permissive · top 5,000 on PyPI
pytorchcvProvides a collection of pretrained computer…
unclear · top 15,000 on PyPI
hoptorchProvides a safe wrapper around PyTorch's scan…
permissive · top 15,000 on PyPI
inference-modelsLoads and runs computer vision models from…
unclear · top 15,000 on PyPI