knowledgator / flan-t5-large-for-classification

huggingface.co
Total runs: 27
24-hour runs: 0
7-day runs: 7
30-day runs: 18
Model's Last Updated: February 29 2024
text-generation

Introduction of flan-t5-large-for-classification

Model Details of flan-t5-large-for-classification

flan-t5-small-for-classification

This is an additional fine-tuned flan-t5-large model on many classification datasets.

The model supports prompt-tuned classification and is suitable for complex classification settings such as resumes classification by criteria.

You can use the model simply generating the text class name or using our unlimited-classifier .

The library allows to set constraints on generation and classify text into millions of classes.

How to use:

To use it with transformers library take a look into the following code snippet:

# pip install accelerate
from transformers import T5Tokenizer, T5ForConditionalGeneration

tokenizer = T5Tokenizer.from_pretrained("knowledgator/flan-t5-large-for-classification")
model = T5ForConditionalGeneration.from_pretrained("knowledgator/flan-t5-large-for-classification", device_map="auto")

input_text = "Define sentiment of the following text: I love to travel and someday I will see the world."
input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to("cuda")

outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0]))

Using unlimited-classifier

# pip install unlimited-classifier

from unlimited_classifier import TextClassifier

classifier = TextClassifier(
    labels=[
        'positive',
        'negative',
        'neutral'    
    ],
    model='knowledgator/flan-t5-large-for-classification',
    tokenizer='knowledgator/flan-t5-large-for-classification',
)
output = classifier.invoke(input_text)
print(output)

Runs of knowledgator flan-t5-large-for-classification on huggingface.co

27
Total runs
0
24-hour runs
3
3-day runs
7
7-day runs
18
30-day runs

More Information About flan-t5-large-for-classification huggingface.co Model

More flan-t5-large-for-classification license Visit here:

https://choosealicense.com/licenses/apache-2.0

flan-t5-large-for-classification huggingface.co

flan-t5-large-for-classification huggingface.co is an AI model on huggingface.co that provides flan-t5-large-for-classification's model effect (), which can be used instantly with this knowledgator flan-t5-large-for-classification model. huggingface.co supports a free trial of the flan-t5-large-for-classification model, and also provides paid use of the flan-t5-large-for-classification. Support call flan-t5-large-for-classification model through api, including Node.js, Python, http.

flan-t5-large-for-classification huggingface.co Url

https://huggingface.co/knowledgator/flan-t5-large-for-classification

knowledgator flan-t5-large-for-classification online free

flan-t5-large-for-classification huggingface.co is an online trial and call api platform, which integrates flan-t5-large-for-classification's modeling effects, including api services, and provides a free online trial of flan-t5-large-for-classification, you can try flan-t5-large-for-classification online for free by clicking the link below.

knowledgator flan-t5-large-for-classification online free url in huggingface.co:

https://huggingface.co/knowledgator/flan-t5-large-for-classification

flan-t5-large-for-classification install

flan-t5-large-for-classification is an open source model from GitHub that offers a free installation service, and any user can find flan-t5-large-for-classification on GitHub to install. At the same time, huggingface.co provides the effect of flan-t5-large-for-classification install, users can directly use flan-t5-large-for-classification installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

flan-t5-large-for-classification install url in huggingface.co:

https://huggingface.co/knowledgator/flan-t5-large-for-classification

Url of flan-t5-large-for-classification

flan-t5-large-for-classification huggingface.co Url

Provider of flan-t5-large-for-classification huggingface.co

knowledgator
ORGANIZATIONS

Other API from knowledgator