feat: add Log Viewer to Web UI for browsing evaluation results#1191
Merged
Conversation
Add a new Log Viewer tab to the existing Web UI that lets users browse
locally stored evaluation outputs from the logs directory.
Backend (server.py):
- GET /logs/runs - scan logs directory and list all evaluation runs
- GET /logs/runs/{run_id}/results - return full results JSON for a run
- GET /logs/runs/{run_id}/samples/{task} - paginated sample browsing
- Path traversal protection and proper error handling
Frontend:
- New LogViewer.tsx component with left panel (run list) + right panel
(results metrics table, config summary, paginated sample viewer)
- Tab navigation in header to switch between Evaluate and Log Viewer
- Sample cards with color-coded sections: Input (neutral), Target (green),
Filtered Responses (blue), plus metric badges
- Consistent styling with existing monochrome design system
Add Load Image button to each sample card in the Log Viewer. Clicking it fetches the corresponding row from HuggingFace datasets server API (by dataset_path, split, doc_id from task config) and renders image columns inline. Images are cached in component state to avoid re-fetching. Backend: new GET /logs/dataset-row endpoint that proxies HF datasets server API with optional Bearer token auth. Frontend: configs field on RunResults interface, taskConfig memo, loadSampleImage callback, violet-styled Load Image button, inline image display with column name label, error display for failed loads.
… run switch and hide image load errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a Log Viewer tab to the Web UI that lets users browse evaluation results stored in the local
logs/folder.Features
Log Viewer Panel
./logs/), with scan buttonOn-Demand Image Loading
Dataset Path Display
https://huggingface.co/datasets/{path}Backend Endpoints
GET /logs/runs- scan and list evaluation runsGET /logs/runs/{run_id}/results- fetch results JSON for a runGET /logs/runs/{run_id}/samples/{task}- paginated sample viewerGET /logs/dataset-row- proxy to HuggingFace datasets server APIBug Fixes
HF_TOKENis expired/invalid, automatically retries without token for public datasetsFiles Changed
lmms_eval/tui/server.py- 4 new endpoints + HF 401 retry logiclmms_eval/tui/web/src/LogViewer.tsx- New Log Viewer component (~775 lines)lmms_eval/tui/web/src/App.tsx- Added "Log Viewer" tablmms_eval/tui/web/dist/- Built frontend assets