Downloads · 30 days
19
1% of all-time downloads
mideind/icelandic-gpt-sw3-6.7b-gec
icelandic-gpt-sw3-6.7b-gec is a text generation model from mideind. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
ICELANDIC GPT-SW3 FOR SPELL AND GRAMMAR CHECKING =====================================
Downloads · 30 days
19
1% of all-time downloads
All-time downloads
2.1K
Public
Repo size
14 GB
Likes
1
Public
Click a slice to open those files.
.bin14 GB · 100%
From the Hugging Face model README
This is a model for correcting spelling and grammar errors in Icelandic text. It is a GPT-SW3 model (https://huggingface.co/AI-Sweden-Models/gpt-sw3-6.7b) finetuned on Icelandic and particularly on the spell and grammar checking task.
Provided here is the model along with a script for running it through a Hugging Face endpoint. An authorized Hugging Face API key is required to do so. Once you have retrieved an API key and it has been authorized, add it to you environment as "HF_API_KEY".
To run the model you will need a python3 environment. Install the required dependencies by running
pip install -r requirements.txt
The current version of transformers includes a bug in the GPTSw3Tokenizer class which causes it to use the wrong BOS and PAD tokens if the tokenizer is loaded through AI-Sweden-Models/gpt-sw3-6.7b. Load the tokenizer through mideind/icelandic-gpt-sw3-6.7b-gec instead to avoid this bug.
The model is fine-tuned on the following three tasks. Output examples for each task are shown in ./example_outputs.
Run the model with
python run_model.py
Input text(s) and the task type need to be specified in the script.