Text Generation
Transformers
PyTorch
Spanish
mbart
text2text-generation
questions and answers generation
Eval Results (legacy)
Instructions to use research-backup/mbart-large-cc25-esquad-qag with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use research-backup/mbart-large-cc25-esquad-qag with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="research-backup/mbart-large-cc25-esquad-qag")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("research-backup/mbart-large-cc25-esquad-qag") model = AutoModelForSeq2SeqLM.from_pretrained("research-backup/mbart-large-cc25-esquad-qag", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use research-backup/mbart-large-cc25-esquad-qag with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "research-backup/mbart-large-cc25-esquad-qag" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "research-backup/mbart-large-cc25-esquad-qag", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/research-backup/mbart-large-cc25-esquad-qag
- SGLang
How to use research-backup/mbart-large-cc25-esquad-qag with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "research-backup/mbart-large-cc25-esquad-qag" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "research-backup/mbart-large-cc25-esquad-qag", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "research-backup/mbart-large-cc25-esquad-qag" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "research-backup/mbart-large-cc25-esquad-qag", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use research-backup/mbart-large-cc25-esquad-qag with Docker Model Runner:
docker model run hf.co/research-backup/mbart-large-cc25-esquad-qag
model update
Browse files
README.md
CHANGED
|
@@ -27,21 +27,6 @@ model-index:
|
|
| 27 |
type: default
|
| 28 |
args: default
|
| 29 |
metrics:
|
| 30 |
-
- name: BLEU4 (Question & Answer Generation)
|
| 31 |
-
type: bleu4_question_answer_generation
|
| 32 |
-
value: 2.92
|
| 33 |
-
- name: ROUGE-L (Question & Answer Generation)
|
| 34 |
-
type: rouge_l_question_answer_generation
|
| 35 |
-
value: 16.2
|
| 36 |
-
- name: METEOR (Question & Answer Generation)
|
| 37 |
-
type: meteor_question_answer_generation
|
| 38 |
-
value: 23.46
|
| 39 |
-
- name: BERTScore (Question & Answer Generation)
|
| 40 |
-
type: bertscore_question_answer_generation
|
| 41 |
-
value: 69.37
|
| 42 |
-
- name: MoverScore (Question & Answer Generation)
|
| 43 |
-
type: moverscore_question_answer_generation
|
| 44 |
-
value: 51.66
|
| 45 |
- name: QAAlignedF1Score-BERTScore (Question & Answer Generation)
|
| 46 |
type: qa_aligned_f1_score_bertscore_question_answer_generation
|
| 47 |
value: 78.8
|
|
@@ -103,20 +88,12 @@ output = pipe("del Ministerio de Desarrollo Urbano , Gobierno de la India.")
|
|
| 103 |
|
| 104 |
| | Score | Type | Dataset |
|
| 105 |
|:--------------------------------|--------:|:--------|:-------------------------------------------------------------------|
|
| 106 |
-
| BERTScore | 69.37 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 107 |
-
| Bleu_1 | 11.18 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 108 |
-
| Bleu_2 | 6.31 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 109 |
-
| Bleu_3 | 4.12 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 110 |
-
| Bleu_4 | 2.92 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 111 |
-
| METEOR | 23.46 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 112 |
-
| MoverScore | 51.66 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 113 |
| QAAlignedF1Score (BERTScore) | 78.8 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 114 |
| QAAlignedF1Score (MoverScore) | 54 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 115 |
| QAAlignedPrecision (BERTScore) | 76.59 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 116 |
| QAAlignedPrecision (MoverScore) | 52.57 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 117 |
| QAAlignedRecall (BERTScore) | 81.21 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 118 |
| QAAlignedRecall (MoverScore) | 55.63 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 119 |
-
| ROUGE_L | 16.2 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 120 |
|
| 121 |
|
| 122 |
|
|
|
|
| 27 |
type: default
|
| 28 |
args: default
|
| 29 |
metrics:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
- name: QAAlignedF1Score-BERTScore (Question & Answer Generation)
|
| 31 |
type: qa_aligned_f1_score_bertscore_question_answer_generation
|
| 32 |
value: 78.8
|
|
|
|
| 88 |
|
| 89 |
| | Score | Type | Dataset |
|
| 90 |
|:--------------------------------|--------:|:--------|:-------------------------------------------------------------------|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
| QAAlignedF1Score (BERTScore) | 78.8 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 92 |
| QAAlignedF1Score (MoverScore) | 54 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 93 |
| QAAlignedPrecision (BERTScore) | 76.59 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 94 |
| QAAlignedPrecision (MoverScore) | 52.57 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 95 |
| QAAlignedRecall (BERTScore) | 81.21 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
| 96 |
| QAAlignedRecall (MoverScore) | 55.63 | default | [lmqg/qag_esquad](https://huggingface.co/datasets/lmqg/qag_esquad) |
|
|
|
|
| 97 |
|
| 98 |
|
| 99 |
|