Skip to content

fix(litlogger): omit version suffix on model upload when not provided - #69

Open
adityaanikam wants to merge 2 commits into
Lightning-AI:mainfrom
adityaanikam:fix-model-version-omitted-issue68
Open

fix(litlogger): omit version suffix on model upload when not provided#69
adityaanikam wants to merge 2 commits into
Lightning-AI:mainfrom
adityaanikam:fix-model-version-omitted-issue68

Conversation

@adityaanikam

@adityaanikam adityaanikam commented Aug 21, 2026

Copy link
Copy Markdown

Closes #68

Model._registry_name checked self.version, which always defaults to latest in init regardless of whether a version was actually specified. This appended a literal :latest suffix to the registry name on every upload where the caller did not set a version, and the backend rejects that suffix with a 400.

The class already tracks whether a version was explicitly provided via self._version_provided, matching the check already used by the series upload path in experiment_support.py. This switches _registry_name to check that flag instead, so an omitted version sends no suffix and lets the server auto-assign one.

Verified locally with pytest: added a test asserting the upload name has no version suffix when omitted, then reverted the one-line fix to confirm it reproduces the exact failure (owner/teamspace/exp-name:latest instead of owner/teamspace/exp-name).

Model._registry_name checked self.version, which always defaults to "latest" in __init__ regardless of whether a version was actually specified. This appended a literal :latest suffix to the registry name on every upload where the caller did not set a version, and the backend rejects that suffix with a 400.

The class already tracks whether a version was explicitly provided via self._version_provided, matching the check already used by the series upload path in experiment_support.py. This switches _registry_name to check that flag instead, so an omitted version sends no suffix and lets the server auto-assign one.

Verified locally by reverting the one-line fix and confirming the exact failure reproduces: the upload name becomes owner/teamspace/exp-name:latest instead of owner/teamspace/exp-name.

Closes Lightning-AI#68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Model upload fails when version is omitted because LitLogger explicitly uses "latest"

2 participants