Skip to content

fix(openvla): match action token decode to OpenVLA bin centers#245

Open
rylinjames wants to merge 1 commit into
mainfrom
fix/openvla-action-decode
Open

fix(openvla): match action token decode to OpenVLA bin centers#245
rylinjames wants to merge 1 commit into
mainfrom
fix/openvla-action-decode

Conversation

@rylinjames

Copy link
Copy Markdown
Collaborator

Summary

  • Decode OpenVLA action tokens against the effective text vocab size used by the HuggingFace model, defaulting to 32000 for openvla-7b instead of the padded LM size.
  • Map action bins through centers between the configured action edges, matching OpenVLA's bin center postprocess.
  • Update shim docs and tests to cover center-bin behavior while preserving padded-logit output shapes.

Validation

  • PYTHONPATH=$PWD/src /Users/romirjain/Desktop/building\ projects/fastcrest/tether/.venv/bin/python -m pytest tests/test_openvla_postprocess.py tests/test_openvla_shim.py -p no:cacheprovider
  • PYTHONPATH=$PWD/src /Users/romirjain/Desktop/building\ projects/fastcrest/tether/.venv/bin/ruff check src/tether/postprocess/openvla.py src/tether/exporters/openvla.py tests/test_openvla_postprocess.py
  • PYTHONPATH=$PWD/src /Users/romirjain/Desktop/building\ projects/fastcrest/tether/.venv/bin/python -m py_compile src/tether/postprocess/openvla.py src/tether/exporters/openvla.py

🤖 Generated with Claude Code

Use the OpenVLA effective text vocab for action token decode and map bins through centers between the configured action edges.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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