Split the visualization module and optimize the operator page#38
Open
Split the visualization module and optimize the operator page#38
Conversation
Chamberlain0w0
requested changes
Mar 30, 2026
| import streamlit as st | ||
| import pandas as pd | ||
| import plotly.graph_objects as go | ||
| import plotly.express as px |
| acc = env["cluster"][0]["machine"]["accelerators"][0] | ||
| st.write(f"- 加速卡: {acc.get('model', 'Unknown')}") | ||
| st.write(f"- 显存: {acc.get('memory_gb_per_card', '?')} GB") | ||
| st.write(f"- CUDA版本: {acc.get('cuda', 'Unknown')}") |
| st.write(f"- 加速卡: {acc.get('model', 'Unknown')}") | ||
| st.write(f"- 显存: {acc.get('memory_gb_per_card', '?')} GB") | ||
| st.write(f"- CUDA版本: {acc.get('cuda', 'Unknown')}") | ||
| except: |
Collaborator
There was a problem hiding this comment.
应该用 except Exception:
Comment on lines
+61
to
+63
| create_summary_table = create_comm_summary_table | ||
| create_summary_table_infer = create_infer_summary_table | ||
| create_summary_table_ops = create_ops_summary_table |
Collaborator
There was a problem hiding this comment.
我觉得这里有点多余,你新建的方法应该还是叫:create_summary_table,
create_summary_table_infer
create_summary_table_ops
| return pd.DataFrame(summary_data) | ||
|
|
||
|
|
||
| def create_infer_summary_table(test_result: dict) -> pd.DataFrame: |
Collaborator
There was a problem hiding this comment.
这里应该统一一下函数名称。原来的函数名是:create_summary_table_infer, 现在叫create_infer_summary_table。可以把hardware的对应方法也统一一下。
init.py里面的alias操作直接删掉是不是就可以啊?
Collaborator
|
你的改动涉及到很多页面,有没有看一下infer train页面显示有没有问题,也可以在PR上贴一下图 |
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.
概述
本次修改主要进行可视化模块拆分以及算子页面性能图表优化
