Skip to content

[temp CI] #1388 rust tournament - #8

Open
kevin-gatimu wants to merge 2 commits into
chain/rust-3-noul-labelsfrom
chain/rust-4-tournament
Open

kevin-gatimu wants to merge 2 commits into
chain/rust-3-noul-labelsfrom
chain/rust-4-tournament

Conversation

@kevin-gatimu

Copy link
Copy Markdown
Owner

Temporary fork PR to run CI on the rebased NandhaKishorM#1388. Not for upstream; will be closed.

Copilot AI balanced review requested due to automatic review settings October 29, 2026 20:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

LayaShortlist::predict_tournament narrows each large choice in rounds of
contiguous groups of group_size labels, one predict call per round with
the group winners kept in order, then answers the full request once with
each choice cut to its finalists, as laya/shortlist.py predict_tournament
does: same group slicing, round ids, errors and option_order warning; the
result is the final call's with tournament metadata {labels, n, rounds}.
predict_tournament_with takes a predict closure so per-call options reach every
round, as Python's **predict_kwargs.

CachedEmbed ports cached_embed_fn: an LRU of float32 rows keyed
on the exact text, misses embedded in one de-duplicated call, non-finite
values cached as 0.0, the dimension guard, cache_info and cache_clear.

Goldens, a tournament probe and a cache probe come from
tools/regen_golden.py and Python's own functions; the case lists are
shared verbatim with the .NET SDK.
@kevin-gatimu
kevin-gatimu force-pushed the chain/rust-4-tournament branch from 611c38f to 47f2128 Compare October 29, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants