TokenSmith: Streamlining Data Editing, Search, and Inspection for Large-Scale Language Model Training and Interpretability

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Khan, Mohammad Aflah, Godbole, Ameya, Wei, Johnny Tian-Zheng, Wang, Ryan, Flemings, James, Gummadi, Krishna P., Neiswanger, Willie, Jia, Robin
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916981165260800
author Khan, Mohammad Aflah
Godbole, Ameya
Wei, Johnny Tian-Zheng
Wang, Ryan
Flemings, James
Gummadi, Krishna P.
Neiswanger, Willie
Jia, Robin
author_facet Khan, Mohammad Aflah
Godbole, Ameya
Wei, Johnny Tian-Zheng
Wang, Ryan
Flemings, James
Gummadi, Krishna P.
Neiswanger, Willie
Jia, Robin
contents Understanding the relationship between training data and model behavior during pretraining is crucial, but existing workflows make this process cumbersome, fragmented, and often inaccessible to researchers. We present TokenSmith, an open-source library for interactive editing, inspection, and analysis of datasets used in Megatron-style pretraining frameworks such as GPT-NeoX, Megatron, and NVIDIA NeMo. TokenSmith supports a wide range of operations including searching, viewing, ingesting, exporting, inspecting, and sampling data, all accessible through a simple user interface and a modular backend. It also enables structured editing of pretraining data without requiring changes to training code, simplifying dataset debugging, validation, and experimentation. TokenSmith is designed as a plug-and-play addition to existing large language model pretraining workflows, thereby democratizing access to production-grade dataset tooling. TokenSmith is hosted on GitHub, with accompanying documentation, tutorials, and a demonstration video (available on YouTube).
format Preprint
id arxiv_https___arxiv_org_abs_2507_19419
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle TokenSmith: Streamlining Data Editing, Search, and Inspection for Large-Scale Language Model Training and Interpretability
Khan, Mohammad Aflah
Godbole, Ameya
Wei, Johnny Tian-Zheng
Wang, Ryan
Flemings, James
Gummadi, Krishna P.
Neiswanger, Willie
Jia, Robin
Computation and Language
Understanding the relationship between training data and model behavior during pretraining is crucial, but existing workflows make this process cumbersome, fragmented, and often inaccessible to researchers. We present TokenSmith, an open-source library for interactive editing, inspection, and analysis of datasets used in Megatron-style pretraining frameworks such as GPT-NeoX, Megatron, and NVIDIA NeMo. TokenSmith supports a wide range of operations including searching, viewing, ingesting, exporting, inspecting, and sampling data, all accessible through a simple user interface and a modular backend. It also enables structured editing of pretraining data without requiring changes to training code, simplifying dataset debugging, validation, and experimentation. TokenSmith is designed as a plug-and-play addition to existing large language model pretraining workflows, thereby democratizing access to production-grade dataset tooling. TokenSmith is hosted on GitHub, with accompanying documentation, tutorials, and a demonstration video (available on YouTube).
title TokenSmith: Streamlining Data Editing, Search, and Inspection for Large-Scale Language Model Training and Interpretability
topic Computation and Language
url https://arxiv.org/abs/2507.19419