Sigurdur's picture
Update README.md
b104021 verified
metadata
dataset_info:
  features:
    - name: question
      dtype: string
    - name: answer
      dtype: string
  splits:
    - name: train
      num_bytes: 4443782
      num_examples: 7473
    - name: test
      num_bytes: 800051
      num_examples: 1319
  download_size: 2987644
  dataset_size: 5243833
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*
      - split: test
        path: data/test-*
language:
  - is
pretty_name: g

GSM8K-Icelandic

GSM8K-Icelandic is an Icelandic translation of the GSM8K dataset created by OpenAI. The translation was performed using the Google Translate API by Sigurdur Haukur Birgisson.

Dataset Description

Dataset Summary

GSM8K (Grade School Math 8K) consists of 8,500 high-quality grade school math word problems. This Icelandic version maintains the same structure as the original dataset but provides all content in Icelandic, making it accessible for Icelandic speakers and supporting NLP research in the Icelandic language.

The problems require 2-8 steps to solve and primarily involve elementary arithmetic operations (+ - / *). The dataset is designed so that the difficulty level is appropriate for middle school students.

Original Dataset

The original GSM8K dataset was created by OpenAI to diagnose failures of language models in performing multi-step mathematical reasoning. Despite the conceptual simplicity of these problems, even large transformer models struggled to achieve high performance on this test set.

Dataset Structure

Data Instances

Each example contains:

  • A math word problem in Icelandic
  • A step-by-step solution in Icelandic
  • Calculation annotations
  • The final numeric answer preceded by ####

Data Splits

The dataset maintains the original split:

  • 7,500 training problems
  • 1,000 test problems

Calculation Annotations

Like the original dataset, calculation annotations are included. These are formatted as <<calculation>> and can be used to implement a calculator function during model inference.

Usage

Working with Solutions

  • To extract the final numeric solution, parse the completion to find the numeric value immediately following the #### token.
  • If you want to remove calculator annotations, remove any string that starts with << and ends with >>.

Calculator Implementation

This repository includes a basic calculator implementation for inference, following the approach used in the original dataset.

Citation

If you use this dataset in your research, please cite both the original GSM8K dataset and this Icelandic translation:

@article{cobbe2021gsm8k,
  title={Training Verifiers to Solve Math Word Problems},
  author={Cobbe, Karl and Kosaraju, Vineet and Bavarian, Mohammad and Chen, Mark and Jun, Heewoo and Kaiser, Lukasz and Plappert, Matthias and Tworek, Jerry and Hilton, Jacob and Nakano, Reiichiro and Hesse, Christopher and Schulman, John},
  journal={arXiv preprint arXiv:2110.14168},
  year={2021}
}

@misc{gsm8k-icelandic,
  title={GSM8K-Icelandic: Icelandic Translation of Grade School Math 8K Dataset},
  author={Birgisson, Sigurdur Haukur},
  year={2025},
  howpublished={\url{https://huggingface.co/datasets/sigurdurbirgisson/gsm8k-icelandic}}
}

Acknowledgements

  • Thanks to OpenAI for creating and open-sourcing the original GSM8K dataset
  • This translation was created by Sigurdur Haukur Birgisson using the Google Translate API

Example

Original English Problem:

A carnival snack booth made $50 selling popcorn each day. It made three times as much selling cotton candy. For a 5-day activity, the booth has to pay $30 rent and $75 for the cost of the ingredients. How much did the booth earn for 5 days after paying the rent and the cost of ingredients?

Icelandic Translation:

Sölubás á skemmtun þénaði $50 á dag með því að selja popp. Hann þénaði þrisvar sinnum meira með því að selja kandífloss. Fyrir 5 daga viðburð þarf básinn að greiða $30 í leigu og $75 fyrir hráefniskostnað. Hvað þénaði básinn á 5 dögum eftir að hafa greitt leiguna og hráefniskostnaðinn?