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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4796d493a42b7dba4b99b9e64e01554b23d9955b23ac743afe3deb2f13dc09d4
|
|
| MD5 |
8869750860af0f4c519cf5de3167b6ec
|
|
| BLAKE2b-256 |
e081fd3c5f74ba61c051aa6b71c628e750f10ce6e26e769f3f7c67dead28ae95
|
Provenance
The following attestation bundles were made for superduper_transformers-0.7.0.tar.gz:
Publisher:
release_plugins.yaml on superduper-io/superduper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
superduper_transformers-0.7.0.tar.gz -
Subject digest:
4796d493a42b7dba4b99b9e64e01554b23d9955b23ac743afe3deb2f13dc09d4 - Sigstore transparency entry: 219999858
- Sigstore integration time:
-
Permalink:
superduper-io/superduper@fd4ce336c5422fba7aad970cafcbd3244f881ba8 -
Branch / Tag:
refs/heads/0.7 - Owner: https://github.com/superduper-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release_plugins.yaml@fd4ce336c5422fba7aad970cafcbd3244f881ba8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file superduper_transformers-0.7.0-py3-none-any.whl.
File metadata
- Download URL: superduper_transformers-0.7.0-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd09af9e8be66d70f2c25931fa5228afce3978448da851c633d4756c9ff829d6
|
|
| MD5 |
0cbce659faf51213bacf98118ea5da23
|
|
| BLAKE2b-256 |
8a64c52cceea69d79f768bf10d963a24027b5256817c2ab0b239127573b27c6d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
superduper_transformers-0.7.0-py3-none-any.whl -
Subject digest:
fd09af9e8be66d70f2c25931fa5228afce3978448da851c633d4756c9ff829d6 - Sigstore transparency entry: 219999860
- Sigstore integration time:
-
Permalink:
superduper-io/superduper@fd4ce336c5422fba7aad970cafcbd3244f881ba8 -
Branch / Tag:
refs/heads/0.7 - Owner: https://github.com/superduper-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release_plugins.yaml@fd4ce336c5422fba7aad970cafcbd3244f881ba8 -
Trigger Event:
push
-
Statement type: