--- license: odc-by task_categories: - text-generation tags: - megatron - sft - pretokenized - dolci - 32k --- # Dolci Instruct: Megatron indexed SFT, 32K CP=1 This repository contains the pretokenized Megatron dataset and exact sequential packing indexes used to train the Instruct checkpoint at iteration **3378**. It is **not** a model checkpoint or a raw-text/Parquet dataset. For fresh SFT and checkpoint resume instructions, see [START_SFT.md](START_SFT.md). The included `launch_sft.sh` defaults to dry-run; `model.yaml` preserves the original model configuration. Base weights and a compatible modified Megatron checkout are required separately and are not backed up by this dataset repository. ## Provenance and configuration - Source: [allenai/Dolci-Instruct-SFT](https://huggingface.co/datasets/allenai/Dolci-Instruct-SFT) - Source revision: `bd3c8f3a9b2cc5a9682e44b96ddd0bb2ff027221` - Tokenizer: DeepSeek-V3 vocabulary with the included OLMo-style chat template. - Sequence length: 32,768; context parallel size: **1**. - Training split: 2,141,345 documents, 54,036 packs per epoch. - Validation split: 10,761 documents, 271 packs. - Training run: 3,378 optimizer steps, global batch size 32, 108,096 consumed packs (two epochs). The stored shard corpus includes documents excluded by packing; use the supplied packing indexes to reproduce the selected splits. - Supervision masks align with **unshifted target tokens**; the Megatron loader handles next-token shifting. Do not shift the stored masks a second time. ## Files - `shards/`: 270 shard prefixes, each with `tokens`, `roles`, and `mask` `.bin/.idx` pairs, plus the original source manifest. Train/validation share the shard corpus. - `packing/`: exact CP=1 train/validation manifests and `.packing.npz` indexes, split map, packing map, and counts. Original files retain original absolute paths so their embedded manifest checksums remain valid. - `tokenizer/`: tokenizer JSON, tokenizer configuration, and chat template. - `prepare_local.py`: rebases manifests and packing-map paths after download; updates manifest checksums without altering selected sample IDs or pack offsets. - `SOURCE_README.md`: original upstream dataset card, including source attribution. - `SHA256SUMS`: checksums for all payload files (excluding this checksum file). ## Download and use ```bash hf download xfxcwynlc/instruct_olmo_tokenized_sft --repo-type dataset --local-dir ./instruct_sft python -m pip install numpy python ./instruct_sft/prepare_local.py ``` Use the three printed paths as `DATA_SPLITS_JSON`, `PACKING_INDEX_MAP`, and `TOKENIZER`. Enable `SFT_PRETOKENIZED=1`, `SFT_PACKING=1`, `SEQ_LEN=32768`, `CP=1` in a compatible Megatron training implementation. This is the custom `indexed_sft` version-1 format with tokens, roles, masks, and separate packing indexes. A stock GPT-only `.bin/.idx` loader is insufficient. The Hugging Face tabular dataset viewer / `datasets.load_dataset` is not the intended loader. Download the repository files instead. ## Attribution and use The upstream Dolci collection declares ODC-BY and research/educational intent; see `SOURCE_README.md` for component sources and applicable terms. This processing does not replace upstream dataset or tokenizer terms. Tokenization is reversible and is not a privacy/anonymization measure. No training logs, model weights, or authentication credentials are included.