Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

superduper_torch-0.7.0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

superduper_torch-0.7.0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file superduper_torch-0.7.0.tar.gz.

File metadata

  • Download URL: superduper_torch-0.7.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

Hashes for superduper_torch-0.7.0.tar.gz
Algorithm Hash digest
SHA256 9e62f2fdfea9ff50195a7f438269ca33c73bd9276084aad82d121837b5a4766a
MD5 d220e7103441378557ac6882b5293f39
BLAKE2b-256 6d3b60b08e0ffc8683c65694c6bcb2910176d349004c5efd9b681086f9e2b4f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_torch-0.7.0.tar.gz:

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file superduper_torch-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for superduper_torch-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e9159ccadba79fa5afe6ebe066e6196a2f95cc22a54ee5cabc4b2b487b5e1aa
MD5 9b3b1f7241785ea786b8c69768eaff17
BLAKE2b-256 71ff594a83a247b64777871320db7fe365abce9aff8cf3fc8b74f4c8d7e70c7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_torch-0.7.0-py3-none-any.whl:

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page