Skip to content

Responses API default checkpoint path is not expanded #277

Description

@sylvesterkaczmarek

Summary

gpt_oss.responses_api.serve defaults --checkpoint to ~/model and passes that string directly to the selected backend:

infer_next_token = setup_model(args.checkpoint)

Python file APIs do not expand ~ automatically. In the Triton reference path, Transformer.from_checkpoint() eventually joins the literal value with config.json and opens ~/model/config.json, which is not the user's home-directory path.

Impact

The launcher's own default checkpoint value can fail unless the caller overrides it with an already-expanded path. The same unresolved value is also forwarded to the other backends.

Proposed resolution

Expand the checkpoint path in the launcher with os.path.expanduser() before passing it to any backend, so backend behavior stays consistent.

Add a small regression with a controlled HOME value verifying ~/model resolves to the expected absolute home-relative path.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions