shards
list
version
int64
[ { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00000.mds", "bytes": 67100800, "hashes": { "sha1": "ab47b5a24d93570553fac3ad90c7f1067b1c3d09", "xxh64": "8c35598c9ed8fd68" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00001.mds", "bytes": 67100800, "hashes": { "sha1": "33411201d2747b8109e0d3b6fc9a2e754b508c32", "xxh64": "a6a5c0d0302c2d3a" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00002.mds", "bytes": 67100800, "hashes": { "sha1": "19ef1faf6b4feb0e216ff17bc8a86181e9cb4dd3", "xxh64": "a2db3e5df5a3105b" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00003.mds", "bytes": 67100800, "hashes": { "sha1": "59408105eba195b3276eee29901252a6c3887dcb", "xxh64": "03be655d36277980" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00004.mds", "bytes": 67100800, "hashes": { "sha1": "1760b7779740a764b77a00a66e5cac9e13c4b686", "xxh64": "da2279b68238f464" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00005.mds", "bytes": 67100800, "hashes": { "sha1": "683c97fe603747e3578c095d9b37f187d823b633", "xxh64": "cc3542ad3dc7a947" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00006.mds", "bytes": 67100800, "hashes": { "sha1": "192367be72d9b4f510bdd7665d8d14e7ac362aa7", "xxh64": "15e0c44c4b3f7fdf" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00007.mds", "bytes": 67100800, "hashes": { "sha1": "f2ba7c6cc150782de77d8465055e1548ac8f9d1b", "xxh64": "323f3c2aae99e6b4" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00008.mds", "bytes": 67100800, "hashes": { "sha1": "4c8afc34a655ca93fef4fca97d2017c8102f390f", "xxh64": "d18103b66967ec9a" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00009.mds", "bytes": 67100800, "hashes": { "sha1": "9f95c943140f44be92ff45209332344c10ea1d86", "xxh64": "1510fed9e1a4d2a1" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00010.mds", "bytes": 67100800, "hashes": { "sha1": "6dc3568ce42e91072bc151d5fff21ad87ab5f1ae", "xxh64": "be4f033c23b9b21e" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00011.mds", "bytes": 67100800, "hashes": { "sha1": "ca990dd4dffadb2ea45cdf1b12b3f6f6b0687183", "xxh64": "1db473241b96e686" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00012.mds", "bytes": 67100800, "hashes": { "sha1": "3cdf5036b73889dc4152df97c27e71442bf3c53a", "xxh64": "69cbf74759783cf9" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00013.mds", "bytes": 67100800, "hashes": { "sha1": "b2a9bb128183b6172d4468f48996fb9bca56fa71", "xxh64": "5cb5b37ead45951b" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00014.mds", "bytes": 67100800, "hashes": { "sha1": "0d98f6bd514370a9b30bd99a35b45d9e9f2085e1", "xxh64": "d6374a9fc19e7ee8" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00015.mds", "bytes": 67100800, "hashes": { "sha1": "4f5561b17f1d0d352068f721f6c23cc42d2b5c0d", "xxh64": "6abe52224793b9ca" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00016.mds", "bytes": 67100800, "hashes": { "sha1": "bb8dc5be8a52aa11c46c3aacc8a25b9af7a989c0", "xxh64": "2d54888de546b1ba" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00017.mds", "bytes": 67100800, "hashes": { "sha1": "2a07c56e5665a7a948ec68e93a41091d97fc5ad2", "xxh64": "96f9916a5d0c4cad" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00018.mds", "bytes": 67100800, "hashes": { "sha1": "849c46293828fa094e15af92980087d1326ed9e9", "xxh64": "8a13c1beaeacd723" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00019.mds", "bytes": 67100800, "hashes": { "sha1": "07ac238d6806356078b259d715bf72198abcc8a6", "xxh64": "3756b4150ff0a1d2" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00020.mds", "bytes": 67100800, "hashes": { "sha1": "61ed1b2d6d79126ec4029f54373d2907a8fbfeb8", "xxh64": "56da6a505e6c92ef" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00021.mds", "bytes": 67100800, "hashes": { "sha1": "61129a79fcdc892b2f87e5bf58be57b95d76007f", "xxh64": "43dab820c334a141" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00022.mds", "bytes": 67100800, "hashes": { "sha1": "d19045ac377b3c3805c93c30cca904934816c104", "xxh64": "f6bce483e52a5d48" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00023.mds", "bytes": 67100800, "hashes": { "sha1": "ed87f2761a46f7270b740f77ba2459c62ee8262a", "xxh64": "b1ed5ae5f63d5aa1" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00024.mds", "bytes": 67100800, "hashes": { "sha1": "44d543d59d0448058f9c05744c6b981177ed54ce", "xxh64": "33afd1d6e5d369b4" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00025.mds", "bytes": 67100800, "hashes": { "sha1": "a581f310b0adb610a0709411f6261c494f8ab930", "xxh64": "d8786a59205eb3fa" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00026.mds", "bytes": 67100800, "hashes": { "sha1": "169dbb7171d481ad5a4d2959f772a5884a904ee6", "xxh64": "7a530728dc0e1888" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00027.mds", "bytes": 67100800, "hashes": { "sha1": "0b3a885062a835661fdeefa284352ecc32ff9344", "xxh64": "0f13b71c74daf362" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00028.mds", "bytes": 67100800, "hashes": { "sha1": "9f34832ad90aee3ef6b7341ee7e4eae94ba5c774", "xxh64": "928b92dc1ec5db6a" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00029.mds", "bytes": 67100800, "hashes": { "sha1": "fb9e5c50b8728d166d2aee941cb571ba96d9d8bd", "xxh64": "d729480987f3c67e" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00030.mds", "bytes": 67100800, "hashes": { "sha1": "c1270f3ce8cefc8298c137f89ec1e7f41ff85602", "xxh64": "c9b73bc93a1c9513" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00031.mds", "bytes": 67100800, "hashes": { "sha1": "fda18470f85d13958af32f46a3056c9a979ad332", "xxh64": "e296831d6766072f" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00032.mds", "bytes": 67100800, "hashes": { "sha1": "8b58cd54f4e012a3463f03f9cd10ad2552992a57", "xxh64": "2bac409b6dbf7b6d" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00033.mds", "bytes": 67100800, "hashes": { "sha1": "2b621d3903e16e135ad3cff8672bf5646c99f0f2", "xxh64": "1b5a71698ed61266" } }, "samples": 8183, "size_limit": 67108864, "version": 2, "zip_data": null }, { "column_encodings": [ "uint16" ], "column_names": [ "input_ids" ], "column_sizes": [ null ], "compression": null, "format": "mds", "hashes": [ "sha1", "xxh64" ], "raw_data": { "basename": "shard.00034.mds", "bytes": 1730400, "hashes": { "sha1": "0ecc18dd1b47d4ff32b443bc309cfdcc5283ead4", "xxh64": "c3488aba26df36d5" } }, "samples": 211, "size_limit": 67108864, "version": 2, "zip_data": null } ]
2

Mosaic format for extra dataset to train Malaysian LLM

This repository is to store dataset shards using mosaic format.

  1. prepared at https://github.com/malaysia-ai/dedup-text-dataset/blob/main/pretrain-llm/combine-extra.ipynb
  2. using tokenizer https://huggingface.co/malaysia-ai/bpe-tokenizer
  3. 4096 context length.

how-to

  1. git clone,
git lfs clone https://huggingface.co/datasets/malaysia-ai/mosaic-extra
  1. load it,
from streaming import LocalDataset
import numpy as np
from streaming.base.format.mds.encodings import Encoding, _encodings

class UInt16(Encoding):
    def encode(self, obj) -> bytes:
        return obj.tobytes()

    def decode(self, data: bytes):
        return np.frombuffer(data, np.uint16)

_encodings['uint16'] = UInt16

dataset = LocalDataset('mosaic-extra')
len(dataset)
Downloads last month
138
Edit dataset card