Skip to content

fix(local): set CANVAS_STEP=64 and DEFAULT_SEED_TOKEN=fixed in turbo_fieldfare_server - #107

Merged
ghchinoy merged 1 commit into
GoogleCloudPlatform:mainfrom
ghchinoy:fix/turbo-fieldfare-canvas-step-and-seed
Dec 1, 2026
Merged

ghchinoy merged 1 commit into
GoogleCloudPlatform:mainfrom
ghchinoy:fix/turbo-fieldfare-canvas-step-and-seed

Conversation

@ghchinoy

@ghchinoy ghchinoy commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes two critical diffusion-readout defaults in scripts/turbo_fieldfare_server.py (follow-up to #106):

  1. ss.CANVAS_STEP = 64: structured_server.py defaults to CANVAS_STEP = 16. On TurboFieldfareDiffusionProbe (which runs without vLLM self_conditioning), a 16-token canvas with few/zero trailing <pad> tokens collapses from in-place bidirectional denoising into causal next-token shift. Setting ss.CANVAS_STEP = 64 matches DiffusionGemma's native 64-token diffusion block.
  2. ss.DEFAULT_SEED_TOKEN = "fixed": ss.parse_schema() fills missing seed_token fields from ss.DEFAULT_SEED_TOKEN ("random") before _run_probe_read runs, seeding random vocabulary IDs on templates that omit seed_token. Setting ss.DEFAULT_SEED_TOKEN = "fixed" defaults omitted seed_token to deterministic PAD=0 seeding while still honoring explicit "seed_token": "random".
  3. Regression test: Adds test_canvas_step_64_and_fixed_seed_token_defaults in scripts/test_turbo_fieldfare_server.py verifying 64-token canvas padding and deterministic PAD seeding on a 1-question schema omitting seed_token, as well as preserving explicit seed_token: "random".

Verification

  • python3 -m unittest -v scripts/test_turbo_fieldfare_server.py (8/8 OK)

…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.
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.

1 participant