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.6.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.6.0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

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

Hashes for superduper_torch-0.6.0.tar.gz
Algorithm Hash digest
SHA256 64787aeacbac12a08219af0f0da1a105f1dd108dab022b63892ded0b02a33606
MD5 7a97658e141325ea6fd052741fb8d5dc
BLAKE2b-256 36c6756120776dfd52fc4ed6a4872be0bef697574091dccbdc332c8173b43ca6

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_torch-0.6.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.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for superduper_torch-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7869eeb2d7f941513c17d975680b2caf2a565d4f56752a60a71e92e89af5661a
MD5 f6390355b31de33a298f6a09ed28c078
BLAKE2b-256 c9d6c61fc7d9425ef36ac4da447a51977a19eca512d47173f65b45b48d174d9b

See more details on using hashes here.

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

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