Diff Coverage

Diff: origin/master...HEAD, staged and unstaged changes

Source File Diff Coverage (%) Missing Lines
hyper_parallel/auto_parallel/hyper_offload/api/scope.py 100%  
hyper_parallel/auto_parallel/hyper_offload/planning/__init__.py 100%  
hyper_parallel/codegen/artifact.py 100%  
hyper_parallel/codegen/astkit/edits.py 100%  
hyper_parallel/codegen/emit/bundle.py 100%  
hyper_parallel/codegen/emit/diff.py 100%  
hyper_parallel/codegen/emit/modeling.py 100%  
hyper_parallel/codegen/emit/parallel.py 100%  
hyper_parallel/codegen/inline/component_source.py 100%  
hyper_parallel/codegen/inline/framework_spec.py 100%  
hyper_parallel/codegen/inline/meta_plan.py 100%  
hyper_parallel/codegen/inline/recognition.py 100%  
hyper_parallel/codegen/manager.py 100%  
hyper_parallel/codegen/plan/boundary_forms.py 100%  
hyper_parallel/codegen/source/resolver.py 100%  
hyper_parallel/codegen/train_sidecar.py 100%  
hyper_parallel/components/checkpoint/huggingface_checkpointer.py 100%  
hyper_parallel/components/functional/dsa_dense.py 100%  
hyper_parallel/components/modules/attention/compressed_sparse_attention2/__init__.py 100%  
hyper_parallel/components/modules/attention/gated_delta_net/__init__.py 100%  
hyper_parallel/components/modules/attention/gated_grouped_query_attention/__init__.py 100%  
hyper_parallel/components/modules/attention/gated_multi_latent_attention/__init__.py 100%  
hyper_parallel/components/modules/attention/grouped_query_attention/__init__.py 100%  
hyper_parallel/components/modules/attention/kimi_delta_attention/__init__.py 100%  
hyper_parallel/components/modules/attention/multi_latent_attention/__init__.py 100%  
hyper_parallel/components/modules/common/attention_residual.py 100%  
hyper_parallel/components/modules/common/mtp.py 100%  
hyper_parallel/components/modules/engram/__init__.py 100%  
hyper_parallel/components/modules/linear/linear.py 100%  
hyper_parallel/components/modules/linear/linear_family.py 100%  
hyper_parallel/components/modules/mhc/__init__.py 100%  
hyper_parallel/components/modules/mlp/mlp_family.py 100%  
hyper_parallel/components/modules/mlp/swiglu_mlp.py 100%  
hyper_parallel/components/modules/module_family.py 100%  
hyper_parallel/components/modules/moe/grouped_experts/__init__.py 100%  
hyper_parallel/components/modules/moe/router.py 100%  
hyper_parallel/components/parallelism_invariant/row_parallel_linear/__init__.py 100%  
hyper_parallel/components/quantization/config.py 100%  
hyper_parallel/components/quantization/functional/base_gmm_func.py 100%  
hyper_parallel/components/quantization/functional/base_linear_func.py 100%  
hyper_parallel/components/quantization/functional/fake_w4a8_gmm_func.py 100%  
hyper_parallel/components/quantization/functional/hifloat8_gmm_func.py 100%  
hyper_parallel/components/quantization/functional/hifloat8_linear_func.py 100%  
hyper_parallel/components/quantization/functional/linear_strategy_factory.py 100%  
hyper_parallel/components/quantization/functional/mxfp8_gmm_func.py 100%  
hyper_parallel/components/quantization/functional/mxfp8_linear_func.py 100%  
hyper_parallel/components/quantization/functional/strategy_factory.py 100%  
hyper_parallel/components/quantization/functional/w4a8_gmm_func.py 100%  
hyper_parallel/components/quantization/modules/grouped_experts.py 100%  
hyper_parallel/components/quantization/modules/replacement.py 100%  
hyper_parallel/components/quantization/ops/npu_fake_w4a8.py 100%  
hyper_parallel/components/quantization/ops/npu_hifloat8.py 100%  
hyper_parallel/components/quantization/ops/npu_w4a8.py 100%  
hyper_parallel/components/quantization/quantizers/fake_w4a8.py 100%  
hyper_parallel/components/quantization/quantizers/hifloat8.py 100%  
hyper_parallel/components/quantization/quantizers/w4a8.py 100%  
hyper_parallel/components/quantization/tensor/w4a8_tensor.py 100%  
hyper_parallel/data/batching/dynamic_batch.py 100%  
hyper_parallel/data/batching/packing.py 100%  
hyper_parallel/data/batching/runtime_input.py 100%  
hyper_parallel/data/distributed/api.py 100%  
hyper_parallel/data/distributed/balance_logging.py 100%  
hyper_parallel/data/distributed/balancing_algorithm.py 100%  
hyper_parallel/data/distributed/cost_model.py 100%  
hyper_parallel/data/distributed/data_constructor.py 100%  
hyper_parallel/data/distributed/device_prefetch.py 100%  
hyper_parallel/data/distributed/distributed_dataloader.py 100%  
hyper_parallel/data/distributed/external_step.py 100%  
hyper_parallel/data/distributed/indexed_text.py 100%  
hyper_parallel/data/distributed/metadata.py 100%  
hyper_parallel/data/distributed/packed_balancing.py 100%  
hyper_parallel/data/distributed/planner.py 100%  
hyper_parallel/data/distributed/transport.py 100%  
hyper_parallel/data/offline/__init__.py 100%  
hyper_parallel/data/omni/build_dataset.py 100%  
hyper_parallel/data/omni/omni_transform.py 100%  
hyper_parallel/data/online/iterable.py 100%  
hyper_parallel/data/online/mapping.py 100%  
hyper_parallel/data/online/source.py 100%  
hyper_parallel/distributed/activation_checkpoint.py 100%  
hyper_parallel/distributed/encoder_parallel/__init__.py 100%  
hyper_parallel/high_availability/__init__.py 100%  
hyper_parallel/tools/dryrun/config.py 100%  
hyper_parallel/tools/dryrun/data_adapter.py 100%  
hyper_parallel/tools/dryrun/memory_tracker.py 100%  
hyper_parallel/tools/dryrun/ops/fake_kernels.py 100%  
hyper_parallel/tools/dryrun/patches/trainer/distributed.py 100%  
hyper_parallel/tools/dryrun/patches/trainer/host_scalar.py 100%  
hyper_parallel/tools/dryrun/patches/trainer/model_builder.py 100%  
hyper_parallel/tools/dryrun/patches/trainer/optimizer.py 100%  
hyper_parallel/tools/dryrun/runner.py 100%  
hyper_parallel/tools/dryrun/runtime.py 100%  
hyper_parallel/tools/dryrun/simulation.py 100%  
hyper_parallel/tools/model_integration/case_compare.py 100%  
hyper_parallel/tools/model_integration/case_matrix.py 100%  
hyper_parallel/tools/model_integration/checkpoint_coverage.py 100%  
hyper_parallel/tools/model_integration/data_contract.py 100%  
hyper_parallel/tools/model_integration/evidence_store.py 100%  
hyper_parallel/tools/model_integration/integration_validator.py 100%  
hyper_parallel/tools/model_integration/manifest.py 100%  
hyper_parallel/tools/model_integration/module_parity.py 100%  
hyper_parallel/tools/model_integration/optimizer_layout.py 100%  
hyper_parallel/tools/model_integration/schemas.py 100%  
hyper_parallel/tools/model_integration/structure_inventory.py 100%  
hyper_parallel/tools/model_integration/tensor_probes.py 100%  
hyper_parallel/trainer/base.py 50.0% 433
hyper_parallel/trainer/callbacks/profiler_callback.py 100%  
hyper_parallel/trainer/dit_trainer.py 100%  
hyper_parallel/trainer/runtime/memory_profiler.py 100%  
hyper_parallel/trainer/runtime/model_integration.py 100%  
hyper_parallel/trainer/runtime/pipeline.py 100%  
hyper_parallel/trainer/base.py
429
430
431
432
433
434
435
436
437
        if self.config.accelerator.pp_size > 1 and not self.config.compile.selects_graph_compiler():
            if getattr(self.model, "_hp_pipeline_partition", None) is None:
                raise ValueError("Eager Trainer PP requires a model factory that installs a pipeline partition")
            self.model = self._combine_pipeline_chunks(build)
        self._finalize_model_build()

    def _finalize_model_build(self) -> None:
        """Validate the built model's parameter dtypes and initialize its Trainer state."""
        _validate_optimize_dtype(