build_library_and_stats

Unified command that runs build_replacement_library followed by calc_subblock_stats.

This script combines the functionality of both commands into a single workflow: 1. First, it builds the replacement library for the puzzle 2. Then, it calculates subblock statistics

Usage:

python modelopt.torch.puzzletron.build_library_and_stats.py –config-dir configs –config-name Llama-3_1-8B puzzle_dir=/path/to/puzzle/dir dataset_path=/path/to/dataset

The script uses the same Hydra configuration as the individual commands and supports all the same configuration parameters for both build_replacement_library and calc_subblock_stats.

Functions

launch_build_library_and_stats

Launch both build_replacement_library and calc_subblock_stats in sequence.

launch_build_library_and_stats(cfg)

Launch both build_replacement_library and calc_subblock_stats in sequence.

Parameters:

cfg (DictConfig) – Hydra configuration containing settings for both commands

Return type:

None