-
Notifications
You must be signed in to change notification settings - Fork 42
Implement guidellm UI #169
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: implement-app-tooling
Are you sure you want to change the base?
Changes from all commits
0e688da
f92a82e
4461583
fe7fdc6
3d028a6
32cbe07
dc2bc80
502025e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,52 @@ | ||
# GuideLLM UI | ||
### GuideLLM UI | ||
|
||
GuideLLM UI is a companion frontend for visualizing the results of a GuideLLM benchmark run. | ||
|
||
### 🛠 Running the UI | ||
|
||
1. Use the Hosted Build (Recommended for Most Users) | ||
|
||
After running a benchmark with GuideLLM, a report.html file will be generated (by default at guidellm_report/report.html). This file references the latest stable version of the UI hosted at: | ||
|
||
``` | ||
https://neuralmagic.github.io/guidellm/ui/dev/ | ||
``` | ||
|
||
Open the file in your browser and you're done—no setup required. | ||
|
||
2. Build and Serve the UI Locally (For Development) | ||
This option is useful if: | ||
|
||
- You are actively developing the UI | ||
|
||
- You want to test changes to the UI before publishing | ||
|
||
- You want full control over how the report is displayed | ||
|
||
```bash | ||
npm install | ||
npm run build | ||
npx serve out | ||
``` | ||
|
||
This will start a local server (e.g., at http://localhost:3000). Then, in your GuideLLM config or CLI flags, point to this local server as the asset base for report generation. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not something I've set up yet. Currently in this file the asset bases are configured via environment. One for prod, staging, dev, and local. But what I have in the readme implies you can see it to something other than the preconfigured options. Maybe it'd be better to have local hardcoded to localhost:3000 and wait on adding an option for the user to configure. Not sure. |
||
|
||
### 🧪 Development Notes | ||
|
||
During UI development, it can be helpful to view sample data. We include a sample benchmark run wired into the Redux store under: | ||
|
||
``` | ||
src/lib/store/[runInfo/workloadDetails/benchmarks]WindowData.ts | ||
``` | ||
|
||
In the future this will be replaced by a configurable untracked file for dev use. | ||
|
||
### 🚧 Future Possibilities | ||
|
||
We're evaluating options for hosting dev/staging/prod builds on GitHub Pages. For now, production builds will be published at: | ||
DaltheCow marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
``` | ||
https://neuralmagic.github.io/guidellm/ui/dev/ | ||
``` | ||
|
||
If needed, alternative hosting (e.g., Vercel, Netlify) may be explored, but simplicity and transparency remain key priorities for this open-source tool. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const ResponsiveBar = () => null; | ||
export const BarCustomLayerProps = () => null; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const Point = () => null; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const ResponsiveLine = () => null; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
import '@testing-library/jest-dom'; | ||
|
||
jest.mock('@nivo/bar'); | ||
jest.mock('@nivo/line'); | ||
jest.mock('@nivo/core'); | ||
|
||
jest.mock('next/dynamic', () => ({ | ||
__esModule: true, | ||
default: (...props: any[]) => { | ||
const dynamicModule = jest.requireActual('next/dynamic'); | ||
const dynamicActualComp = dynamicModule.default; | ||
const RequiredComponent = dynamicActualComp(props[0]); | ||
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions | ||
RequiredComponent.preload ? RequiredComponent.preload() : RequiredComponent.render.preload(); | ||
return RequiredComponent; | ||
}, | ||
})); |
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.
This is based off of a WIP effort i have. I don't know if this is where report.html will end up but that is what I'm working with for now.