Fix H0.5 benchmark inference compatibility - #50
Open
MarkfuGod wants to merge 1 commit into
Open
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
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
get_modality_configinference endpoint so it is invoked without a request payload.BaseDataConfig.modality_config()implementation for client-side modality discovery.float32before sending them to the H0.5 inference server.Why
While running the released Being-H0.5 LIBERO inference server and benchmark client end-to-end, two server-side compatibility issues appeared:
get_modality_configwas registered as a payload-taking endpoint, causing an extra argument to be passed intoBeingHPolicy.get_modality_config().BeingHPolicy.get_modality_config()expected data configs to exposemodality_config(), butBaseDataConfigdid not provide it.The LIBERO benchmark then reached a real rollout but failed during state preprocessing because simulator observations were sent as
float64, while the H0.5 transform pipeline expects consistentfloat32state tensors. RoboCasa uses a similar observation path, so this patch applies the same dtype normalization there.Test plan
python -m py_compile Being-H05/BeingH/inference/beingh_service.py Being-H05/configs/data_config.py Being-H05/BeingH/benchmark/utils/policy.py Being-H05/BeingH/benchmark/robocasa/run_robocasa_eval_fast.pyBeing-H05-2B_liberowithBeingHPolicy.BeingH.inference.run_server_vlalocally.ping.get_modality_config.get_action.libero_spatial011/1successrobosuite==1.4.0:libero_spatial:493/500,98.6%libero_object:485/500,97.0%libero_goal:490/500,98.0%libero_10:475/500,95.0%