fix: benchmark detail styles
This commit is contained in:
@@ -80,14 +80,14 @@ export interface BenchmarkDetail {
|
||||
time_to_first_token_mean: number;
|
||||
tokens_per_second_mean: number;
|
||||
output_tokens_per_second_mean: number;
|
||||
prompt_tokens_per_second_mean: number;
|
||||
input_tokens_per_second_mean: number;
|
||||
name: string;
|
||||
description: string;
|
||||
labels: Record<string, any>;
|
||||
dataset_id: number;
|
||||
dataset_name: string;
|
||||
dataset_source: string;
|
||||
dataset_prompt_tokens: number;
|
||||
dataset_input_tokens: number;
|
||||
dataset_output_tokens: number;
|
||||
cluster_id: number;
|
||||
model_id: number;
|
||||
@@ -120,6 +120,6 @@ export interface BenchmarkMetricsFormData {
|
||||
time_to_first_token_mean: number;
|
||||
tokens_per_second_mean: number;
|
||||
output_tokens_per_second_mean: number;
|
||||
prompt_tokens_per_second_mean: number;
|
||||
input_tokens_per_second_mean: number;
|
||||
raw_metrics: Record<string, any>;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import { StatusType } from '@/config/types';
|
||||
|
||||
export const BenchmarkStatusValueMap = {
|
||||
Pending: 'pending',
|
||||
Claimed: 'claimed',
|
||||
QUEUED: 'queued',
|
||||
Running: 'running',
|
||||
Completed: 'completed',
|
||||
Error: 'error',
|
||||
@@ -13,7 +13,7 @@ export const BenchmarkStatusValueMap = {
|
||||
|
||||
export const BenchmarkStatusLabelMap = {
|
||||
[BenchmarkStatusValueMap.Pending]: 'Pending',
|
||||
[BenchmarkStatusValueMap.Claimed]: 'Claimed',
|
||||
[BenchmarkStatusValueMap.QUEUED]: 'Queued',
|
||||
[BenchmarkStatusValueMap.Running]: 'Running',
|
||||
[BenchmarkStatusValueMap.Completed]: 'Completed',
|
||||
[BenchmarkStatusValueMap.Error]: 'Error',
|
||||
@@ -23,7 +23,7 @@ export const BenchmarkStatusLabelMap = {
|
||||
|
||||
export const BenchmarkStatus: Record<string, StatusType> = {
|
||||
[BenchmarkStatusValueMap.Pending]: StatusMaps.transitioning,
|
||||
[BenchmarkStatusValueMap.Claimed]: StatusMaps.warning,
|
||||
[BenchmarkStatusValueMap.QUEUED]: StatusMaps.warning,
|
||||
[BenchmarkStatusValueMap.Running]: StatusMaps.success,
|
||||
[BenchmarkStatusValueMap.Completed]: StatusMaps.success,
|
||||
[BenchmarkStatusValueMap.Error]: StatusMaps.error,
|
||||
@@ -74,3 +74,21 @@ export const profileOptions = [
|
||||
locale: true
|
||||
}
|
||||
];
|
||||
|
||||
const DatasetValueMap = {
|
||||
ShareGPT: 'ShareGPT',
|
||||
Random: 'Random'
|
||||
};
|
||||
|
||||
export const datasetList = [
|
||||
{
|
||||
name: 'ShareGPT',
|
||||
label: 'ShareGPT',
|
||||
value: DatasetValueMap.ShareGPT
|
||||
},
|
||||
{
|
||||
name: 'Random',
|
||||
label: 'Random',
|
||||
value: DatasetValueMap.Random
|
||||
}
|
||||
];
|
||||
|
||||
@@ -77,7 +77,7 @@ export interface FormData {
|
||||
dataset_id: number;
|
||||
dataset_name: string;
|
||||
dataset_source: string;
|
||||
dataset_prompt_tokens: number;
|
||||
dataset_input_tokens: number;
|
||||
dataset_output_tokens: number;
|
||||
total_requests: number;
|
||||
request_rate: number;
|
||||
@@ -109,7 +109,7 @@ export interface ProfileOption {
|
||||
description: string;
|
||||
dataset_name: string;
|
||||
dataset_source: string;
|
||||
dataset_prompt_tokens: number;
|
||||
dataset_input_tokens: number;
|
||||
dataset_output_tokens: number;
|
||||
request_rate: number;
|
||||
total_requests: number;
|
||||
|
||||
Reference in New Issue
Block a user