Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Commit Β·
6554803
1
Parent(s): 45dbf50
add a visualization of the infrastructure using a mermaid diagram
Browse filesFiles changed (2)
4 unmodified lines5678910114 unmodified lines{/* TODO: Benchmarking: plot compare against default, mention how expensive one sweep is, automatically produce plot from baseline to be optimized and spit out the result */}{/* TODO: think about what dataset to build and release as artifact: do more rephrasing with smollm2 */}{/* TODO: add a visualization for the infrastructure */}{/* TODO: add a plot for the table with the benchmark results */}{/* TODO: Analyze if certain models are more verbose than others (how many tokens did they produce per prompt?) (wait for last rephrasing job to be done) */}{/* TODO: Run dclm and edu score impact analysis on model verbosity data (wait for last rephrasing job to be done) */}4 unmodified lines56789104 unmodified lines{/* TODO: Benchmarking: plot compare against default, mention how expensive one sweep is, automatically produce plot from baseline to be optimized and spit out the result */}{/* TODO: think about what dataset to build and release as artifact: do more rephrasing with smollm2 */}{/* TODO: add a plot for the table with the benchmark results */}{/* TODO: Analyze if certain models are more verbose than others (how many tokens did they produce per prompt?) (wait for last rephrasing job to be done) */}{/* TODO: Run dclm and edu score impact analysis on model verbosity data (wait for last rephrasing job to be done) */}
17 unmodified lines18192021222317 unmodified linesIn this blog post we show how DataTrove can be used to generate a billion tokens per hour across several model scales, ranging from 1 billion to 1 trillion parameters. Let's dive in!### Generating synthetic data at scaleAt the core of the repo is `examples/inference/benchmark/generate_data.py` , a Typer-powered entry point that orchestrates the full synthetic data loop:17 unmodified lines1819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777817 unmodified linesIn this blog post we show how DataTrove can be used to generate a billion tokens per hour across several model scales, ranging from 1 billion to 1 trillion parameters. Let's dive in!<figure>```mermaidflowchart TBsubgraph Input["π₯ Input"]HF_IN["`HF Hub Dataset`"]endsubgraph Pipeline["βοΈ DataTrove Pipeline"]direction LRREAD["`**Read**HuggingFaceDatasetReader`"]TRANSFORM["`**Transform**InferenceRunner`"]WRITE["`**Write**ParquetWriter`"]READ --> TRANSFORM --> WRITEendsubgraph Inference["π Inference Engine"]direction LRROLLOUT["`**Custom Rollout**async callable`"]VLLM["`**vLLM / SGLang**Server`"]ROLLOUT -- "generate(payload)" --> VLLMendsubgraph Execution["π₯οΈ Execution Mode"]direction LRLOCAL["`**Local**single node, multi-GPU`"]SLURM["`**Slurm Cluster**multi-node, auto-scaling`"]endsubgraph Output["π€ Output"]direction LRHF_OUT["`HF Hub Dataset`"]CARD["`**Dataset Card**+ Metrics`"]MONITOR["`Progress Monitor`"]endHF_IN --> READTRANSFORM --> ROLLOUTPipeline --> ExecutionWRITE --> HF_OUTWRITE --> CARDPipeline --> MONITOR```<figcaption>Overview of the DataTrove synthetic data generation pipeline. Documents flow from the HF Hub through a three-stage pipeline (Read, Transform, Write), with the InferenceRunner dispatching custom rollout functions to vLLM/SGLang servers. The system supports both local and Slurm-based execution, with automatic dataset upload and progress monitoring.</figcaption></figure>### Generating synthetic data at scaleAt the core of the repo is `examples/inference/benchmark/generate_data.py` , a Typer-powered entry point that orchestrates the full synthetic data loop:
app/src/content/chapters/experiments.mdx-1
app/src/content/chapters/infrastructure.mdx+55