skillfed

spandrel-extra-arches

Implements extra model architectures for spandrel

spandrel-extra-arches v0.2.0 285.2K downloads/30d#8,056 on PyPI
Permissive license MIT DORMANT released

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-arches

uv

uv add spandrel-extra-arches

poetry

poetry add spandrel-extra-arches

Installing 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

Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries

Tags

pytorch model architecturesspandrel extra architecturesmodel loader architecturespytorch arch registryrestrictive license architecturesnon-commercial model supportspandrel plugin architectures
pytorch-modelsmodel-loadinglicense-restricted

More Libraries packages