Views
No views yet
1from transformers import pipeline
2
3generator = pipeline('text-generation', model='lightonai/pagnol-medium', trust_remote_code=True)
4
5output = generator(
6 "Salut PAGnol, comment ça va ?",
7 max_length=50,
8 do_sample=True,
9 temperature=0.7,
10)[0]["generated_text"]
11
12>>> "Très bien! Les jours d’été sont là ! Bientôt les premiers festivals..."1from lairgpt.models import PAGnol
2
3pagnol = PAGnol.medium()
4pagnol("Salut PAGnol, comment ça va ?")
5
6>>> "Très bien! Les jours d’été sont là ! Bientôt les premiers festivals..."lightonai/pagnol-small: 125M parameterslightonai/pagnol-medium: 355M parameterslightonai/pagnol-large: 773M parameterslightonai/pagnol-xl: 1.5B parameters@inproceedings{launay-etal-2022-pagnol,
title = "{PAG}nol: An Extra-Large {F}rench Generative Model",
author = "Launay, Julien and
Tommasone, E.l. and
Pannier, Baptiste and
Boniface, Fran{\c{c}}ois and
Chatelain, Am{\'e}lie and
Cappelli, Alessandro and
Poli, Iacopo and
Seddah, Djam{\'e}",
editor = "Calzolari, Nicoletta and
B{\'e}chet, Fr{\'e}d{\'e}ric and
Blache, Philippe and
Choukri, Khalid and
Cieri, Christopher and
Declerck, Thierry and
Goggi, Sara and
Isahara, Hitoshi and
Maegaard, Bente and
Mariani, Joseph and
Mazo, H{\'e}l{\`e}ne and
Odijk, Jan and
Piperidis, Stelios",
booktitle = "Proceedings of the Thirteenth Language Resources and Evaluation Conference",
month = jun,
year = "2022",
address = "Marseille, France",
publisher = "European Language Resources Association",
url = "https://aclanthology.org/2022.lrec-1.455",
pages = "4275--4284",
}