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.4.0.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

superduper_transformers-0.4.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for superduper_transformers-0.4.0.tar.gz
Algorithm Hash digest
SHA256 606caaefc3f2411dd43d27f836e8f37d23a3e27bdbafb2723488a14e69bf1299
MD5 886cee03abe6f7b70049bf8e98d4104e
BLAKE2b-256 18a3a0064e1d5ce188795891326592e8d2dbbded54fad8a19742bc4edcc7c4b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_transformers-0.4.0.tar.gz:

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations:

File details

Details for the file superduper_transformers-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for superduper_transformers-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b4b503130238c4012e0c40a9c3312cbdc3d97e1de9cbb0e2237743bc7664ea9
MD5 38425f5ac1a2ae0c41590e366a50004a
BLAKE2b-256 3130987f1ae0c9f18570a617165034fc723310671f5a61c12e216d7639bb053b

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_transformers-0.4.0-py3-none-any.whl:

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations:

Supported by

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