-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationhelp wantedExtra attention is neededExtra attention is neededinactive
Description
Checklist
- 1. If the issue you raised is not a feature but a question, please raise a discussion at https://github.com/sgl-project/sglang/discussions/new/choose Otherwise, it will be closed.
- 2. Please use English, otherwise it will be closed.
Motivation


The output of https://docs.sglang.ai/backend/native_api.html#Capture-expert-selection-distribution-in-MoE-models
is too long, try to only print first 10 lines:
output_file = glob.glob("expert_distribution_*.csv")[0]
with open(output_file, "r") as f:
print_highlight("Content of dumped record:")
for line in f:
print_highlight(line.strip())
Related resources
No response
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationhelp wantedExtra attention is neededExtra attention is neededinactive