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": "d4b924622dc3bc9dedccc34ab7383f5efa5f2453", "xxh64": "adbee3c4f1e48b46" } }, "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": "120c3ef143ce43f8105be7b281ad390da7677050", "xxh64": "b085b68c9cbe6a4e" } }, "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": "9cf34a62de1c485dec548f7bad1c345419905389", "xxh64": "9ce28d4ba5defd92" } }, "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": "39da86cf5bc3e28081e51852d17c0e4092b98cfe", "xxh64": "d6cbf91bda962278" } }, "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": "b48b461bb23fa5ff1b0b2252029fe6fdd80d60ab", "xxh64": "6f131ca8e127a8db" } }, "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": "c57f35517fe9ff3fd01e2c2b31c3883c41a0461f", "xxh64": "ca3b09c1cfafbaa4" } }, "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": "1c324f4e1fe852f4d7d159b2671a9dc2c0dc8968", "xxh64": "99abac3564c8acf4" } }, "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": "be04725836d79f48cf3ea9aea1b288cd89f54a01", "xxh64": "1166c37d9c555507" } }, "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": "6fb45a5448a24359c64188ad43f7362db26ae503", "xxh64": "22c3835020693a12" } }, "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": "a703017ff4bf6ec272b474f704be63c223f211b5", "xxh64": "4a52e76a96db9388" } }, "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": "edf8f17fd9524c62dd0f1df5508b148ce06d8e82", "xxh64": "2b8aae5d6e08ef99" } }, "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": "9a15f90aef320570c1bd7236d79a1e4f925e153c", "xxh64": "9f35c1ffdec883ca" } }, "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": "8e4959df8aef1ec78f1891ba887933f3d98d808e", "xxh64": "fab42bb72018ae12" } }, "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": "9023f71030982167261683f819d528c70da5960b", "xxh64": "d853a986ec093d75" } }, "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": "89164079d7cb6a5a3f113f856cbf01ecc70de160", "xxh64": "d2d5b11d380b3b8f" } }, "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": "d57e0ecae55d0e14bb2a9c435d3452af570779a0", "xxh64": "08e8d07cce9cbab9" } }, "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": "7216e1308f5072cc526c8ed11eab085d6525bc72", "xxh64": "eeac78e81200c751" } }, "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": "db25ab4919b83b123a3ecdd733304acb74896790", "xxh64": "5077df76018ddc9a" } }, "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": "8949c555beb7f48626549f3dc24ea093a4502b6d", "xxh64": "c2faba0c26c2b3fe" } }, "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": "c141d6f4bfcb84eae16780217135c05c273c48ac", "xxh64": "c86ec6159cd03ec5" } }, "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": "b58c322b712b0fafbc0fca77bd187824f51512f1", "xxh64": "f7de0513aebe242e" } }, "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": "42d89a035bcf3524020b71aa6450ddfa70fb9c26", "xxh64": "a614aa3a430d738d" } }, "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": "fa2be19eadde58c6d38164b096fea4e02740db31", "xxh64": "b9a487adafd39da8" } }, "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": "36747fab5519e9edd843ff1d05e488679e59b7dd", "xxh64": "4986b3686897a5ac" } }, "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": "e8cc4786eb147540fbb521a7c9b9815c9b4d61b7", "xxh64": "aadbe3c0a392b446" } }, "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": "1471eb3b163f2fd2b97d94403fb762cd6311df79", "xxh64": "c476f3653f456478" } }, "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": "ff458bd9a94e89e4db471df31346dbad86da9ff9", "xxh64": "24347f133ffe23c8" } }, "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": "dbc1df168329a9ec5b34acfe80ae07213ba19ad2", "xxh64": "efff1fd8dd7ab0fe" } }, "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": "5062cb52fb4afa3243aafd231468fc42787d5233", "xxh64": "e9f818efd53b0710" } }, "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": "e66cac250f9586ebd9238d1855d425ac125568bd", "xxh64": "491cbe6eab3a488e" } }, "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": "e89750ba62ac390e138fa1496a8abb5ad3daa084", "xxh64": "6a9b071c82f75f22" } }, "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": "3e0faef10f7d6a7ceaf12a3ab897e301d8d8c255", "xxh64": "e77f3d7de3f34a70" } }, "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": "08d35f96d2409aa8d745cee2fbb3acec68055db8", "xxh64": "32e357ae0580888b" } }, "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": "54532bf29996026550e68872dea818581f6ba1c7", "xxh64": "c135d4db5278f852" } }, "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": 67100800, "hashes": { "sha1": "80a75a6a4035acd0b6fbba193f5847b3eeb82a43", "xxh64": "72beeda13296c4e7" } }, "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.00035.mds", "bytes": 67100800, "hashes": { "sha1": "91b90c65f217016879fd517948b3794c056d5d83", "xxh64": "d34683a64beddef5" } }, "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.00036.mds", "bytes": 67100800, "hashes": { "sha1": "e61609da1096611b464f6f517b204ba4ae8dfa39", "xxh64": "20b4da5b01926e1d" } }, "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.00037.mds", "bytes": 67100800, "hashes": { "sha1": "90991a2a718b853acaa85646b08fdff84b7d1aa4", "xxh64": "733fe7b025dc9fd3" } }, "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.00038.mds", "bytes": 67100800, "hashes": { "sha1": "c24b158dd0c511ed08accc98a6d4ffcff87ca346", "xxh64": "d345c1370cb55c51" } }, "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.00039.mds", "bytes": 67100800, "hashes": { "sha1": "03c09a511e05116cf329a6831fc6bf614ff7741b", "xxh64": "273462d11c67c15e" } }, "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.00040.mds", "bytes": 67100800, "hashes": { "sha1": "36c3c81e9d3481a4c7c6e8cdc630f49e28dfa950", "xxh64": "250a0392426c4e0b" } }, "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.00041.mds", "bytes": 67100800, "hashes": { "sha1": "4f63e6b337e277f80fb196b00409f81516360b26", "xxh64": "9f7c9e0939b7877c" } }, "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.00042.mds", "bytes": 67100800, "hashes": { "sha1": "1e6abb75362efabb2729191d494646763b5ba24f", "xxh64": "4639c97d9e909cd1" } }, "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.00043.mds", "bytes": 67100800, "hashes": { "sha1": "5544110b1f959958d6a31b8804d9fa22511a0451", "xxh64": "c88b51140a756696" } }, "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.00044.mds", "bytes": 67100800, "hashes": { "sha1": "bba24f45a984b6aef9fd433335f06e020321e947", "xxh64": "397eca41692728cf" } }, "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.00045.mds", "bytes": 67100800, "hashes": { "sha1": "121b3bd5f7950a47f0ba556db8c4c5963756228f", "xxh64": "78adb17eaf7f51ea" } }, "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.00046.mds", "bytes": 67100800, "hashes": { "sha1": "89b29d67e83984650a07e3009bb56c23b987034a", "xxh64": "a603eadcca453ee1" } }, "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.00047.mds", "bytes": 5108800, "hashes": { "sha1": "f5568c016359ca247f3b742bf793b1d7ff5088db", "xxh64": "5bd96836fb4e23b6" } }, "samples": 623, "size_limit": 67108864, "version": 2, "zip_data": null } ]
2

Mosaic format for instructions 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-instructions.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-instructions
  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-instructions')
len(dataset)
Downloads last month
0
Edit dataset card