Downloads · 30 days
42
1% of all-time downloads
egonrp/gpt2-small-portuguese
gpt2-small-portuguese is a text generation model from egonrp. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
Link: https://huggingface.co/pierreguillou/gpt2-small-portuguese
Downloads · 30 days
42
1% of all-time downloads
All-time downloads
3.4K
Public
Repo size
2 GB
Likes
3
Public
Click a slice to open those files.
.bin510 MB · 34%
From the Hugging Face model README
Link: https://huggingface.co/pierreguillou/gpt2-small-portuguese
The current model repository fixes the error below in original tokenizer model loading in "Tokenizer.from_pretrained()":
>>> from tokenizers import Tokenizer
>>> tokenizer = Tokenizer.from_pretrained("pierreguillou/gpt2-small-portuguese")
[2023-03-11T18:59:51Z ERROR cached_path::cache] ETAG fetch for https://huggingface.co/pierreguillou/gpt2-small-portuguese/resolve/main/tokenizer.json failed with fatal error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
Exception: Model "pierreguillou/gpt2-small-portuguese" on the Hub doesn't have a tokenizer
Required commands to generate the absent "tokenizer.json" file from original model:
# Downloading the HuggingFace model:
$ python.exe
>>> import huggingface_hub
>>> huggingface_hub.snapshot_download(repo_id="pierreguillou/gpt2-small-portuguese", local_dir=r"C:\dev\pierre_gpt2_small_pt")
# Generating "tokenizer.json" file:
cd C:\dev\pierre_gpt2_small_pt
$ python.exe
>>> from transformers import AutoTokenizer
>>> tokenizer = AutoTokenizer.from_pretrained(r"C:\dev\pierre_gpt2_small_pt")
>>> tokenizer._tokenizer.save("tokenizer.json")
Portuguese GPT-2 small was trained and evaluated by Pierre GUILLOU thanks to the computing power of the GPU (GPU NVIDIA V100 32 Go) of the AI Lab (University of Brasilia) to which I am attached as an Associate Researcher in NLP and the participation of its directors in the definition of NLP strategy, Professors Fabricio Ataides Braz and Nilton Correia da Silva.
If you use our work, please cite:
@inproceedings{pierre2020gpt2smallportuguese,
title={GPorTuguese-2 (Portuguese GPT-2 small): a Language Model for Portuguese text generation (and more NLP tasks...)},
author={Pierre Guillou},
year={2020}
}