Skip to content

Switch to new together annotator.#1053

Merged
wpietri merged 4 commits into
mainfrom
annotator-experiments
May 29, 2025
Merged

Switch to new together annotator.#1053
wpietri merged 4 commits into
mainfrom
annotator-experiments

Conversation

@wpietri
Copy link
Copy Markdown
Contributor

@wpietri wpietri commented May 29, 2025

There's a matching branch in modelbench-private for the changes there.

@wpietri wpietri requested a review from a team as a code owner May 29, 2025 20:30
@wpietri wpietri had a problem deploying to Scheduled Testing May 29, 2025 20:30 — with GitHub Actions Failure
@wpietri wpietri had a problem deploying to Scheduled Testing May 29, 2025 20:30 — with GitHub Actions Failure
@wpietri wpietri requested a review from bkorycki May 29, 2025 20:31
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 29, 2025

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@wpietri wpietri temporarily deployed to Scheduled Testing May 29, 2025 20:56 — with GitHub Actions Inactive
@wpietri wpietri temporarily deployed to Scheduled Testing May 29, 2025 20:56 — with GitHub Actions Inactive
@wpietri wpietri temporarily deployed to Scheduled Testing May 29, 2025 20:56 — with GitHub Actions Inactive
Copy link
Copy Markdown
Collaborator

@dhosterman dhosterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Copy Markdown
Contributor

@bkorycki bkorycki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for a couple of nits. I'm just worried about the code getting messy.

return f"InjectSecret({self.secret_class.__name__})"


class InjectAllSecrets(Injector):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary? It doesn't look like it behaves the same as a regular secret injector

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I'm adding the ability to include SUTs as annotators via the registry, and so it needs all the secrets to work. See the matching branch: https://github.com/mlcommons/modelbench-private/compare/main...annotator-experiments

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't understand nor love it but given the urgency it's fine

**options.model_dump(),
)

def translate_chat_prompt(self, prompt: ChatPrompt, options: SUTOptions) -> RequestType:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return type should be HuggingFaceChatCompletionRequest

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right. Thanks!

@wpietri wpietri temporarily deployed to Scheduled Testing May 29, 2025 21:16 — with GitHub Actions Inactive
@wpietri wpietri temporarily deployed to Scheduled Testing May 29, 2025 21:16 — with GitHub Actions Inactive
@wpietri wpietri temporarily deployed to Scheduled Testing May 29, 2025 21:16 — with GitHub Actions Inactive
@wpietri wpietri merged commit 4b42dfa into main May 29, 2025
4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 29, 2025
@wpietri wpietri deleted the annotator-experiments branch January 16, 2026 14:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants