Dataset Viewer
The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code:   ConfigNamesError
Exception:    FileNotFoundError
Message:      Couldn't find any data file at /src/services/worker/ThisenEkanayake/UltraChat-Sinhala. Couldn't find 'ThisenEkanayake/UltraChat-Sinhala' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf://datasets/ThisenEkanayake/UltraChat-Sinhala@f879cb238d07169c49aed87e4a3f717965ca0dc9/data/train_sft.parquet' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.ndjson', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.conll', '.conllu', '.tar', '.xml', '.hdf5', '.h5', '.eval', '.lance', '.tsfile', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.3gp', '.3g2', '.avi', '.asf', '.flv', '.mp4', '.mov', '.m4v', '.mkv', '.webm', '.f4v', '.wmv', '.wma', '.ogm', '.mxf', '.nut', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.3GP', '.3G2', '.AVI', '.ASF', '.FLV', '.MP4', '.MOV', '.M4V', '.MKV', '.WEBM', '.F4V', '.WMV', '.WMA', '.OGM', '.MXF', '.NUT', '.glb', '.ply', '.stl', '.GLB', '.PLY', '.STL', '.pdf', '.PDF', '.nii', '.NII', '.zip', '.idx', '.manifest', '.txn']
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 67, in compute_config_names_response
                  config_names = get_dataset_config_names(
                      path=dataset,
                      token=hf_token,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
                  dataset_module = dataset_module_factory(
                      path,
                  ...<4 lines>...
                      **download_kwargs,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 1211, in dataset_module_factory
                  raise FileNotFoundError(
                  ...<2 lines>...
                  ) from None
              FileNotFoundError: Couldn't find any data file at /src/services/worker/ThisenEkanayake/UltraChat-Sinhala. Couldn't find 'ThisenEkanayake/UltraChat-Sinhala' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf://datasets/ThisenEkanayake/UltraChat-Sinhala@f879cb238d07169c49aed87e4a3f717965ca0dc9/data/train_sft.parquet' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.ndjson', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.conll', '.conllu', '.tar', '.xml', '.hdf5', '.h5', '.eval', '.lance', '.tsfile', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.3gp', '.3g2', '.avi', '.asf', '.flv', '.mp4', '.mov', '.m4v', '.mkv', '.webm', '.f4v', '.wmv', '.wma', '.ogm', '.mxf', '.nut', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.3GP', '.3G2', '.AVI', '.ASF', '.FLV', '.MP4', '.MOV', '.M4V', '.MKV', '.WEBM', '.F4V', '.WMV', '.WMA', '.OGM', '.MXF', '.NUT', '.glb', '.ply', '.stl', '.GLB', '.PLY', '.STL', '.pdf', '.PDF', '.nii', '.NII', '.zip', '.idx', '.manifest', '.txn']

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Dataset Card for UltraChat-Sinhala

Dataset Description

UltraChat-Sinhala is a Sinhala (සිංහල) machine translation of HuggingFaceH4/ultrachat_200k, built to supervised-fine-tune Sinhala large language models. It preserves the original dataset's structure, splits, and prompt_ids, so it is a drop-in Sinhala counterpart to the English source.

The English dialogues were translated with NLLB-200-3.3B (eng_Latn → sin_Sinh) and then put through a Sinhala-specific cleaning pipeline (conjunct/ZWJ repair, masking-leak repair, filtering). The dataset contains 515,211 dialogues / ≈528M Sinhala tokens (SinLLaMA tokenizer).

Dataset Creation

  1. Translation. Each dialogue turn was translated en→si with NLLB-200-3.3B (greedy decoding). To respect the model's 512-token limit, turns were sentence-segmented with the line layout preserved on reassembly. Spans that must not be translated — fenced/inline code, URLs, e-mail addresses, HTML tags, LaTeX/maths and markdown links — were masked before translation and restored afterwards, so they pass through verbatim.

  2. Sinhala conjunct (ZWJ) repair. NLLB's SentencePiece normaliser strips the Zero-Width Joiner (U+200D) from Sinhala conjunct clusters, emitting a space instead (e.g. ප් ර for ප්‍ර). A lexicon-gated restorer — built from a Sinhala corpus plus the tokenizer's vocabulary — re-inserts the joiner only where attested. After repair, ~99.6–99.9% of dialogues carry conjunct joiners.

  3. Masking-leak repair. The placeholder used to mask the protected spans was itself corrupted by SentencePiece (its rare brackets were stripped), displacing each masked span to the end of its message with a stray digit left behind. These were re-inserted in their correct positions by re-aligning each message to its English source (≈83% reconstructed exactly in place; the rest re-appended without any content loss).

  4. Filtering. Dialogues containing empty/whitespace-only turns were dropped (a mid-conversation turn cannot be removed without breaking the user/assistant alternation); prompt_ids were de-duplicated; and one prompt_id shared between the SFT and GEN sets was removed for global id-uniqueness.

  5. Train/test split. Membership is taken verbatim from the original ultrachat_200k split by prompt_id, so the Sinhala split is identical to the English source (≈10% test). It is leak-checked: no prompt_id and no identical dialogue appears in both train and test, in either SFT or GEN.

Dataset Structure

Like the source, the dataset has four splits, suitable for:

  • Supervised fine-tuning (sft).
  • Generation ranking (gen) via techniques like rejection sampling or PPO.
split examples tokens
train_sft 207,831 248,133,641
test_sft 23,106 27,467,232
train_gen 255,974 227,432,690
test_gen 28,300 25,035,938
total 515,211 528,069,501

Tokens are raw message-content tokens (the SinLLaMA tokenizer, vocab 139,336, has no chat template; a real SFT run adds a small per-turn special-token overhead).

The dataset is stored in parquet (zstd), schema-identical to the source:

{
    "prompt": "ආහාර පිසීමේ ව්‍යාපාරයක් සඳහා වට්ටෝරු පොතක් නිර්මාණය කරන්න. ...",
    "prompt_id": "7d86ffeefdea030c92138e0b964c304508bfebed4b23261c8a741630823e6f96",
    "messages": [
        {
            "role": "user",
            "content": "ආහාර පිසීමේ ව්‍යාපාරයක් සඳහා වට්ටෝරු පොතක් නිර්මාණය කරන්න. ..."
        },
        {
            "role": "assistant",
            "content": "නම: රසවත් ආහාර පිසීමේ රහස්: රසවත් හා ලස්සන ආහාර පිසීමේ වට්ටෝරු පොත ..."
        },
        {
            "role": "user",
            "content": "ඔයා මේ වෙනකම් හදපු වට්ටෝරු පොත නම් නියමයි. ඔයාට පුලුවන්ද තව විස්තර එකතු කරන්න ..."
        },
        {
            "role": "assistant",
            "content": "..."
        }
    ]
}

Quality and Limitations

Full-scan checks on the released data: 100% valid JSON, correct user/assistant alternation, no empty turns, no duplicate prompt_ids. ~0.017% of turns remain in Latin script (overwhelmingly fenced code, which is preserved by design), and ~0.5% of longer turns show NLLB repetition artifacts.

This is machine translation without human post-editing. Expect:

  • translationese and occasional mistranslation, especially on idioms, named entities, and technical content;
  • code, identifiers, URLs and maths intentionally left in their original form;
  • a minority of turns with NLLB repetition loops (~0.5%);
  • residual orthographic edge cases not covered by the conjunct lexicon.

It is intended for instruction-tuning and research, not as a gold-standard reference translation.

Licensing

Released under the MIT License, following the source dataset HuggingFaceH4/ultrachat_200k. The Sinhala text was produced by machine translation with NLLB-200.

Downloads last month
4