Skip to main content

Transformers is a popular AI framework, and we have incorporated native support for Transformers to provide essential Large Language Model (LLM) capabilities.

Project description

superduper_transformers

Transformers is a popular AI framework, and we have incorporated native support for Transformers to provide essential Large Language Model (LLM) capabilities.

Superduper allows users to work with arbitrary transformers pipelines, with custom input/ output data-types.

Installation

pip install superduper_transformers

API

Class Description
superduper_transformers.model.TextClassificationPipeline A wrapper for transformers.Pipeline.
superduper_transformers.model.LLM LLM model based on transformers library.

Examples

TextClassificationPipeline

from superduper_transformers.model import TextClassificationPipeline

model = TextClassificationPipeline(
    identifier="my-sentiment-analysis",
    model_name="distilbert-base-uncased",
    model_kwargs={"num_labels": 2},
    device="cpu",
)
model.predict("Hello, world!")

LLM

from superduper_transformers import LLM
model = LLM(identifier="llm", model_name_or_path="facebook/opt-125m")
model.predict("Hello, world!")

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_transformers-0.6.0.tar.gz (22.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_transformers-0.6.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file superduper_transformers-0.6.0.tar.gz.

File metadata

  • Download URL: superduper_transformers-0.6.0.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for superduper_transformers-0.6.0.tar.gz
Algorithm Hash digest
SHA256 cb61ac0985eef6eeefae7eea26fdc0bd9b6851c73dbe434f185308ba571fb62e
MD5 c862b3eb5baa40f852aff836fbb6612a
BLAKE2b-256 7ba504d29fcd2b727e9b92251e0d165be898f3293014c63793ba573eb8f051e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_transformers-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_transformers-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for superduper_transformers-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53bd9702911d537811047141ca9aae241ae8fdd27be94aba77d6f7c9a82ff5fb
MD5 598a1bb0b8f8d6bb838b3e054571f7f7
BLAKE2b-256 129f5b3db0fc855b4b54e98c60c7a9d5e45a61e8d5aabac1e1025c34b4ef5233

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_transformers-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