Superduper allows users to work with arbitrary `torch` models, with custom pre-, post-processing and input/ output data-types, as well as offering training with superduper
Project description
superduper_torch
Superduper allows users to work with arbitrary torch models, with custom pre-, post-processing and input/ output data-types, as well as offering training with superduper
Installation
pip install superduper_torch
API
| Class | Description |
|---|---|
superduper_torch.model.TorchModel |
Torch model. This class is a wrapper around a PyTorch model. |
superduper_torch.training.TorchTrainer |
Configuration for the PyTorch trainer. |
Examples
TorchModel
import torch
from superduper_torch.model import TorchModel
model = TorchModel(
object=torch.nn.Linear(32, 1),
identifier="test",
preferred_devices=("cpu",),
postprocess=lambda x: int(torch.sigmoid(x).item() > 0.5),
)
model.predict(torch.randn(32))
Training Example
Read more about this here
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 superduper_torch-0.6.0.tar.gz.
File metadata
- Download URL: superduper_torch-0.6.0.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64787aeacbac12a08219af0f0da1a105f1dd108dab022b63892ded0b02a33606
|
|
| MD5 |
7a97658e141325ea6fd052741fb8d5dc
|
|
| BLAKE2b-256 |
36c6756120776dfd52fc4ed6a4872be0bef697574091dccbdc332c8173b43ca6
|
Provenance
The following attestation bundles were made for superduper_torch-0.6.0.tar.gz:
Publisher:
release_plugins.yaml on superduper-io/superduper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
superduper_torch-0.6.0.tar.gz -
Subject digest:
64787aeacbac12a08219af0f0da1a105f1dd108dab022b63892ded0b02a33606 - Sigstore transparency entry: 188558248
- Sigstore integration time:
-
Permalink:
superduper-io/superduper@fef7fe19fa2a9cb81d02607c20eb00d41f71b04f -
Branch / Tag:
refs/heads/0.6 - Owner: https://github.com/superduper-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release_plugins.yaml@fef7fe19fa2a9cb81d02607c20eb00d41f71b04f -
Trigger Event:
push
-
Statement type:
File details
Details for the file superduper_torch-0.6.0-py3-none-any.whl.
File metadata
- Download URL: superduper_torch-0.6.0-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7869eeb2d7f941513c17d975680b2caf2a565d4f56752a60a71e92e89af5661a
|
|
| MD5 |
f6390355b31de33a298f6a09ed28c078
|
|
| BLAKE2b-256 |
c9d6c61fc7d9425ef36ac4da447a51977a19eca512d47173f65b45b48d174d9b
|
Provenance
The following attestation bundles were made for superduper_torch-0.6.0-py3-none-any.whl:
Publisher:
release_plugins.yaml on superduper-io/superduper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
superduper_torch-0.6.0-py3-none-any.whl -
Subject digest:
7869eeb2d7f941513c17d975680b2caf2a565d4f56752a60a71e92e89af5661a - Sigstore transparency entry: 188558253
- Sigstore integration time:
-
Permalink:
superduper-io/superduper@fef7fe19fa2a9cb81d02607c20eb00d41f71b04f -
Branch / Tag:
refs/heads/0.6 - Owner: https://github.com/superduper-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release_plugins.yaml@fef7fe19fa2a9cb81d02607c20eb00d41f71b04f -
Trigger Event:
push
-
Statement type: