/** * The training run config: every section, field and default of the deleted Python * schema (`config/schema.py`), in its declaration order, and the zod schema of * the resolved config the Rust trainer and sampler read. * * Each field records its Python annotation because the loader's coercion reads it. * A numeric string converts only for a field annotated exactly `int` or `float`, * so `5e-4` under `learning_rate` becomes a float while the same string under * `span_head_learning_rate`, annotated `float | None`, stays a string. * * An integer default is a `bigint` because the loader tests the Python type * of each receipt and coverage minimum. */ import { z } from "zod"; import type { PythonValue } from "#training/config/python-yaml"; /** * The version of the resolved config document. * A change to a field's name, type or meaning increments it. */ export declare const RESOLVED_TRAINING_CONFIG_VERSION = 1; /** * One dataclass field: its Python annotation, its default and the type its resolved value takes. */ export interface ConfigFieldSpec { annotation: string; /** * Builds a fresh default, so a list or mapping default is never shared between configs. */ default: () => PythonValue; output: Output; /** * The nested dataclass a mapping merges into, as `Config.data` names `DataConfig`. */ section?: ConfigSectionSpec; } /** * One dataclass, using the name in the Python loader's unknown-key message. */ export interface ConfigSectionSpec = Record> { className: string; fields: Fields; } /** * The orders the train split can be read in. * * `mixture` draws each row's source from the weights and shuffles. * `stored` reads each positively weighted source's rows once, in the order `source_weights` * lists the sources and the corpus stores the rows, and ends the run when the files end. * * `stratified` mixes exact shuffled passes over `tier1_sources` at `tier1_share` * with temperature-smoothed sampling over Tier-2 sources. */ export declare const READ_ORDERS: readonly ["mixture", "stored", "stratified"]; export type ReadOrder = (typeof READ_ORDERS)[number]; /** * How runtime augmentations are emitted by `mtf-sampler`. * * `legacy_copy` emits augmented rows beside the original row, preserving v8 parity. * `in_place` transforms each popped row 1-to-1 after the shuffle buffer with an isolated PRNG. */ export declare const AUGMENT_MODES: readonly ["legacy_copy", "in_place"]; export type AugmentMode = (typeof AUGMENT_MODES)[number]; /** * The Python CorpusReceiptConfig dataclass: a floor on the training draws that * hold one source, country and component sequence. * * `min_draws` is an absolute floor. * `min_fraction_of_expected` states a floor as a fraction of the draws the receipt's * source share expects, so it follows the source's weight. * The epoch-mixture audit applies the larger of the two. */ export declare const CORPUS_RECEIPT_SECTION: { readonly className: "CorpusReceiptConfig"; readonly fields: { readonly name: { annotation: string; default: () => string; output: z.ZodString; }; readonly min_draws: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly min_fraction_of_expected: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly source: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly country: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly component_sequence: { annotation: string; default: () => PythonValue; output: z.ZodArray; }; }; }; /** * The Python ValidationCoverageConfig dataclass: a floor on one country's rows in a held-out split. */ export declare const VALIDATION_COVERAGE_SECTION: { readonly className: "ValidationCoverageConfig"; readonly fields: { readonly country: { annotation: string; default: () => string; output: z.ZodString; }; readonly split: { annotation: string; default: () => string; output: z.ZodString; }; readonly min_rows: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly min_street_rows: { annotation: string; default: () => bigint; output: z.ZodNumber; }; }; }; /** * The Python LabelSupportConfig dataclass: a floor on the rows of a held-out * split's trainer draw that hold one component label. */ export declare const LABEL_SUPPORT_SECTION: { readonly className: "LabelSupportConfig"; readonly fields: { readonly label: { annotation: string; default: () => string; output: z.ZodString; }; readonly split: { annotation: string; default: () => string; output: z.ZodString; }; readonly min_rows: { annotation: string; default: () => bigint; output: z.ZodNumber; }; }; }; /** * `DataConfig`. * * `unshippable_reason` admits a source whose register rows lack an elected decision * permitting transform and train, and marks the run not shippable. * * `prominent_place_coverage` is the path of the prominent-places census's `places.parquet`. * Its `PLACES.json` sits beside it. * * A config that sets it runs the `prominent_place_coverage` receipt in the launch preflight (#3156). * * `required_place_coverage` is the least share of the WOF places the `wof-admin` * adapter renders that must hold a `wof-admin` train row. * A config that sets it runs the `place_coverage` receipt in the launch preflight. */ export declare const DATA_SECTION: { readonly className: "DataConfig"; readonly fields: { readonly corpus_dir: { annotation: string; default: () => string; output: z.ZodString; }; readonly tokenizer_dir: { annotation: string; default: () => string; output: z.ZodString; }; readonly max_length: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly country_weights: { annotation: string; default: () => PythonValue; output: z.ZodRecord; }; readonly source_weights: { annotation: string; default: () => null; output: z.ZodNullable>; }; readonly source_reps: { annotation: string; default: () => null; output: z.ZodNullable>; }; readonly source_emit_factors: { annotation: string; default: () => null; output: z.ZodNullable>; }; readonly unshippable_reason: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly required_corpus_receipts: { annotation: string; default: () => PythonValue; output: z.ZodArray; source: z.ZodNullable; country: z.ZodNullable; component_sequence: z.ZodArray; }, z.core.$strict>>; }; readonly required_validation_coverage: { annotation: string; default: () => PythonValue; output: z.ZodArray>; }; readonly required_validation_label_support: { annotation: string; default: () => PythonValue; output: z.ZodArray>; }; readonly prominent_place_coverage: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly required_place_coverage: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly train_rows_per_epoch: { annotation: string; default: () => bigint | null; output: z.ZodNullable; }; readonly read_order: { annotation: string; default: () => PythonValue; output: z.ZodEnum<{ mixture: "mixture"; stored: "stored"; stratified: "stratified"; }>; }; readonly val_rows: { annotation: string; default: () => bigint | null; output: z.ZodNullable; }; readonly coarse_filter: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly augment_directional_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly augment_region_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly augment_glue_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly augment_ordinal_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly augment_case_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly augment_punct_drop_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly augment_upper_case_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly augment_postcode_move_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly augment_grouping_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly code_unit_features: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly route_features: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly augment_exclude_sources: { annotation: string; default: () => PythonValue; output: z.ZodArray; }; readonly anchor_lookup_path: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly gazetteer_lexicon_path: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly country_lexicon_path: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly street_type_lexicon_path: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly locality_surface_lexicon_path: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly gazetteer_choreography: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly char_mode: { annotation: string; default: () => string; output: z.ZodString; }; readonly char_vocab_path: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly char_ctx: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly max_unit_width: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly max_units: { annotation: string; default: () => bigint | null; output: z.ZodNullable; }; readonly label_set: { annotation: string; default: () => string; output: z.ZodString; }; readonly affix_relabel_lexicon_path: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly anchor_paint_mode: { annotation: string; default: () => string; output: z.ZodString; }; readonly anchor_value_mode: { annotation: string; default: () => string; output: z.ZodString; }; readonly region_centroids_path: { annotation: string; default: () => null; output: z.ZodNullable; }; /** * The corpus's outcome mask file, relative to the checkout. * * A model with the outcome hint or head reads it (`packages/trainer/crates/trainer-loop/src/outcomes.rs`). */ readonly outcome_masks_path: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly byte_window: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly augment_mode: { annotation: string; default: () => PythonValue; output: z.ZodEnum<{ in_place: "in_place"; legacy_copy: "legacy_copy"; }>; }; readonly augment_drop_commas_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly augment_double_space_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly augment_line_breaks_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly augment_accent_strip_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly tier1_sources: { annotation: string; default: () => PythonValue; output: z.ZodArray; }; readonly tier1_share: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly temperature_alpha: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly spread_visit_rows: { annotation: string; default: () => bigint | null; output: z.ZodNullable; }; readonly use_alias_draw_weights: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; /** * The grammar-family partition table, relative to the checkout. * * Defaults to `packages/trainer/data/grammar_families.json` when configured for v9. */ readonly grammar_families_path: { annotation: string; default: () => null; output: z.ZodNullable; }; }; }; /** * `ModelConfig`. */ export declare const MODEL_SECTION: { readonly className: "ModelConfig"; readonly fields: { readonly hidden_size: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly num_hidden_layers: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly num_attention_heads: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly intermediate_size: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly max_position_embeddings: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly type_vocab_size: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly hidden_dropout_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly attention_probs_dropout_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly use_crf: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly label_smoothing: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly crf_loss_weight: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly crf_normalization: { annotation: string; default: () => string; output: z.ZodString; }; readonly crf_fp32: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly class_weights: { annotation: string; default: () => null; output: z.ZodNullable>; }; readonly use_phrase_priors: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly phrase_feature_dim: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly use_locale_conditioning: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly locale_loss_weight: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly use_address_system_head: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly address_system_loss_weight: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly use_locale_hint: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly locale_hint_drop_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly locale_hint_noise_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly use_outcome_hint: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly outcome_hint_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly use_outcome_head: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly outcome_loss_weight: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly use_postcode_anchor: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly use_gazetteer_anchor: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly use_conventions_loss_mask: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly use_span_boundary_head: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly span_boundary_loss_weight: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly use_span_scorer: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly span_loss_weight: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly span_dim: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly max_span: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly gazetteer_feature_dim: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly use_country_anchor: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly country_feature_dim: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly country_ambiguous_scale: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly use_street_type_anchor: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly street_type_feature_dim: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly use_locality_surface_anchor: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly locality_surface_feature_dim: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly use_code_unit_anchor: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly code_unit_feature_dim: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly use_route_anchor: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly route_feature_dim: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly use_char_embed: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly char_embed_dim: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly char_kernel_sizes: { annotation: string; default: () => PythonValue; output: z.ZodArray; }; readonly use_byte_stem: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly byte_embed_dim: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly byte_kernel_sizes: { annotation: string; default: () => PythonValue; output: z.ZodArray; }; readonly use_rel_pos_bias: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly rel_pos_max_dist: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly use_grammar_smear: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly grammar_layer: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly num_grammar_families: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly smear_rank: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly smear_start_layer: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly grammar_loss_weight: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly use_outcome_attn_pool: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly outcome_hint_noise_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly outcome_hint_parent_only: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly outcome_mask_loss_on_hint: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly outcome_class_weights: { annotation: string; default: () => null; output: z.ZodNullable>; }; }; }; /** * `TrainConfig`. * * `csv_log_path` is a template whose `{output_dir}` the resolver fills. */ export declare const TRAIN_SECTION: { readonly className: "TrainConfig"; readonly fields: { readonly output_dir: { annotation: string; default: () => string; output: z.ZodString; }; readonly seed: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly batch_size: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly eval_batch_size: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly grad_accum_steps: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly learning_rate: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly weight_decay: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly span_head_learning_rate: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly classifier_learning_rate: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly reinit_label_rows: { annotation: string; default: () => PythonValue; output: z.ZodArray; }; readonly warmup_steps: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly max_steps: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly eval_every_steps: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly save_every_steps: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly log_every_steps: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly precision: { annotation: string; default: () => string; output: z.ZodString; }; readonly num_workers: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly csv_log_path: { annotation: string; default: () => string; output: z.ZodString; }; readonly grad_clip_norm: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly fisher_capture: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly fisher_capture_last_n_steps: { annotation: string; default: () => bigint; output: z.ZodNumber; }; readonly ewc_lambda: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly ewc_fisher_path: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly ewc_reference: { annotation: string; default: () => null; output: z.ZodNullable; }; readonly lr_schedule: { annotation: string; default: () => string; output: z.ZodString; }; readonly cooldown_start_step: { annotation: string; default: () => bigint | null; output: z.ZodNullable; }; readonly gazetteer_curriculum: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly evidence_curriculum: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly evidence_noise_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly objective: { annotation: string; default: () => string; output: z.ZodString; }; readonly mlm_mask_prob: { annotation: string; default: () => number; output: z.ZodNumber; }; readonly init_from: { annotation: string; default: () => string; output: z.ZodString; }; readonly freeze_token_embeddings: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly trainable_only_prefixes: { annotation: string; default: () => PythonValue; output: z.ZodArray; }; readonly cuda_graph: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly length_buckets: { annotation: string; default: () => PythonValue; output: z.ZodArray; }; readonly trackio_enabled: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; readonly trackio_project: { annotation: string; default: () => string; output: z.ZodString; }; readonly trackio_space: { annotation: string; default: () => string; output: z.ZodString; }; readonly trackio_run_name: { annotation: string; default: () => string; output: z.ZodString; }; readonly trackio_private: { annotation: string; default: () => boolean; output: z.ZodBoolean; }; }; }; /** * `EvalConfig`. */ export declare const EVAL_SECTION: { readonly className: "EvalConfig"; readonly fields: { readonly golden_dir: { annotation: string; default: () => string; output: z.ZodString; }; readonly val_jsonl: { annotation: string; default: () => string; output: z.ZodString; }; }; }; /** * `Config`: the four sections a YAML file's top-level mapping merges into. */ export declare const CONFIG_SECTION: { readonly className: "Config"; readonly fields: { readonly data: { annotation: string; default: () => PythonValue; output: z.ZodObject<{ corpus_dir: z.ZodString; tokenizer_dir: z.ZodString; max_length: z.ZodNumber; country_weights: z.ZodRecord; source_weights: z.ZodNullable>; source_reps: z.ZodNullable>; source_emit_factors: z.ZodNullable>; unshippable_reason: z.ZodNullable; required_corpus_receipts: z.ZodArray; source: z.ZodNullable; country: z.ZodNullable; component_sequence: z.ZodArray; }, z.core.$strict>>; required_validation_coverage: z.ZodArray>; required_validation_label_support: z.ZodArray>; prominent_place_coverage: z.ZodNullable; required_place_coverage: z.ZodNullable; train_rows_per_epoch: z.ZodNullable; read_order: z.ZodEnum<{ mixture: "mixture"; stored: "stored"; stratified: "stratified"; }>; val_rows: z.ZodNullable; coarse_filter: z.ZodBoolean; augment_directional_prob: z.ZodNumber; augment_region_prob: z.ZodNumber; augment_glue_prob: z.ZodNumber; augment_ordinal_prob: z.ZodNumber; augment_case_prob: z.ZodNumber; augment_punct_drop_prob: z.ZodNumber; augment_upper_case_prob: z.ZodNumber; augment_postcode_move_prob: z.ZodNumber; augment_grouping_prob: z.ZodNumber; code_unit_features: z.ZodBoolean; route_features: z.ZodBoolean; augment_exclude_sources: z.ZodArray; anchor_lookup_path: z.ZodNullable; gazetteer_lexicon_path: z.ZodNullable; country_lexicon_path: z.ZodNullable; street_type_lexicon_path: z.ZodNullable; locality_surface_lexicon_path: z.ZodNullable; gazetteer_choreography: z.ZodBoolean; char_mode: z.ZodString; char_vocab_path: z.ZodNullable; char_ctx: z.ZodNumber; max_unit_width: z.ZodNumber; max_units: z.ZodNullable; label_set: z.ZodString; affix_relabel_lexicon_path: z.ZodNullable; anchor_paint_mode: z.ZodString; anchor_value_mode: z.ZodString; region_centroids_path: z.ZodNullable; outcome_masks_path: z.ZodNullable; byte_window: z.ZodNumber; augment_mode: z.ZodEnum<{ in_place: "in_place"; legacy_copy: "legacy_copy"; }>; augment_drop_commas_prob: z.ZodNumber; augment_double_space_prob: z.ZodNumber; augment_line_breaks_prob: z.ZodNumber; augment_accent_strip_prob: z.ZodNumber; tier1_sources: z.ZodArray; tier1_share: z.ZodNumber; temperature_alpha: z.ZodNumber; spread_visit_rows: z.ZodNullable; use_alias_draw_weights: z.ZodBoolean; grammar_families_path: z.ZodNullable; }, z.core.$strict>; section: ConfigSectionSpec; }; readonly model: { annotation: string; default: () => PythonValue; output: z.ZodObject<{ hidden_size: z.ZodNumber; num_hidden_layers: z.ZodNumber; num_attention_heads: z.ZodNumber; intermediate_size: z.ZodNumber; max_position_embeddings: z.ZodNumber; type_vocab_size: z.ZodNumber; hidden_dropout_prob: z.ZodNumber; attention_probs_dropout_prob: z.ZodNumber; use_crf: z.ZodBoolean; label_smoothing: z.ZodNumber; crf_loss_weight: z.ZodNumber; crf_normalization: z.ZodString; crf_fp32: z.ZodBoolean; class_weights: z.ZodNullable>; use_phrase_priors: z.ZodBoolean; phrase_feature_dim: z.ZodNumber; use_locale_conditioning: z.ZodBoolean; locale_loss_weight: z.ZodNumber; use_address_system_head: z.ZodBoolean; address_system_loss_weight: z.ZodNumber; use_locale_hint: z.ZodBoolean; locale_hint_drop_prob: z.ZodNumber; locale_hint_noise_prob: z.ZodNumber; use_outcome_hint: z.ZodBoolean; outcome_hint_prob: z.ZodNumber; use_outcome_head: z.ZodBoolean; outcome_loss_weight: z.ZodNumber; use_postcode_anchor: z.ZodBoolean; use_gazetteer_anchor: z.ZodBoolean; use_conventions_loss_mask: z.ZodBoolean; use_span_boundary_head: z.ZodBoolean; span_boundary_loss_weight: z.ZodNumber; use_span_scorer: z.ZodBoolean; span_loss_weight: z.ZodNumber; span_dim: z.ZodNumber; max_span: z.ZodNumber; gazetteer_feature_dim: z.ZodNumber; use_country_anchor: z.ZodBoolean; country_feature_dim: z.ZodNumber; country_ambiguous_scale: z.ZodNumber; use_street_type_anchor: z.ZodBoolean; street_type_feature_dim: z.ZodNumber; use_locality_surface_anchor: z.ZodBoolean; locality_surface_feature_dim: z.ZodNumber; use_code_unit_anchor: z.ZodBoolean; code_unit_feature_dim: z.ZodNumber; use_route_anchor: z.ZodBoolean; route_feature_dim: z.ZodNumber; use_char_embed: z.ZodBoolean; char_embed_dim: z.ZodNumber; char_kernel_sizes: z.ZodArray; use_byte_stem: z.ZodBoolean; byte_embed_dim: z.ZodNumber; byte_kernel_sizes: z.ZodArray; use_rel_pos_bias: z.ZodBoolean; rel_pos_max_dist: z.ZodNumber; use_grammar_smear: z.ZodBoolean; grammar_layer: z.ZodNumber; num_grammar_families: z.ZodNumber; smear_rank: z.ZodNumber; smear_start_layer: z.ZodNumber; grammar_loss_weight: z.ZodNumber; use_outcome_attn_pool: z.ZodBoolean; outcome_hint_noise_prob: z.ZodNumber; outcome_hint_parent_only: z.ZodBoolean; outcome_mask_loss_on_hint: z.ZodBoolean; outcome_class_weights: z.ZodNullable>; }, z.core.$strict>; section: ConfigSectionSpec; }; readonly train: { annotation: string; default: () => PythonValue; output: z.ZodObject<{ output_dir: z.ZodString; seed: z.ZodNumber; batch_size: z.ZodNumber; eval_batch_size: z.ZodNumber; grad_accum_steps: z.ZodNumber; learning_rate: z.ZodNumber; weight_decay: z.ZodNumber; span_head_learning_rate: z.ZodNullable; classifier_learning_rate: z.ZodNullable; reinit_label_rows: z.ZodArray; warmup_steps: z.ZodNumber; max_steps: z.ZodNumber; eval_every_steps: z.ZodNumber; save_every_steps: z.ZodNumber; log_every_steps: z.ZodNumber; precision: z.ZodString; num_workers: z.ZodNumber; csv_log_path: z.ZodString; grad_clip_norm: z.ZodNumber; fisher_capture: z.ZodBoolean; fisher_capture_last_n_steps: z.ZodNumber; ewc_lambda: z.ZodNumber; ewc_fisher_path: z.ZodNullable; ewc_reference: z.ZodNullable; lr_schedule: z.ZodString; cooldown_start_step: z.ZodNullable; gazetteer_curriculum: z.ZodBoolean; evidence_curriculum: z.ZodBoolean; evidence_noise_prob: z.ZodNumber; objective: z.ZodString; mlm_mask_prob: z.ZodNumber; init_from: z.ZodString; freeze_token_embeddings: z.ZodBoolean; trainable_only_prefixes: z.ZodArray; cuda_graph: z.ZodBoolean; length_buckets: z.ZodArray; trackio_enabled: z.ZodBoolean; trackio_project: z.ZodString; trackio_space: z.ZodString; trackio_run_name: z.ZodString; trackio_private: z.ZodBoolean; }, z.core.$strict>; section: ConfigSectionSpec; }; readonly eval: { annotation: string; default: () => PythonValue; output: z.ZodObject<{ golden_dir: z.ZodString; val_jsonl: z.ZodString; }, z.core.$strict>; section: ConfigSectionSpec; }; }; }; /** * The resolved values of a config, refusing a missing field, an undeclared one, * and a value of the wrong type. */ export declare const TrainingConfigSchema: z.ZodObject<{ data: z.ZodObject<{ corpus_dir: z.ZodString; tokenizer_dir: z.ZodString; max_length: z.ZodNumber; country_weights: z.ZodRecord; source_weights: z.ZodNullable>; source_reps: z.ZodNullable>; source_emit_factors: z.ZodNullable>; unshippable_reason: z.ZodNullable; required_corpus_receipts: z.ZodArray; source: z.ZodNullable; country: z.ZodNullable; component_sequence: z.ZodArray; }, z.core.$strict>>; required_validation_coverage: z.ZodArray>; required_validation_label_support: z.ZodArray>; prominent_place_coverage: z.ZodNullable; required_place_coverage: z.ZodNullable; train_rows_per_epoch: z.ZodNullable; read_order: z.ZodEnum<{ mixture: "mixture"; stored: "stored"; stratified: "stratified"; }>; val_rows: z.ZodNullable; coarse_filter: z.ZodBoolean; augment_directional_prob: z.ZodNumber; augment_region_prob: z.ZodNumber; augment_glue_prob: z.ZodNumber; augment_ordinal_prob: z.ZodNumber; augment_case_prob: z.ZodNumber; augment_punct_drop_prob: z.ZodNumber; augment_upper_case_prob: z.ZodNumber; augment_postcode_move_prob: z.ZodNumber; augment_grouping_prob: z.ZodNumber; code_unit_features: z.ZodBoolean; route_features: z.ZodBoolean; augment_exclude_sources: z.ZodArray; anchor_lookup_path: z.ZodNullable; gazetteer_lexicon_path: z.ZodNullable; country_lexicon_path: z.ZodNullable; street_type_lexicon_path: z.ZodNullable; locality_surface_lexicon_path: z.ZodNullable; gazetteer_choreography: z.ZodBoolean; char_mode: z.ZodString; char_vocab_path: z.ZodNullable; char_ctx: z.ZodNumber; max_unit_width: z.ZodNumber; max_units: z.ZodNullable; label_set: z.ZodString; affix_relabel_lexicon_path: z.ZodNullable; anchor_paint_mode: z.ZodString; anchor_value_mode: z.ZodString; region_centroids_path: z.ZodNullable; outcome_masks_path: z.ZodNullable; byte_window: z.ZodNumber; augment_mode: z.ZodEnum<{ in_place: "in_place"; legacy_copy: "legacy_copy"; }>; augment_drop_commas_prob: z.ZodNumber; augment_double_space_prob: z.ZodNumber; augment_line_breaks_prob: z.ZodNumber; augment_accent_strip_prob: z.ZodNumber; tier1_sources: z.ZodArray; tier1_share: z.ZodNumber; temperature_alpha: z.ZodNumber; spread_visit_rows: z.ZodNullable; use_alias_draw_weights: z.ZodBoolean; grammar_families_path: z.ZodNullable; }, z.core.$strict>; model: z.ZodObject<{ hidden_size: z.ZodNumber; num_hidden_layers: z.ZodNumber; num_attention_heads: z.ZodNumber; intermediate_size: z.ZodNumber; max_position_embeddings: z.ZodNumber; type_vocab_size: z.ZodNumber; hidden_dropout_prob: z.ZodNumber; attention_probs_dropout_prob: z.ZodNumber; use_crf: z.ZodBoolean; label_smoothing: z.ZodNumber; crf_loss_weight: z.ZodNumber; crf_normalization: z.ZodString; crf_fp32: z.ZodBoolean; class_weights: z.ZodNullable>; use_phrase_priors: z.ZodBoolean; phrase_feature_dim: z.ZodNumber; use_locale_conditioning: z.ZodBoolean; locale_loss_weight: z.ZodNumber; use_address_system_head: z.ZodBoolean; address_system_loss_weight: z.ZodNumber; use_locale_hint: z.ZodBoolean; locale_hint_drop_prob: z.ZodNumber; locale_hint_noise_prob: z.ZodNumber; use_outcome_hint: z.ZodBoolean; outcome_hint_prob: z.ZodNumber; use_outcome_head: z.ZodBoolean; outcome_loss_weight: z.ZodNumber; use_postcode_anchor: z.ZodBoolean; use_gazetteer_anchor: z.ZodBoolean; use_conventions_loss_mask: z.ZodBoolean; use_span_boundary_head: z.ZodBoolean; span_boundary_loss_weight: z.ZodNumber; use_span_scorer: z.ZodBoolean; span_loss_weight: z.ZodNumber; span_dim: z.ZodNumber; max_span: z.ZodNumber; gazetteer_feature_dim: z.ZodNumber; use_country_anchor: z.ZodBoolean; country_feature_dim: z.ZodNumber; country_ambiguous_scale: z.ZodNumber; use_street_type_anchor: z.ZodBoolean; street_type_feature_dim: z.ZodNumber; use_locality_surface_anchor: z.ZodBoolean; locality_surface_feature_dim: z.ZodNumber; use_code_unit_anchor: z.ZodBoolean; code_unit_feature_dim: z.ZodNumber; use_route_anchor: z.ZodBoolean; route_feature_dim: z.ZodNumber; use_char_embed: z.ZodBoolean; char_embed_dim: z.ZodNumber; char_kernel_sizes: z.ZodArray; use_byte_stem: z.ZodBoolean; byte_embed_dim: z.ZodNumber; byte_kernel_sizes: z.ZodArray; use_rel_pos_bias: z.ZodBoolean; rel_pos_max_dist: z.ZodNumber; use_grammar_smear: z.ZodBoolean; grammar_layer: z.ZodNumber; num_grammar_families: z.ZodNumber; smear_rank: z.ZodNumber; smear_start_layer: z.ZodNumber; grammar_loss_weight: z.ZodNumber; use_outcome_attn_pool: z.ZodBoolean; outcome_hint_noise_prob: z.ZodNumber; outcome_hint_parent_only: z.ZodBoolean; outcome_mask_loss_on_hint: z.ZodBoolean; outcome_class_weights: z.ZodNullable>; }, z.core.$strict>; train: z.ZodObject<{ output_dir: z.ZodString; seed: z.ZodNumber; batch_size: z.ZodNumber; eval_batch_size: z.ZodNumber; grad_accum_steps: z.ZodNumber; learning_rate: z.ZodNumber; weight_decay: z.ZodNumber; span_head_learning_rate: z.ZodNullable; classifier_learning_rate: z.ZodNullable; reinit_label_rows: z.ZodArray; warmup_steps: z.ZodNumber; max_steps: z.ZodNumber; eval_every_steps: z.ZodNumber; save_every_steps: z.ZodNumber; log_every_steps: z.ZodNumber; precision: z.ZodString; num_workers: z.ZodNumber; csv_log_path: z.ZodString; grad_clip_norm: z.ZodNumber; fisher_capture: z.ZodBoolean; fisher_capture_last_n_steps: z.ZodNumber; ewc_lambda: z.ZodNumber; ewc_fisher_path: z.ZodNullable; ewc_reference: z.ZodNullable; lr_schedule: z.ZodString; cooldown_start_step: z.ZodNullable; gazetteer_curriculum: z.ZodBoolean; evidence_curriculum: z.ZodBoolean; evidence_noise_prob: z.ZodNumber; objective: z.ZodString; mlm_mask_prob: z.ZodNumber; init_from: z.ZodString; freeze_token_embeddings: z.ZodBoolean; trainable_only_prefixes: z.ZodArray; cuda_graph: z.ZodBoolean; length_buckets: z.ZodArray; trackio_enabled: z.ZodBoolean; trackio_project: z.ZodString; trackio_space: z.ZodString; trackio_run_name: z.ZodString; trackio_private: z.ZodBoolean; }, z.core.$strict>; eval: z.ZodObject<{ golden_dir: z.ZodString; val_jsonl: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; /** * The resolved values of a config, in the Python dataclasses' field order. */ export type TrainingConfig = z.infer; //# sourceMappingURL=schema.d.ts.map