fgaim / t5-small-squad-v2

huggingface.co
Total runs: 33
24-hour runs: 0
7-day runs: 3
30-day runs: 8
Model's Last Updated: January 31 2022
text-generation

Introduction of t5-small-squad-v2

Model Details of t5-small-squad-v2

T5-small for QA

Google's T5-small pre-trained on the C4 dataset, fine-tuned for Question-Answering on SQuAD v2 with the following hyperparameters:

  optimizer=adamw_hf
  learning_rate=3e-5
  adam_beta1=0.9
  adam_beta2=0.999
  adam_epsilon=1e-08
  num_train_epochs=2
  per_device_train_batch_size=12
Usage

The input [context and question] has to be prepared in a specific way as follows:

from transformers import pipeline

def prep_input(_context, _question):
    return " ".join(["question:", _question.strip(), "context:", _context.strip()])

t5qa = pipeline("text2text-generation", "fgaim/t5-small-squad-v2")

context = """
Oxygen is a chemical element with symbol O and atomic number 8. It is a member of the chalcogen group on the periodic table and is a highly reactive nonmetal and oxidizing agent that readily forms compounds (notably oxides) with most elements. By mass, oxygen is the third-most abundant element in the universe, after hydrogen and helium. At standard temperature and pressure, two atoms of the element bind to form dioxygen, a colorless and odorless diatomic gas with the formula O.
"""

t5qa(prep_input(context, "How many atoms combine to form dioxygen?"))
# [{'generated_text': 'two'}]

t5qa(prep_input(context, "What element makes up almost half of the earth's crust by mass?"))
# [{'generated_text': 'oxygen'}]

t5qa(prep_input(context, "What are the most abundent elements of the universe by mass?"))
# [{'generated_text': 'hydrogen and helium'}]

Runs of fgaim t5-small-squad-v2 on huggingface.co

33
Total runs
0
24-hour runs
2
3-day runs
3
7-day runs
8
30-day runs

More Information About t5-small-squad-v2 huggingface.co Model

More t5-small-squad-v2 license Visit here:

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

t5-small-squad-v2 huggingface.co

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

t5-small-squad-v2 huggingface.co Url

https://huggingface.co/fgaim/t5-small-squad-v2

fgaim t5-small-squad-v2 online free

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

fgaim t5-small-squad-v2 online free url in huggingface.co:

https://huggingface.co/fgaim/t5-small-squad-v2

t5-small-squad-v2 install

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

t5-small-squad-v2 install url in huggingface.co:

https://huggingface.co/fgaim/t5-small-squad-v2

Url of t5-small-squad-v2

t5-small-squad-v2 huggingface.co Url

Provider of t5-small-squad-v2 huggingface.co

fgaim
ORGANIZATIONS

Other API from fgaim

huggingface.co

Total runs: 361
Run Growth: 294
Growth Rate: 78.61%
Updated:July 15 2023
huggingface.co

Total runs: 30
Run Growth: -11
Growth Rate: -35.48%
Updated:November 06 2022
huggingface.co

Total runs: 17
Run Growth: -21
Growth Rate: -123.53%
Updated:July 15 2023