Eight scientific tutorials ========================== Each native notebook contains the scientific case, training loop, evaluation, and figures. Open the version 2.0.0 notebook in GitHub or run it in Google Colab. The full scientific workloads are the default. ``NIF_SMOKE=1`` selects a short development check and is separate from full training. .. list-table:: Native PyTorch tutorials :header-rows: 1 :widths: 12 29 39 20 :class: nif-tutorial-table * - Tutorial - Scientific case - Main implementation concepts - Open * - 1 - One-dimensional traveling wave - Configure NIF, train, save and restore weights, refine with L-BFGS. - `Notebook `__ / `Colab `__ * - 2 - Multiscale wave - Use NIFMultiScale to represent high-frequency spatial structure. - `Notebook `__ / `Colab `__ * - 3 - Cylinder-flow data from an adaptive mesh - Use NIFMultiScaleLastLayerParameterized to learn linear spatial bases. - `Notebook `__ / `Colab `__ * - 4 - Input-output derivatives - Wrap a field model with JacobianLayer and HessianLayer. - `Notebook `__ / `Colab `__ * - 5 - Large-scale record data - Create shards and stream batches from a one-million-row dataset. - `Notebook `__ / `Colab `__ * - 6 - Multiscale fields with L1/L2 regularization - Penalize ParameterNet parameters and inspect a refined evaluation grid. - `Notebook `__ / `Colab `__ * - 7 - Model compression - Magnitude pruning, dynamic int8 CPU inference, and inference export. - `Notebook `__ / `Colab `__ * - 8 - Sobolev training of a multiscale field - Supervise spatial derivatives and evaluate field and derivative errors. - `Notebook `__ / `Colab `__ The :doc:`validation` and :doc:`comparison_records` pages retain the recorded error measurements and acceptance scope. Training points and additional spatial or temporal evaluation points are distinguished in those comparisons. Original cases and compatibility notebooks ------------------------------------------ The original notebooks preserve the scientific definitions and historical outputs. The compatibility copies contain the pinned setup used for the historical backend. The following links preserve access to both sets. .. list-table:: Historical references :header-rows: 1 :class: nif-tutorial-table * - Tutorial - Original notebook - Compatibility notebook * - 1 - `Original `__ - `Compatibility `__ * - 2 - `Original `__ - `Compatibility `__ * - 3 - `Original `__ - `Compatibility `__ * - 4 - `Original `__ - `Compatibility `__ * - 5 - `Original `__ - `Compatibility `__ * - 6 - `Original `__ - `Compatibility `__ * - 7 - `Original `__ - `Compatibility `__ * - 8 - `Original `__ - `Compatibility `__ See the `original API documentation `_ for that historical workflow. Use the native PyTorch links above for version 2.0.0.