mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #589] [CLOSED] make_profile: --reorder so a trace can rank ahead of a complete base #2711
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2711
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/589
Author: @yannickloth
Created: 10/3/2026
Status: ❌ Closed
Base:
main← Head:p8/make-profile-reorder📝 Commits (1)
f4f7396make_profile: --reorder so a trace can rank ahead of a complete base📊 Changes
2 files changed (+143 additions, -19 deletions)
View changed files
📝
tools/make_profile.py(+39 -19)➕
tools/test_make_profile.py(+104 -0)📄 Description
Fixes #587.
tools/make_profile.pyranks the base first, then the trace pairs, then the fill. The base is only appended to, and the shippeddata/expert-profile.binranks all 24,576 pairs — so--base <trace>was a no-op (reported0 from the traces, byte-identical output), and a--dump-routingtrace could never order the VRAM tier that--expert-cache autofills from the profile.Add
--reorder: rank the trace's pairs first (most frequent first), let the base fill the rest, then the fill. The default is unchanged;--no-baseis unchanged.The ranking moves into
rank_profile()so it can be tested without a model.tools/make_profile.py:rank_profile(), the--reorderflag, docstringtools/test_make_profile.py: 7 unittest cases — the no-op,--reorder,--no-base, the frequency/tie order,--reorderwith no traces, and an end-to-end run over a complete baseOn this host's coding trace against the shipped profile the same command now reports
5808 from the tracesand reorders the top; without--reorderthe output is still byte-identical todata/expert-profile.bin.Relevant to the profile-seeding workflow behind #477 (
--expert-profile-savenow persists what the adaptive tier learns; this is the offline/one-shot counterpart for a known workload).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.