Experimaestro module for Pytorch-based experiments
Project description
xpm-torch
PyTorch training framework built on experimaestro and Lightning Fabric.
Features
- Module system:
Modulebase class combining experimaestroConfigwithtorch.nn.Module, with safetensors serialization - Training:
Learnertask 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xpm_torch-0.2.0.tar.gz.
File metadata
- Download URL: xpm_torch-0.2.0.tar.gz
- Upload date:
- Size: 215.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1090fbd6c5f36cfd1e9e97acb0323791060cfd63a5498ab0511f29c296934a05
|
|
| MD5 |
78b5d8e7282ed2ead8be29b0979be48b
|
|
| BLAKE2b-256 |
283232840d41ac77371673770cee729c3dfbf8266c090998653cd80449e84355
|
Provenance
The following attestation bundles were made for xpm_torch-0.2.0.tar.gz:
Publisher:
python-publish.yml on experimaestro/xpm-torch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xpm_torch-0.2.0.tar.gz -
Subject digest:
1090fbd6c5f36cfd1e9e97acb0323791060cfd63a5498ab0511f29c296934a05 - Sigstore transparency entry: 1734675511
- Sigstore integration time:
-
Permalink:
experimaestro/xpm-torch@c57763962bdf884fa535cc5d1c042dabb95dbb13 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/experimaestro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c57763962bdf884fa535cc5d1c042dabb95dbb13 -
Trigger Event:
release
-
Statement type:
File details
Details for the file xpm_torch-0.2.0-py3-none-any.whl.
File metadata
- Download URL: xpm_torch-0.2.0-py3-none-any.whl
- Upload date:
- Size: 54.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74e6191d84dcb908c4d45be9f0bddd84658067e9a765716949f6d234acfcc2a6
|
|
| MD5 |
ae4d065e2eb4d10bb42cb5dabd6f9c9c
|
|
| BLAKE2b-256 |
6b6b9e79b8d2bdd3a961029e5f9d4c26b1a7e32c7276e3a33abc544a3be61870
|
Provenance
The following attestation bundles were made for xpm_torch-0.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on experimaestro/xpm-torch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xpm_torch-0.2.0-py3-none-any.whl -
Subject digest:
74e6191d84dcb908c4d45be9f0bddd84658067e9a765716949f6d234acfcc2a6 - Sigstore transparency entry: 1734675569
- Sigstore integration time:
-
Permalink:
experimaestro/xpm-torch@c57763962bdf884fa535cc5d1c042dabb95dbb13 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/experimaestro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c57763962bdf884fa535cc5d1c042dabb95dbb13 -
Trigger Event:
release
-
Statement type: