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.0

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.0
File Size Uploaded Provenance Actions
xpm_torch-0.3.0.tar.gz 305.0 kB With provenance Details for xpm_torch-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 376.5 kB

Release files / xpm_torch-0.3.0.tar.gz

Download URL xpm_torch-0.3.0.tar.gz
Size 305.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3884d395f6fa18f012749ff864a0d8aa9de56592a4656201000c186c0581b9cd
BLAKE2b-256 checksum
How to use checksums
0014c6aab38c3b0321d8ea4db034432eb2e1790623d91d637c01fea667a42973
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.0-py3-none-any.whl

Download URL xpm_torch-0.3.0-py3-none-any.whl
Size 71.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df6a5a8db85c32de19e084bade8383da3f37da95abed5c70f31d4906d0e3d498
BLAKE2b-256 checksum
How to use checksums
282ae116c525cae0f5e0ef1d11465bbdb742c768da679baa2c846965b9d2fcc2
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.0

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.0.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