PreTrain GPT2 from scratch in Swedish
GPT2 for SwedishCurrently, there is no GPT2 model that was trained from scratch for Swedish on the hub:Hugging Face – The AI community building the future.. For this project, the goal is to create a strong language generation model for Swedish.ModelA randomly initialized GPT2 modelDatasetsOne can make useOSCARthe dataset is also available through thedatasetslibrary here:oscar · Datasets at Hugging Face.Available training scriptsA causal language modeling script for Flax is availablehere. It can be used pretty much without any required code changes.(Optional) Desired project outcomeThe desired project output is a GPT2 model that is able to generate Spanish language. A nice generation demo can be created for this.(Optional) ChallengesIt might be possible that there is not enough data for the model to perform reasonably well on text generation. In this case, one would have to look at other datasets as well, likemc4.(Optional) Links to read uponThe most important read would be the following colab:Google Colaboratory
2021-06-28T08:42:17Z
This sounds like a great project.Just for reference, there is a Swedish generative model based on Flashback data.arxiv.org2104.05277.pdf297.70 KBGitHubGitHub - TobiasNorlund/flashback-gpt: Official repo to the paper "Building a...Official repo to the paper "Building a Swedish Open-Domain Conversational Language Model" - GitHub - TobiasNorlund/flashback-gpt: Official repo to the paper "Building a Swedish Open-...
2021-06-28T21:35:59Z
Hi! Considering the similarity between the Scandinavian languages, I suggest we might achieve a higher performance by utilising data from all of the languages. Just a suggestion. I made a project proposal here:Scandinavian RoBERTa. It’s using RoBERTa and not GPT-2 however, but I’m not too fuzzed about the model architecture, to be honest.
2021-06-29T13:57:10Z
Cool, finalizing this project
2021-06-29T13:59:52Z
Think we can have both a Scandinavian and a Swedish GPT2 project. It would be great to find some more people working on GPT2 in Swedish as wellI’ve just put@birgermoelland@Gabrielnow