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

Uploaded Python 3

File details

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

File metadata

  • Download URL: superduper_transformers-0.10.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.10.0.tar.gz
Algorithm Hash digest
SHA256 854eea69e2f3b5519c7f6b24cb7cb0d785a885ab63144eb420b6e18ce8c877ef
MD5 42e0ed2eb58cdee139931f6d86188f39
BLAKE2b-256 66deecf0fd917259212219af7a46806fc5909840c9e8688a2f4a26164f08719c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for superduper_transformers-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5026e792327467f5c164f0c8de5e74accabb67133f87031d6030a20835267d21
MD5 21266074965b3f5e376baeb9052e3d69
BLAKE2b-256 207537b7585990fa6e9196bd472708b2774b451e239ae9341ef03c1705dac73a

See more details on using hashes here.

Provenance

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