Skip to content

feat(bench): Add opt-out toggle for community benchmark upload#1052

Open
jabagawee wants to merge 1 commit into
jundot:mainfrom
jabagawee:feat/benchmark-upload-opt-out
Open

feat(bench): Add opt-out toggle for community benchmark upload#1052
jabagawee wants to merge 1 commit into
jundot:mainfrom
jabagawee:feat/benchmark-upload-opt-out

Conversation

@jabagawee
Copy link
Copy Markdown

@jabagawee jabagawee commented May 4, 2026

Summary

Throughput benchmarks upload results to omlx.ai unconditionally at the end of every run, including a stable per-device hash and the model name (which can be a private/local model id). There is no UI toggle, env var, or request flag to disable it.

This PR adds a "Share results with the omlx.ai community" checkbox to the throughput benchmark config card, checked by default so existing user behavior is unchanged. The frontend sends the user's choice as should_upload_results on POST /api/bench/start; the run_benchmark coroutine gates the call to _upload_to_omlx_ai on that flag. When the box is unchecked, the SSE done handler finalizes the run directly instead of entering the "Uploading..." UI state.

The hint text spells out exactly what gets uploaded and notes the common reason to uncheck (benchmarking a private model whose name would otherwise be included in the payload).

Notes

  • BenchmarkRequest.should_upload_results defaults to True, so any direct API caller keeps current behavior.
  • Only en i18n strings are added; other locales fall back via the resolver in base.html.
  • The accuracy benchmark has no upload path and is unaffected.

Throughput benchmarks upload results to omlx.ai unconditionally at the
end of every run, including a stable per-device hash and the model
name (which can be a private/local model id). There is no UI toggle,
env var, or request flag to disable it.

This commit adds a "Share results with the omlx.ai community" checkbox
to the throughput benchmark config card, checked by default so
existing user behavior is unchanged. The frontend sends the user's
choice as should_upload_results on POST /api/bench/start; the
run_benchmark coroutine gates the call to _upload_to_omlx_ai on that
flag. When the box is unchecked, the SSE 'done' handler finalizes the
run directly instead of entering the "Uploading..." UI state.

The hint text spells out exactly what gets uploaded and notes the
common reason to uncheck (benchmarking a private model whose name
would otherwise be included in the payload).

The BenchmarkRequest field defaults to True so any direct API caller
keeps current behavior. The accuracy benchmark has no upload path and
is unaffected.
@jabagawee jabagawee force-pushed the feat/benchmark-upload-opt-out branch from 4f450ff to 12ad989 Compare May 16, 2026 11:55
@jabagawee jabagawee changed the title feat(bench): Make community results upload opt-in feat(bench): Add opt-out toggle for community benchmark upload May 16, 2026
@jabagawee
Copy link
Copy Markdown
Author

updated the PR to have the checkbox checked by default (now it's opt-out instead of opt-in) to match default behavior to existing behavior

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.

1 participant