Repository navigation
fix(local): set CANVAS_STEP=64 and DEFAULT_SEED_TOKEN=fixed in turbo_fieldfare_server - #107
Merged
ghchinoy merged 1 commit intoDec 1, 2026
Conversation
…fieldfare_server Fixes two readout defects in scripts/turbo_fieldfare_server.py: - Set ss.CANVAS_STEP = 64 in TurboFieldfareEngine.__init__ so short schemas pad to DiffusionGemma's native 64-token diffusion block instead of 16 tokens (which caused causal +1 shift collapse without vLLM self_conditioning). - Set ss.DEFAULT_SEED_TOKEN = 'fixed' so ss.parse_schema defaults omitted seed_token fields to deterministic PAD=0 slot seeding (while still honoring explicit seed_token='random'). - Add test_canvas_step_64_and_fixed_seed_token_defaults regression test.
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.
Summary
Fixes two critical diffusion-readout defaults in
scripts/turbo_fieldfare_server.py(follow-up to #106):ss.CANVAS_STEP = 64:structured_server.pydefaults toCANVAS_STEP = 16. OnTurboFieldfareDiffusionProbe(which runs without vLLMself_conditioning), a 16-token canvas with few/zero trailing<pad>tokens collapses from in-place bidirectional denoising into causal next-token shift. Settingss.CANVAS_STEP = 64matches DiffusionGemma's native 64-token diffusion block.ss.DEFAULT_SEED_TOKEN = "fixed":ss.parse_schema()fills missingseed_tokenfields fromss.DEFAULT_SEED_TOKEN("random") before_run_probe_readruns, seeding random vocabulary IDs on templates that omitseed_token. Settingss.DEFAULT_SEED_TOKEN = "fixed"defaults omittedseed_tokento deterministicPAD=0seeding while still honoring explicit"seed_token": "random".test_canvas_step_64_and_fixed_seed_token_defaultsinscripts/test_turbo_fieldfare_server.pyverifying 64-token canvas padding and deterministicPADseeding on a 1-question schema omittingseed_token, as well as preserving explicitseed_token: "random".Verification
python3 -m unittest -v scripts/test_turbo_fieldfare_server.py(8/8 OK)