Text Generation
Transformers
PyTorch
French
mbart
text2text-generation
question generation
Eval Results (legacy)
Instructions to use research-backup/mbart-large-cc25-frquad-qg with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use research-backup/mbart-large-cc25-frquad-qg with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="research-backup/mbart-large-cc25-frquad-qg")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("research-backup/mbart-large-cc25-frquad-qg") model = AutoModelForSeq2SeqLM.from_pretrained("research-backup/mbart-large-cc25-frquad-qg", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use research-backup/mbart-large-cc25-frquad-qg 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-frquad-qg" # 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-frquad-qg", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/research-backup/mbart-large-cc25-frquad-qg
- SGLang
How to use research-backup/mbart-large-cc25-frquad-qg 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-frquad-qg" \ --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-frquad-qg", "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-frquad-qg" \ --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-frquad-qg", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use research-backup/mbart-large-cc25-frquad-qg with Docker Model Runner:
docker model run hf.co/research-backup/mbart-large-cc25-frquad-qg
model update
Browse files
README.md
CHANGED
|
@@ -48,11 +48,29 @@ model-index:
|
|
| 48 |
value: 0.5034779936072653
|
| 49 |
---
|
| 50 |
|
| 51 |
-
#
|
| 52 |
This model is fine-tuned version of [facebook/mbart-large-cc25](https://huggingface.co/facebook/mbart-large-cc25) for question generation task on the
|
| 53 |
-
[lmqg/qg_frquad](https://huggingface.co/datasets/lmqg/qg_frquad) (dataset_name: default).
|
| 54 |
|
| 55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
### Overview
|
| 57 |
- **Language model:** [facebook/mbart-large-cc25](https://huggingface.co/facebook/mbart-large-cc25)
|
| 58 |
- **Language:** fr
|
|
@@ -71,6 +89,7 @@ pipe = pipeline("text2text-generation", model_path)
|
|
| 71 |
|
| 72 |
# Question Generation
|
| 73 |
question = pipe('Créateur » (Maker), lui aussi au singulier, « <hl> le Suprême Berger <hl> » (The Great Shepherd) ; de l'autre, des réminiscences de la théologie de l'Antiquité : le tonnerre, voix de Jupiter, « Et souvent ta voix gronde en un tonnerre terrifiant », etc.')
|
|
|
|
| 74 |
```
|
| 75 |
|
| 76 |
## Evaluation Metrics
|
|
@@ -107,4 +126,16 @@ The following hyperparameters were used during fine-tuning:
|
|
| 107 |
The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/mbart-large-cc25-frquad/raw/main/trainer_config.json).
|
| 108 |
|
| 109 |
## Citation
|
| 110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
value: 0.5034779936072653
|
| 49 |
---
|
| 50 |
|
| 51 |
+
# Model Card of `lmqg/mbart-large-cc25-frquad`
|
| 52 |
This model is fine-tuned version of [facebook/mbart-large-cc25](https://huggingface.co/facebook/mbart-large-cc25) for question generation task on the
|
| 53 |
+
[lmqg/qg_frquad](https://huggingface.co/datasets/lmqg/qg_frquad) (dataset_name: default) via [`lmqg`](https://github.com/asahi417/lm-question-generation).
|
| 54 |
|
| 55 |
|
| 56 |
+
Please cite our paper if you use the model ([TBA](TBA)).
|
| 57 |
+
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
@inproceedings{ushio-etal-2022-generative,
|
| 61 |
+
title = "{G}enerative {L}anguage {M}odels for {P}aragraph-{L}evel {Q}uestion {G}eneration: {A} {U}nified {B}enchmark and {E}valuation",
|
| 62 |
+
author = "Ushio, Asahi and
|
| 63 |
+
Alva-Manchego, Fernando and
|
| 64 |
+
Camacho-Collados, Jose",
|
| 65 |
+
booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing",
|
| 66 |
+
month = dec,
|
| 67 |
+
year = "2022",
|
| 68 |
+
address = "Abu Dhabi, U.A.E.",
|
| 69 |
+
publisher = "Association for Computational Linguistics",
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
### Overview
|
| 75 |
- **Language model:** [facebook/mbart-large-cc25](https://huggingface.co/facebook/mbart-large-cc25)
|
| 76 |
- **Language:** fr
|
|
|
|
| 89 |
|
| 90 |
# Question Generation
|
| 91 |
question = pipe('Créateur » (Maker), lui aussi au singulier, « <hl> le Suprême Berger <hl> » (The Great Shepherd) ; de l'autre, des réminiscences de la théologie de l'Antiquité : le tonnerre, voix de Jupiter, « Et souvent ta voix gronde en un tonnerre terrifiant », etc.')
|
| 92 |
+
|
| 93 |
```
|
| 94 |
|
| 95 |
## Evaluation Metrics
|
|
|
|
| 126 |
The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/mbart-large-cc25-frquad/raw/main/trainer_config.json).
|
| 127 |
|
| 128 |
## Citation
|
| 129 |
+
|
| 130 |
+
@inproceedings{ushio-etal-2022-generative,
|
| 131 |
+
title = "{G}enerative {L}anguage {M}odels for {P}aragraph-{L}evel {Q}uestion {G}eneration: {A} {U}nified {B}enchmark and {E}valuation",
|
| 132 |
+
author = "Ushio, Asahi and
|
| 133 |
+
Alva-Manchego, Fernando and
|
| 134 |
+
Camacho-Collados, Jose",
|
| 135 |
+
booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing",
|
| 136 |
+
month = dec,
|
| 137 |
+
year = "2022",
|
| 138 |
+
address = "Abu Dhabi, U.A.E.",
|
| 139 |
+
publisher = "Association for Computational Linguistics",
|
| 140 |
+
}
|
| 141 |
+
|