birgermoell / nordic-gpt-wiki

huggingface.co
Total runs: 210
24-hour runs: 0
7-day runs: 8
30-day runs: 94
Model's Last Updated: September 12 2023
text-generation

Introduction of nordic-gpt-wiki

Model Details of nordic-gpt-wiki

Nordic GPT2--wikipedia

A Nordic GPT2 style model trained using Flax CLM pipeline on the Nordic parts part of the wiki40b dataset.

https://huggingface.co/datasets/wiki40b

Model series

This model is part of a series of models training on TPU with Flax Jax during Huggingface Flax/Jax challenge.

Gpt models
Swedish Gpt

https://huggingface.co/birgermoell/swedish-gpt/

Swedish gpt wiki

https://huggingface.co/flax-community/swe-gpt-wiki

Nordic gpt wiki

https://huggingface.co/flax-community/nordic-gpt-wiki

Dansk gpt wiki

https://huggingface.co/flax-community/dansk-gpt-wiki

Norsk gpt wiki

https://huggingface.co/flax-community/norsk-gpt-wiki

Roberta models
Nordic Roberta Wiki

https://huggingface.co/flax-community/nordic-roberta-wiki

Swe Roberta Wiki Oscar

https://huggingface.co/flax-community/swe-roberta-wiki-oscar

Roberta Swedish Scandi

https://huggingface.co/birgermoell/roberta-swedish-scandi

Roberta Swedish

https://huggingface.co/birgermoell/roberta-swedish

Swedish T5 model

https://huggingface.co/birgermoell/t5-base-swedish

Data cleaning and preprocessing

The data was cleaned and preprocessed using the following script. Make sure to install depencies for beam_runner to make the dataset work.

from datasets import load_dataset
def load_and_clean_wiki():
    dataset = load_dataset('wiki40b', 'da', beam_runner='DirectRunner', split="train")
    #dataset = load_dataset('wiki40b', 'sv', beam_runner='DirectRunner')
    dataset = dataset.remove_columns(['wikidata_id', 'version_id'])
    filtered_dataset = dataset.map(filter_wikipedia)
    # filtered_dataset[:3]
    # print(filtered_dataset[:3])
    return filtered_dataset

def filter_wikipedia(batch):
    batch["text"] = " ".join(batch["text"].split("\
_START_SECTION_\
"))
    batch["text"] = " ".join(batch["text"].split("\
_START_ARTICLE_\
"))
    batch["text"] = " ".join(batch["text"].split("\
_START_ARTICLE_\
"))
    batch["text"] = " ".join(batch["text"].split("\
_START_PARAGRAPH_\
"))
    batch["text"] = " ".join(batch["text"].split("_NEWLINE_"))
    batch["text"] = " ".join(batch["text"].split("\xa0"))
    return batch
Training script

The following training script was used to train the model.

./run_clm_flax.py     --output_dir="${MODEL_DIR}"     --model_type="gpt2"     --config_name="${MODEL_DIR}"     --tokenizer_name="${MODEL_DIR}"     --dataset_name="wiki40b"     --dataset_config_name="da"     --do_train --do_eval     --block_size="512"     --per_device_train_batch_size="64"     --per_device_eval_batch_size="64"     --learning_rate="5e-3" --warmup_steps="1000"     --adam_beta1="0.9" --adam_beta2="0.98" --weight_decay="0.01"     --overwrite_output_dir     --num_train_epochs="20"     --logging_steps="500"     --save_steps="1000"     --eval_steps="2500"     --push_to_hub

Runs of birgermoell nordic-gpt-wiki on huggingface.co

210
Total runs
0
24-hour runs
-2
3-day runs
8
7-day runs
94
30-day runs

More Information About nordic-gpt-wiki huggingface.co Model

nordic-gpt-wiki huggingface.co

nordic-gpt-wiki huggingface.co is an AI model on huggingface.co that provides nordic-gpt-wiki's model effect (), which can be used instantly with this birgermoell nordic-gpt-wiki model. huggingface.co supports a free trial of the nordic-gpt-wiki model, and also provides paid use of the nordic-gpt-wiki. Support call nordic-gpt-wiki model through api, including Node.js, Python, http.

birgermoell nordic-gpt-wiki online free

nordic-gpt-wiki huggingface.co is an online trial and call api platform, which integrates nordic-gpt-wiki's modeling effects, including api services, and provides a free online trial of nordic-gpt-wiki, you can try nordic-gpt-wiki online for free by clicking the link below.

birgermoell nordic-gpt-wiki online free url in huggingface.co:

https://huggingface.co/birgermoell/nordic-gpt-wiki

nordic-gpt-wiki install

nordic-gpt-wiki is an open source model from GitHub that offers a free installation service, and any user can find nordic-gpt-wiki on GitHub to install. At the same time, huggingface.co provides the effect of nordic-gpt-wiki install, users can directly use nordic-gpt-wiki installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

nordic-gpt-wiki install url in huggingface.co:

https://huggingface.co/birgermoell/nordic-gpt-wiki

Url of nordic-gpt-wiki

nordic-gpt-wiki huggingface.co Url

Provider of nordic-gpt-wiki huggingface.co

birgermoell
ORGANIZATIONS

Other API from birgermoell

huggingface.co

Total runs: 49
Run Growth: 49
Growth Rate: 100.00%
Updated:September 23 2026
huggingface.co

Total runs: 24
Run Growth: 10
Growth Rate: 41.67%
Updated:March 21 2024
huggingface.co

Total runs: 23
Run Growth: 23
Growth Rate: 100.00%
Updated:September 23 2026
huggingface.co

Total runs: 11
Run Growth: -4
Growth Rate: -36.36%
Updated:April 03 2024