Skip to main content

xpm-torch

PyPI version RTD

PyTorch training framework built on experimaestro and Lightning Fabric.

Documentation

The full documentation is at xpm-torch.readthedocs.io:

  • Overview — what's in the package and how it fits together
  • Module system — Module, ModuleLoader and safetensors serialization
  • Training — Learner, trainers, checkpointing and validation
  • Optimization — optimizers, schedulers and gradient hooks
  • HuggingFace Hub — export actions, pushing and loading models

Features

  • Module system: Module base class combining experimaestro Config with torch.nn.Module, with safetensors serialization
  • Training: Learner task with checkpointing, validation listeners, and TensorBoard logging
  • HuggingFace Hub: Upload/download models via ExperimaestroHFHub (from experimaestro)
  • Distributed training: Lightning Fabric integration for multi-GPU/node training

Installation

pip install xpm-torch

Quick Start

from xpm_torch.module import Module
from experimaestro import Param
import torch
import torch.nn as nn


class MyModel(Module):
    input_dim: Param[int]
    hidden_dim: Param[int]

    def __initialize__(self):
        self.fc1 = nn.Linear(self.input_dim, self.hidden_dim)

    def forward(self, x):
        return self.fc1(x)


# Create config, then instance
cfg = MyModel.C(input_dim=50, hidden_dim=100)
model = cfg.instance()
model.initialize()

# Save/load with safetensors
from pathlib import Path

model.save_model(Path("checkpoint/model"))
model.load_model(Path("checkpoint/model"))

License

GPL-3.0

Metadata

Release files for xpm-torch 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xpm-torch 0.3.1
File Size Uploaded Provenance Actions
xpm_torch-0.3.1.tar.gz 303.8 kB With provenance Details for xpm_torch-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xpm-torch 0.3.1
File Interpreter ABI Platform Actions
xpm_torch-0.3.1-py3-none-any.whl Python 3 none any Details for xpm_torch-0.3.1-py3-none-any.whl

Total release size: 375.9 kB

Release files / xpm_torch-0.3.1.tar.gz

Download URL xpm_torch-0.3.1.tar.gz
Size 303.8 kB
Tags Source
SHA-256 checksum
How to use checksums
74c0fd579ba5e191f42dc3fcf589140ede3a6b8e10a4757fdc915c7bbd299dda
BLAKE2b-256 checksum
How to use checksums
a3541ae6b51634d1761a436d4140ac3bccdd9cd6a3d330c4e1f7b6d7b513914c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / xpm_torch-0.3.1-py3-none-any.whl

Download URL xpm_torch-0.3.1-py3-none-any.whl
Size 72.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8febd4dab691d36c0c75af482941567cb52a8dc518bc8a0aa8be413ac932b54
BLAKE2b-256 checksum
How to use checksums
3ee44247fe99861ba693a947718bed87ae3285c3c0783cd753651e1d2ba3b4c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for xpm-torch 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xpm_torch-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page