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
Close
Hashes for superduper_transformers-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96e154a0a6c42e8b99999380d1502d3df409b7a057dcf4e59226c19549a6fc72 |
|
MD5 | 81145ad471686d26495f4a82b58dc457 |
|
BLAKE2b-256 | d1574285b15663b88c9a12eccf908bc548f5b61a966654b9d3a29a2d6990a314 |
Close
Hashes for superduper_transformers-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcc3de6dd5cf3b1dbecb1c15e0fe21fffa428aef77727181c5fed573851dc796 |
|
MD5 | 5547227bd2c8d4902f23e21212aac448 |
|
BLAKE2b-256 | bd0cdce8d7046a49578d7874c6bcfd27d6172bc85d7a0a6abd5b0fe0c1f5e43e |