-
Notifications
You must be signed in to change notification settings - Fork 295
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
[debug][dtensor] hosting commdebugmode browser's visualizer PyTorch #1699
Open
sinhaanshul
wants to merge
3
commits into
pytorch:site
Choose a base branch
from
sinhaanshul:site
base: site
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
2aeb03e
[dtensor][debug] hosting comm debug's browser visualizer on pytorch
sinhaanshul 3d51ff2
[dtensor][debug] hosting comm debug's browser visualizer on pytorch
sinhaanshul 7ad1aab
Merge branch 'site' of https://github.com/sinhaanshul/pytorch.github.…
sinhaanshul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<!DOCTYPE html> | ||
<html lang ="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name = "viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>CommDebugMode Module Tree</title> | ||
<style> | ||
ul, #tree-container { | ||
list-style-type: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.caret { | ||
cursor: pointer; | ||
user-select: none; | ||
} | ||
|
||
.caret::before { | ||
content: "\25B6"; | ||
color:black; | ||
display: inline-block; | ||
margin-right: 6px; | ||
} | ||
|
||
.caret-down::before { | ||
transform: rotate(90deg); | ||
} | ||
|
||
.tree { | ||
padding-left: 20px; | ||
} | ||
|
||
.tree ul { | ||
padding-left: 20px; | ||
} | ||
|
||
/* hide nested list when component is not active*/ | ||
.nested { | ||
display: none; | ||
} | ||
|
||
/* show nested list when pressed caret pointer makes component active*/ | ||
.active { | ||
display: block; | ||
} | ||
|
||
.forward-pass, | ||
.backward-pass { | ||
margin-left: 40px; | ||
} | ||
|
||
.forward-pass table { | ||
margin-left: 40px; | ||
width: auto; | ||
} | ||
|
||
.forward-pass table td, .forward-pass table th { | ||
padding: 8px; | ||
} | ||
|
||
.forward-pass ul { | ||
display: none; | ||
} | ||
|
||
table { | ||
font-family: arial, sans-serif; | ||
border-collapse: collapse; | ||
width: 100%; | ||
} | ||
|
||
td, th { | ||
border: 1px solid #dddddd; | ||
text-align: left; | ||
padding: 8px; | ||
} | ||
|
||
tr:nth-child(even) { | ||
background-color: #dddddd; | ||
} | ||
#drop-area { | ||
position: relative; | ||
width: 25%; | ||
height: 100px; | ||
border: 2px dashed #ccc; | ||
border-radius: 5px; | ||
padding: 0px; | ||
text-align: center; | ||
} | ||
|
||
.drag-drop-block { | ||
display: inline-block; | ||
width: 200px; /* reduce the width */ | ||
height: 50px; /* reduce the height */ | ||
background-color: #f7f7f7; | ||
border: 1px solid #ccc; | ||
border-radius: 5px; | ||
padding: 10px; /* reduce the padding */ | ||
font-size: 14px; /* reduce the font size */ | ||
color: #666; | ||
cursor: pointer; | ||
} | ||
|
||
#file-input { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
opacity: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<div id="drop-area"> | ||
<div class="drag-drop-block"> | ||
<span>Drag file here</span> | ||
</div> | ||
<input type="file" id="file-input" accept=".json"> | ||
</div> | ||
<div id="tree-container"></div> | ||
|
||
<script src="https://cdn.jsdelivr.net/gh/pytorch/pytorch@main/torch/distributed/_tensor/debug/comm_mode_broswer_visual.js"></script> | ||
</body> | ||
</html> |
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.
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.
What's wrong with referencing github script directly?