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

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.2
File Size Uploaded Provenance Actions
xpm_torch-0.3.2.tar.gz 306.6 kB With provenance Details for xpm_torch-0.3.2.tar.gz

Built distribution (wheel)

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

Total release size: 381.5 kB

Release files / xpm_torch-0.3.2.tar.gz

Download URL xpm_torch-0.3.2.tar.gz
Size 306.6 kB
Tags Source
SHA-256 checksum
How to use checksums
57967706a4eda0fef79c5a18de5ba65c675b52c8a8fdeea05deea99d3b6958ce
BLAKE2b-256 checksum
How to use checksums
f12a126b292543573d2abd21e1e6c490deeaf578bbec6f29700287a995851adc
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 Nov 1, 2026.

Transparency log

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

Download URL xpm_torch-0.3.2-py3-none-any.whl
Size 74.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
643644aa67d235354f1d542f158642c36e3ae729a531eb8aee4e8f448201f7e8
BLAKE2b-256 checksum
How to use checksums
23bd20e41bd22986ec0f8e495795579e4071390f1b5b409edfd158587737eb98
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 Nov 1, 2026.

Transparency log

Security for xpm-torch 0.3.2

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.2.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 Nov 1, 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