8000 How to use the finetune model to infer? when i train a single task, after 5000 steps, it generate these files, how i use these files to infer? · Issue #10 · HongzheBi/H_RDT · GitHub
[go: up one dir, main page]

Skip to content

How to use the finetune model to infer? when i train a single task, after 5000 steps, it generate these files, how i use these files to infer? #10

Open

Description

@zhangyong333
Image

Activity

  1. HongzheBi commented on Aug 28, 2025

    @HongzheBi
    Owner

    See P66-P87(self.policy = HRDTRunner.from_pretrained(...) in "H-RDT/inference/robotwin2_example/H-RDT/deploy_policy.py", you need to create a folder like checkpoint-5k and put in the "config.json" and "pytorch_model.bin" from 5k checkpoints, which are needed to load weights during inference.

  2. HongzheBi commented on Aug 28, 2025

    @HongzheBi
    Owner

    In principle, the HRDTRunner class of hrdt_runner.py inherits from hub_mixin.py(available in both H-RDT/utils and H-RDT/inference/robotwin2_example/H-RDT/utils folders), This file has the "from_pretrained" method to load Pytorch pretrained weights and return the loaded model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0