H-Net Repository Structure
mainThe core logic resides in the hnet/ directory:
hnet/models/: Contains the model definitions.config_hnet.py: Defines the H-Net configuration.hnet.py: The core sequence model with signature(B, L, D) -> (B, L, D).mixer_seq.py: A wrapper that converts the H-Net sequence model into a language model.
hnet/modules/: Contains architectural components.dc.py: Implementation of the dynamic chunking mechanism.isotropic.py: Non-hierarchical components.
generate.py: Inference and text generation script.