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
Built Distribution
File details
Details for the file superduper_transformers-0.4.0.tar.gz
.
File metadata
- Download URL: superduper_transformers-0.4.0.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 606caaefc3f2411dd43d27f836e8f37d23a3e27bdbafb2723488a14e69bf1299 |
|
MD5 | 886cee03abe6f7b70049bf8e98d4104e |
|
BLAKE2b-256 | 18a3a0064e1d5ce188795891326592e8d2dbbded54fad8a19742bc4edcc7c4b6 |
Provenance
The following attestation bundles were made for superduper_transformers-0.4.0.tar.gz
:
Publisher:
release_plugins.yaml
on superduper-io/superduper
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
superduper_transformers-0.4.0.tar.gz
- Subject digest:
606caaefc3f2411dd43d27f836e8f37d23a3e27bdbafb2723488a14e69bf1299
- Sigstore transparency entry: 146081772
- Sigstore integration time:
- Predicate type:
File details
Details for the file superduper_transformers-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: superduper_transformers-0.4.0-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b4b503130238c4012e0c40a9c3312cbdc3d97e1de9cbb0e2237743bc7664ea9 |
|
MD5 | 38425f5ac1a2ae0c41590e366a50004a |
|
BLAKE2b-256 | 3130987f1ae0c9f18570a617165034fc723310671f5a61c12e216d7639bb053b |
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
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
superduper_transformers-0.4.0-py3-none-any.whl
- Subject digest:
6b4b503130238c4012e0c40a9c3312cbdc3d97e1de9cbb0e2237743bc7664ea9
- Sigstore transparency entry: 146081773
- Sigstore integration time:
- Predicate type: