Skip to content

bug(optimizer): floating-point grid steps are omitted from HPO experiments #671

Todo

Description

@ADITYA-CODE-SOURCE

Description

create_hpo_experiment() silently drops step from floating-point search-space ranges when algorithm="grid".

For example, passing {"min": 0.1, "max": 0.5, "step": 0.1} produces a successful preview, but the serialized feasibleSpace contains only min, max, and distribution—no step.

Katib v0.19.0's grid validator converts double parameters into discrete combinations and requires a step. As a result, the preview succeeds, but Katib cannot validate the grid search space to generate trials.

I reproduced the missing field offline through the real MCP tool. No Kubernetes cluster is required.

Steps to Reproduce

  1. Call create_hpo_experiment() with algorithm="grid" and a floating-point range that includes step.
  2. Inspect config.spec.parameters[0].feasibleSpace in the preview.
  3. Observe that step is missing.
  4. Submit the experiment to Katib; its grid validation cannot build the discrete combinations without the step.

Expected Behavior

For a floating-point grid parameter, preserve the supplied positive finite step in feasibleSpace.step. If grid search requires a step and none is provided, return a clear validation error before previewing or submitting the experiment.

Actual Behavior

The preview succeeds but serializes the parameter without feasibleSpace.step. Katib's grid validation then fails because the double parameter has no step.

MCP Server Version

main @ ce1dbcf

Python Version

3.12

Kubernetes Version

No response

MCP Client

Custom / Other

References

Activity

  1. added
    kind/bug
    needs-triage
    on Dec 2, 2026
  2. ADITYA-CODE-SOURCE commented on Dec 2, 2026

    @ADITYA-CODE-SOURCE
    Author

    /assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

kind/bugneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions