Repository navigation
Make the per-option token cap configurable (cfg option_max_len) - #38
Open
r33drichards wants to merge 2 commits into
Open
r33drichards wants to merge 2 commits into
r33drichards wants to merge 2 commits into
Conversation
Options were cut to a hard-coded 48 tokens before the head_max_len split.
The cap is now cfg["option_max_len"] (default 48, unchanged), so a caller
can keep long option descriptions whole:
laya.load_vlm("thaitea/laya-vision", option_max_len=256, head_max_len=1024)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011g7NrLwbcbKyqSPYGFgbop
… taken answer with a per-row advantage) A dataset record with an "advantage" is a policy-gradient row: its label is the answer the policy sampled when it acted, and train() gives it -advantage * log p(answer) (weight w_pg) instead of the supervised objective; batches without such rows train exactly as before. Used by jev-drone's RL loop, whose rollouts score each decision with the simulator (group-relative advantages). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011g7NrLwbcbKyqSPYGFgbop
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Options were cut to a hard-coded 48 tokens before the head_max_len split.
The cap is now cfg["option_max_len"] (default 48, unchanged), so a caller
can keep long option descriptions whole:
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_011g7NrLwbcbKyqSPYGFgbop