HydraNet is a repository for loading, training, and exporting student and teacher models,
including a routerset-backed Mixture-of-Experts path called phidranet.
The default student path loads the HydraNet student model and its preset variants.
The teacher path loads PhiSatNet-style downstream models for supervised tasks.
The MoE path shares one encoder, uses a routing switcher, and activates task-specific decoder experts.
Scripts support export workflows such as ONNX conversion and packaged bundle generation.
src/hydranet/: package entrypoints, loading helpers, and training orchestrationsrc/hydranet/models/: model definitions for student, teacher, and MoE componentsscripts/: train, smoke-test, export, and inference entrypointsrouterset/: dataset manifests and routerset-specific docstests/: regression coverage for training and helpersdocs/: static documentation pages and diagramsscripts/train_moe_switcher.py: train-only switcher entrypointscripts/full_train_moe.py: full training plus export orchestrationscripts/smoke_test_moe.py: faster functional end-to-end smoke pathscripts/export_onnx.py: ONNX export helpersrc/hydranet/loading.py: public loading helpersThe MoE path is the most specialized workflow in this repository. It combines one shared encoder, one learned routing switcher, and multiple task-specific decoder experts aligned to routerset.
If you want the model topology, routing behavior, and training explanation in one place, open the dedicated model page: