fix: tts params filter

This commit is contained in:
jialin
2026-02-11 15:30:35 +08:00
parent e66de732ac
commit 1b8c17ce92
9 changed files with 84 additions and 45 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ const Details: React.FC = () => {
style={{
opacity: loading ? 0 : 1,
position: 'relative',
bottom: -2,
bottom: 1,
right: -1
}}
>
@@ -19,8 +19,8 @@ import { BenchmarkListItem as ListItem } from '../config/types';
const allFields = [
'cluster_id',
'model_name',
'dataset_name',
'profile',
'dataset_name',
'gpu_summary',
'state',
'request_rate',
@@ -47,7 +47,7 @@ const fieldSortPos: Record<string, number> = Object.fromEntries(
const defaultColumns: string[] = [
'model_name',
'dataset_name',
'profile',
'state',
'gpu_summary',
'tokens_per_second_mean',
@@ -107,10 +107,18 @@ const useColumnSettings = (options: {
title={`${title} ${options?.subTitle || ''}`}
>
{title}
{options?.subTitle && (
<div className="sub-title">{options.subTitle}</div>
)}
</AutoTooltip>
{options?.subTitle && (
<span className="sub-title">
<AutoTooltip
ghost
minWidth={20}
title={`${title} ${options?.subTitle || ''}`}
>
{options.subTitle}
</AutoTooltip>
</span>
)}
</span>
);
};
@@ -142,7 +150,11 @@ const useColumnSettings = (options: {
path: 'request_latency_mean',
unit: 'ms',
sorter: tableSorter(1),
render: (value: number) => round(value, 2)
render: (value: number) => (
<AutoTooltip ghost minWidth={20}>
{round(value, 2)}
</AutoTooltip>
)
},
{
title: renderTitle('TTFT', {
@@ -180,7 +192,11 @@ const useColumnSettings = (options: {
dataIndex: 'inter_token_latency_mean',
path: 'inter_token_latency_mean',
unit: 'ms',
render: (value: number) => round(value, 2) || '-'
render: (value: number) => (
<AutoTooltip ghost minWidth={20}>
{round(value, 2) || '-'}
</AutoTooltip>
)
},
{
title: 'RPS',
+1 -1
View File
@@ -247,7 +247,7 @@ const Benchmark: React.FC = () => {
sortDirections={TABLE_SORT_DIRECTIONS}
showSorterTooltip={false}
rowKey="id"
scroll={{ x: 1200 }}
scroll={{ x: 1260 }}
onChange={handleTableChange}
pagination={{
showSizeChanger: true,