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

Uploaded Python 3

File details

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

File metadata

  • Download URL: superduper_torch-0.10.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.10.0.tar.gz
Algorithm Hash digest
SHA256 a7adc6966dd23e00c077b2b9eda0add84d4ca3445a43d8112389e95366feeb5f
MD5 5e6d27ec4d22e24ca68f965652693f9c
BLAKE2b-256 4850b22cbffbb3a3923a24380e979eab43e2bea8cbb752330e00a1a26f9a85ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for superduper_torch-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 471e4f407e84c4eaa5d6788928cc77cd5b11874fa199f652ca6e74060635b9de
MD5 8dc5ddb909fc9c66fe775a5eca20d07f
BLAKE2b-256 20929f7745d05575c03503bd2aaba0f33996b580a8643de074ef0109c1f69a8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_torch-0.10.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