Skip to content

changed the formatting of monitor.py#3592

Open
yixin-huang1 wants to merge 6 commits intolm-sys:mainfrom
yixin-huang1:yixin-work
Open

changed the formatting of monitor.py#3592
yixin-huang1 wants to merge 6 commits intolm-sys:mainfrom
yixin-huang1:yixin-work

Conversation

@yixin-huang1
Copy link
Copy Markdown

@yixin-huang1 yixin-huang1 commented Oct 19, 2024

adding a new style column for the webpage of arena hard leaderboard @infwinston @CodingWithTim

@CodingWithTim CodingWithTim self-requested a review October 19, 2024 23:47
Copy link
Copy Markdown
Collaborator

@CodingWithTim CodingWithTim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yixin-huang1 Overall, it looks very good. The code is clean and easy to read. Thanks a lot for doing this!

Comment thread fastchat/serve/monitor/monitor.py Outdated
Copy link
Copy Markdown
Collaborator

@infwinston infwinston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left some comments, thanks @yixin-huang1 !

Comment thread fastchat/serve/monitor/monitor.py Outdated
Comment thread fastchat/serve/monitor/monitor.py Outdated
)
dataFrame["CI"] = dataFrame.CI.map(ast.literal_eval)
dataFrame["CI"] = dataFrame.CI.map(lambda x: f"+{x[1]}/-{x[0]}")
dataFrame["CI"] = dataFrame.CI.map(lambda x: f"+{x[1]}/{x[0]}")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we remove - here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was an extra "-" displayed so something like "--3.2".

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh got it. thanks!

Comment thread fastchat/serve/monitor/monitor.py Outdated
Copy link
Copy Markdown
Collaborator

@infwinston infwinston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good thanks!

)
dataFrame["CI"] = dataFrame.CI.map(ast.literal_eval)
dataFrame["CI"] = dataFrame.CI.map(lambda x: f"+{x[1]}/-{x[0]}")
dataFrame["CI"] = dataFrame.CI.map(lambda x: f"+{x[1]}/{x[0]}")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh got it. thanks!

@CodingWithTim
Copy link
Copy Markdown
Collaborator

@yixin-huang1 @infwinston What is the status? Is this good to ship?

@yixin-huang1
Copy link
Copy Markdown
Author

@yixin-huang1 @infwinston What is the status? Is this good to ship?

As far I can recall it is good to be shipped.

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.

3 participants