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

Uploaded Python 3

File details

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

File metadata

  • Download URL: superduper_transformers-0.7.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.7.0.tar.gz
Algorithm Hash digest
SHA256 4796d493a42b7dba4b99b9e64e01554b23d9955b23ac743afe3deb2f13dc09d4
MD5 8869750860af0f4c519cf5de3167b6ec
BLAKE2b-256 e081fd3c5f74ba61c051aa6b71c628e750f10ce6e26e769f3f7c67dead28ae95

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for superduper_transformers-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd09af9e8be66d70f2c25931fa5228afce3978448da851c633d4756c9ff829d6
MD5 0cbce659faf51213bacf98118ea5da23
BLAKE2b-256 8a64c52cceea69d79f768bf10d963a24027b5256817c2ab0b239127573b27c6d

See more details on using hashes here.

Provenance

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