Skip to content

Naming Rules

What Rule Examples
Modules and packages snake_case scirex.layers.blocks.fno_block, scirex.data.datasets.darcy
Functions snake_case get_model_jax, cgelu
Classes CapWords TransolverBlock, FNOSmall2d, TransolverPipe
Model names As written in the paper FNO, GINO, WNO, GIWO, Transolver
Config keys snake_case scheduler_t_max, height, width, depth
Benchmark folders snake_case scripts/benchmarks/darcy, scripts/benchmarks/chip_cooling

Notes

  • Models. A model class keeps the name used in its publication, including acronyms (FNO, not Fno). The model registry looks names up case-insensitively, so fno and FNO select the same model.
  • Config presets are classes, so they follow CapWords and start with the model name followed by the variant: FNOSmall2d, GINODarcy2d, TransolverPipeOfficial. No underscores.
  • Config keys are the attribute names of config classes and the keys of YAML or command-line settings. This applies to every key, including sizes such as height and width.
  • Checkpoints. Model constructor argument names are stored inside checkpoint metadata. Renaming a model argument breaks loading older checkpoints, so a config key and the model argument it feeds may differ; the forwarding code maps one to the other.

Checking the rules

python scripts/dev/check_naming.py --strict

The script checks module, function, class and config-key names in src/scirex and the folders under scripts/benchmarks, and exits with 1 when a name breaks a rule above.