The llama.cpp project released build b10796, which includes a change to the model loader to support models with varying numbers of experts per layer.

  • Adds the `n_expert_used_max` function to handle expert layer checks during model loading.
  • Updates `llama_model_base::load_hparams` to use `hparams.n_expert_used_max` instead of failing assertions.
  • Resolves errors when loading models like NVIDIA Nemotron-3-Puzzle-75B-A9B that have specific expert configurations.

This update allows llama.cpp to correctly load and process models where the number of used experts varies across layers, preventing assertion failures during initialization.