Skip to content

[Feature] Improve Native API docs #5104

@zhaochenyang20

Description

@zhaochenyang20

Checklist

Motivation

Image Image

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())

@simveit

Related resources

No response

Metadata

Metadata

Labels

documentationImprovements or additions to documentationhelp wantedExtra attention is neededinactive

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions