-
Notifications
You must be signed in to change notification settings - Fork 48
chore: update cogames mettagrid to 0.2.0.53 #4515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: yatharth/metta-publish-cogames-version-pinning
Are you sure you want to change the base?
chore: update cogames mettagrid to 0.2.0.53 #4515
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| class JobRequestUpdate(SQLModel): | ||
| status: JobStatus = Field(default=JobStatus.pending) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make JobRequestUpdate.status optional
Because JobRequestUpdate.status defaults to pending, FastAPI will populate request.status even when the client does not send a status field. The update endpoint in job_routes.py treats any non-None status as a requested transition and enforces VALID_TRANSITIONS, so a request that only wants to set result or error will be forced into a pending transition and can return 409 for jobs that are already running/completed. This makes partial updates fail unless clients always include a legal status. Consider changing status to JobStatus | None = None (or using Field(default=None) with exclude_unset) so updates without a status don’t trigger transition validation.
Useful? React with 👍 / 👎.
| self._out: nn.Module = nn.Sequential(*layers) if layers else nn.Identity() | ||
| if self._storage_dtype is not None and self._storage_dtype is not torch.float32: | ||
| self._out = self._out.to(dtype=self._storage_dtype) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid forcing CortexTD output head to storage dtype
The new cast of self._out to self._storage_dtype means the output head’s weights are always in the storage dtype (e.g., bf16). If a caller sets compute_dtype to float32 (supported by the config) while dtype is bf16, the stack produces float32 activations and then self._out(y) either errors on mixed dtypes or silently downcasts, defeating the higher-precision compute path. This regression only appears when compute_dtype != dtype, but that is a documented option here. Consider keeping _out in compute dtype or casting y to the storage dtype before the head when compute_dtype differs.
Useful? React with 👍 / 👎.
60f83dd to
13fa617
Compare
This PR was automatically created by
metta/setup/tools/publish.py.Asana Task