Berzelius and the Swedish language models
In March 2021 Berzelius was inaugurated in Linköping, Sweden's fastest AI supercomputer to date. Together with the National Library's KB-BERT and AI Sweden's GPT-SW3, it shows how Sweden tried to build its own capability in the age of language models.
Retrospective written in 2026 by the AInu editors with the help of AI, based on the sources below.
On 23 March 2021 Linköping University’s vice-chancellor Jan-Ingvar Jönsson cut a ribbon at the National Supercomputer Centre. The inauguration was held online, since the pandemic was still going on, but what was on show was very concrete: Berzelius, by a clear margin the fastest supercomputer for AI and machine learning Sweden had ever had.
To understand why a machine in Linköping matters in AI history, you have to go back to the question that shaped the period after GPT-3: who can afford to build large models, and what happens to languages other than English?
The problem with small languages
GPT-3, presented in May 2020, had been trained on enormous amounts of text, most of it in English. The model did know some Swedish, but it was built by an American company, on American computers and with data reflecting the English-speaking internet.
For a country of ten million people this raised several questions. Would Swedish authorities, companies and researchers be dependent on foreign models that might not understand Swedish conditions? Was there enough Swedish text, and enough computing power, to build their own?
KB-BERT: the library that built a language model
The first Swedish answer came from an unexpected place: the National Library of Sweden (Kungliga biblioteket, KB) in Stockholm. The library had set up a data lab, KBLab, and was sitting on something few others had, namely large amounts of Swedish text. Through legal deposit laws KB collects more or less everything published in Sweden, from books and newspapers to government reports.
In spring 2020 KBLab openly shared a Swedish version of Google’s BERT language model, and in July Martin Malmsten, Love Börjeson and Chris Haffenden described the work in the paper “Playing with Words at the National Library of Sweden”. According to the project’s GitHub page, the model had been trained on about 15 to 20 gigabytes of text, some 200 million sentences, from books, news, government texts, Swedish Wikipedia and discussion forums.
KB-BERT was not a text generator like GPT-3. BERT models are used instead to understand text, for example to find names of people and places or determine which part of speech a word is. On such tasks KB-BERT beat both Google’s multilingual BERT and a Swedish model built by the Swedish Public Employment Service. The models were shared openly and became a building block for Swedish language technology.
The work showed two things. That Swedish text in public collections was a resource of real value. And that even a relatively small organisation could build a good language model, but that it needed computing power KB had to borrow, partly through Google’s cloud research programme.
Berzelius: Sweden’s AI machine
Computing power was the bottleneck. On 5 October 2020 Linköping University announced that the Knut and Alice Wallenberg Foundation had donated 300 million kronor to build an AI supercomputer at the National Supercomputer Centre, NSC. It was named Berzelius after the Östergötland-born scientist Jacob Berzelius, and the spelling BerzeLiUs worked in the university’s abbreviation, LiU.
The computer was built by the French IT company Atos and consisted of 60 Nvidia DGX A100 systems with eight GPUs each, a total of 480 of Nvidia’s then-new A100 chips, linked by fast InfiniBand networking. Its combined AI capacity was 300 petaflops. Berzelius was meant for collaboration between academia and industry, mainly within the programmes funded by the Wallenberg foundation, such as the WASP AI programme and the major efforts in life sciences and quantum technology.
At the inauguration in March 2021 the foundation’s vice chair Marcus Wallenberg took part, and Nvidia founder and chief executive Jensen Huang was among those quoted in the university’s press release.
Compared with the machines that trained GPT-3, Berzelius was small. Microsoft’s supercomputer for OpenAI had, according to Microsoft, 10,000 GPUs. But for Swedish research it was a leap. Suddenly there was a machine in the country on which models with billions of parameters could be trained.
GPT-SW3: a Swedish GPT
The best-known result was GPT-SW3. AI Sweden, the national centre for applied AI that was called AI Innovation of Sweden until autumn 2020, and the research institute RISE built a generative language model for Swedish. It was presented in December 2021, and according to the paper presented at the LREC conference in June 2022, the model had 3.5 billion parameters, was trained on a newly created 100-gigabyte Swedish text collection and had been trained on Berzelius.
The researchers described it as the largest generative model for Swedish to date. According to the paper, the only previously published Swedish GPT model was a 1.5-billion-parameter model trained on 23 gigabytes of text from the discussion forum Flashback.
GPT-SW3 then grew. A second generation for the Nordic languages, trained on Swedish, Norwegian, Danish, Icelandic and English, was pre-released to researchers in December 2022, and according to AI Sweden models with up to 40 billion parameters were released under an open licence in November 2023.
More muscle
Berzelius was expanded in several rounds. In January 2023 it got 34 new nodes, giving 94 DGX A100 systems and 470 petaflops. In 2025 sixteen Nvidia DGX H200 units were added, according to Linköping University.
Why it mattered
Berzelius, KB-BERT and GPT-SW3 were not world-leading. The largest American and Chinese models were hundreds of times larger. But they show how Sweden tried to answer a question that today, in autumn 2026, is more pressing than ever: how much capability of its own does a small country need in AI?
The answer that emerged in 2020 and 2021 had three parts. Data: Swedish text in public collections such as the National Library’s. Compute: a national machine funded by private foundation money. And collaboration: a national centre like AI Sweden that could bring authorities, companies and researchers together around shared projects.
At the same time the experience showed the limits. A supercomputer with 480 GPUs was enough to build Swedish models, but not to compete with the global giants. The debate about Swedish computing power, sovereignty and whether the country should build its own models or adapt others’ has continued ever since.
Read more about the model in GPT-SW3: when Sweden built its own language model and about the period in The year 2020 and The year 2021.
Sources
- Linköping University: Sweden’s fastest AI supercomputer inaugurated
- Linköping University: Sweden’s largest AI supercomputer to be built at LiU
- Linköping University: Swedish AI research gets more muscle
- Linköping University: Stronger Berzelius ready for future research
- arXiv: Playing with Words at the National Library of Sweden
- GitHub: Kungbib/swedish-bert-models
- LREC 2022: Lessons Learned from GPT-SW3
- AI Sweden: GPT-SW3
- Microsoft: Supercomputer for OpenAI
- Dagens PS: Nu utvecklas en stor AI-baserad språkmodell på svenska