m3hrdadfi / xlmr-large-qa-sv

huggingface.co
Total runs: 9
24-hour runs: 0
7-day runs: -1
30-day runs: -2
Model's Last Updated: Octubre 12 2021
question-answering

Introduction of xlmr-large-qa-sv

Model Details of xlmr-large-qa-sv

XLM-RoBERTa large for QA (SwedishQA - 🇸🇪)

This model is a fine-tuned version of xlm-roberta-large on the SwedishQA dataset.

Hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 1e-05
  • train_batch_size: 8
  • eval_batch_size: 8
  • seed: 42
  • gradient_accumulation_steps: 8
  • total_train_batch_size: 64
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • lr_scheduler_warmup_ratio: 0.1
  • num_epochs: 2.0
  • mixed_precision_training: Native AMP
Performance

Evaluation results on the eval set with the official eval script .

Evalset
"exact": 78.79554655870446,
"f1": 87.97339064752278,
"total": 5928
Usage
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline

model_name_or_path = "m3hrdadfi/xlmr-large-qa-sv"
nlp = pipeline('question-answering', model=model_name_or_path, tokenizer=model_name_or_path)

context = """
Sveriges nationaldag och svenska flaggans dag firas den 6 juni 
varje år och är en helgdag i Sverige. 
Tidigare firades 6 juni enbart som "svenska flaggans dag" och det 
var först 1983 som dagen även fick status som nationaldag. 
"""

questions = [
    "Vilket datum är den svenska nationaldagen?",
    "Vad innebär helgdag i Sverige?",
    "Vilket år tillkom Sveriges nationaldag?"
]
kwargs = {}

for question in questions:
    r = nlp(question=question, context=context, **kwargs)
    answer = " ".join([token.strip() for token in r["answer"].strip().split() if token.strip()])
    print(f"{question} {answer}")

Output

Vilket datum är den svenska nationaldagen? 6 juni
Vad innebär helgdag i Sverige? svenska flaggans dag
Vilket år tillkom Sveriges nationaldag? 1983
Authors
Framework versions
  • Transformers 4.12.0.dev0
  • Pytorch 1.9.1+cu111
  • Datasets 1.12.1
  • Tokenizers 0.10.3

Runs of m3hrdadfi xlmr-large-qa-sv on huggingface.co

9
Total runs
0
24-hour runs
0
3-day runs
-1
7-day runs
-2
30-day runs

More Information About xlmr-large-qa-sv huggingface.co Model

xlmr-large-qa-sv huggingface.co

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

xlmr-large-qa-sv huggingface.co Url

https://huggingface.co/m3hrdadfi/xlmr-large-qa-sv

m3hrdadfi xlmr-large-qa-sv online free

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

m3hrdadfi xlmr-large-qa-sv online free url in huggingface.co:

https://huggingface.co/m3hrdadfi/xlmr-large-qa-sv

xlmr-large-qa-sv install

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

xlmr-large-qa-sv install url in huggingface.co:

https://huggingface.co/m3hrdadfi/xlmr-large-qa-sv

Url of xlmr-large-qa-sv

xlmr-large-qa-sv huggingface.co Url

Provider of xlmr-large-qa-sv huggingface.co

m3hrdadfi
ORGANIZATIONS

Other API from m3hrdadfi

huggingface.co

Total runs: 33
Run Growth: 21
Growth Rate: 63.64%
Updated:Agosto 11 2021
huggingface.co

Total runs: 2
Run Growth: -8
Growth Rate: -400.00%
Updated:Abril 03 2024