RLinf icon indicating copy to clipboard operation
RLinf copied to clipboard

[Doc]: Training time and steps for WoVR reproduction

Open ducido opened this issue 8 months ago • 5 comments

Documentation issue

I am currently following the instructions in the documentation to reproduce the results: https://rlinf.readthedocs.io/en/latest/rst_source/publications/wovr.html

Thank you for providing such clear documentation. I have a few questions about the training setup while trying to reproduce the results:

  1. Do you have an estimate of how many training steps are typically required to reproduce the reported results?

  2. If possible, could you share the Weights & Biases (wandb) logs from the training experiments? That would be very helpful for understanding the expected training dynamics.

  3. Approximately how long does the training take to reach the results reported in the documentation?

I would really appreciate any guidance you can share. Thanks again for your work!

Suggest a potential alternative/fix

No response

Before submitting a new issue...

  • [x] Have you checked relevant issues, FAQs (https://rlinf.readthedocs.io/en/latest/rst_source/faq.html), or asked the chatbot at the top right corner of the documentation page.

ducido avatar Mar 08 '26 05:03 ducido

Hi! Thanks for your interest in reproducing the results and for following the documentation.

Below are the training curves from our experiments (TensorBoard) for reference.

Image Image

One thing worth mentioning is that the performance reported in the documentation on LIBERO Spatial has not fully converged yet in the published plots. In practice, we observed that the policy generally converges around ~80 training steps, which typically takes about 3.5 days of training under our setup.

Additionally, we recently discovered a bug in the code that, once fixed, can further improve the performance. We are currently working on properly validating and finalizing this fix. Once the update is ready, we will notify you and update the repository accordingly.

Thanks again for your interest and patience!

jzndd avatar Mar 11 '26 08:03 jzndd

Hi! Thanks for your interest in reproducing the results and for following the documentation.

Below are the training curves from our experiments (TensorBoard) for reference.

Image Image One thing worth mentioning is that the performance reported in the documentation on LIBERO Spatial has not fully converged yet in the published plots. In practice, we observed that the policy generally converges around ~80 training steps, which typically takes about 3.5 days of training under our setup.

Additionally, we recently discovered a bug in the code that, once fixed, can further improve the performance. We are currently working on properly validating and finalizing this fix. Once the update is ready, we will notify you and update the repository accordingly.

Thanks again for your interest and patience!

I got it, thank you!!

ducido avatar Mar 12 '26 07:03 ducido

However, when I run it to step 89, the success_once rate is only 61%. Is this normal?

Image My config is:
      defaults:
        - env/[email protected]
        - env/[email protected]
        - model/[email protected]
        - training_backend/[email protected]_config
        - override hydra/job_logging: stdout
      
      hydra:
        run:
          dir: .
        output_subdir: null
        searchpath:
          - file://${oc.env:EMBODIED_PATH}/config/
      
      cluster:
        num_nodes: 1
        component_placement:
          actor,env,rollout: all
      
      runner:
        task_type: embodied
        logger:
          log_path: "../results"
          project_name: rlinf
          experiment_name: "wan_libero_spatial_grpo_openvlaoft"
          logger_backends: ["tensorboard"] # wandb, swanlab
      
        max_epochs: 1000
        max_steps: -1
      
        only_eval: False
        val_check_interval: -1
        save_interval: 5
      
        resume_dir: null # Optional: path to a saved checkpoint directory, such as 'checkpoints/global_step_10'. If not None, it will be used to resume training.
        ckpt_path: null  # Optional: path to a .pt checkpoint. If not None, it will be loaded after the model is instantiated (for evaluation).
      
      algorithm:
        normalize_advantages: True
        kl_penalty: kl  
        group_size: 8
        rollout_epoch: 16
        eval_rollout_epoch: 0 # set eval_rollout_epoch > 0 when enable runner.only_eval or runner.val_check_interval > 0
      
        reward_type: action_level  # action_level or chunk_level
        logprob_type: token_level
        entropy_type: token_level
      
        adv_type: grpo
        loss_type: actor
        loss_agg_func: "token-mean"
        kl_beta: 0.0
        entropy_bonus: 0
        clip_ratio_high: 0.28
        clip_ratio_low: 0.2
        clip_ratio_c: 3.0
        value_clip: 0.2
        huber_delta: 10.0
      
        gamma: 0.99
        gae_lambda: 0.95
      
        reward_coef: 5.0
      
        sampling_params:
          do_sample: True
          temperature_train: 1.6
          temperature_eval: 1.6
          top_k: -1
          top_p: 1.0
          repetition_penalty: 1.0
      
      
        length_params:
          max_new_token: null
          max_length: 1024
          min_length: 1
      
        filter_rewards: True
        rewards_lower_bound: 0.5
        rewards_upper_bound: 4.5
      
      env:
        group_name: "EnvGroup"
      
      
        train:
          total_num_envs: 64
          group_size: ${algorithm.group_size}
          max_episode_steps: 256 # max episode steps for truncation
          max_steps_per_rollout_epoch: 256
          reward_coef: ${algorithm.reward_coef}
          reset_gripper_open: True
          wan_wm_hf_ckpt_path: "/workspace/RLinf/RLinf-Wan-Libero-Spatial" # https://huggingface.co/RLinf/RLinf-Wan-Libero-Spatial
          enable_offload: True # otherwise, may OOM
          num_inference_steps: 5 # default 5, can be set to 3 or 1 for faster inference, but lower quality
        eval:
          total_num_envs: 496 # must be divisible by env_world_size
          auto_reset: True
          ignore_terminations: True
          max_episode_steps: 512
          max_steps_per_rollout_epoch: 512
          group_size: 1
          reset_gripper_open: True
          is_eval: True
          video_cfg:
            save_video: True
            video_base_dir: ${runner.logger.log_path}/video/eval
      
      rollout:
        group_name: "RolloutGroup"
        generation_backend: "huggingface"
        enable_offload: True
        pipeline_stage_num: 1
      
        model:
          model_path: "/workspace/RLinf/oft-spatial-1/oft-spatial-1" # https://huggingface.co/Haozhan72/Openvla-oft-SFT-libero-spatial-traj1 https://huggingface.co/RLinf/RLinf-OpenVLAOFT-LIBERO-130-Base-Lora
          precision: ${actor.model.precision}
      
      actor:
        group_name: "ActorGroup"
        training_backend: "fsdp"
        micro_batch_size: 32
        global_batch_size: 8192
        seed: 1234
        enable_offload: True
      
      
        model:
          model_path: "/workspace/RLinf/oft-spatial-1/oft-spatial-1" # https://huggingface.co/Haozhan72/Openvla-oft-SFT-libero-spatial-traj1 https://huggingface.co/RLinf/RLinf-OpenVLAOFT-LIBERO-130-Base-Lora
          model_type: "openvla_oft"
      
          unnorm_key: libero_spatial_no_noops
          max_prompt_length: 128
      
        optim:
          lr: 2.0e-5
          value_lr: 3.0e-3
          adam_beta1: 0.9
          adam_beta2: 0.999
          adam_eps: 1.0e-05
          weight_decay: 0.01
          clip_grad: 1.0
      
      
        fsdp_config:
          strategy: "fsdp"
          gradient_checkpointing: True
          mixed_precision:
            param_dtype: ${actor.model.precision}
            reduce_dtype: ${actor.model.precision}
            buffer_dtype: ${actor.model.precision}
      
      reward:
        use_reward_model: False
      
      critic:
        use_critic_model: False

hahans avatar Mar 27 '26 06:03 hahans

However, when I run it to step 89, the success_once rate is only 61%. Is this normal?然而,当我运行到第 89 步时,success_once 率只有 61%。这是正常的吗?

Image My config is: Image 我的配置是:

      defaults:
        - env/[email protected]
        - env/[email protected]
        - model/[email protected]
        - training_backend/[email protected]_config
        - override hydra/job_logging: stdout
      
      hydra:
        run:
          dir: .
        output_subdir: null
        searchpath:
          - file://${oc.env:EMBODIED_PATH}/config/
      
      cluster:
        num_nodes: 1
        component_placement:
          actor,env,rollout: all
      
      runner:
        task_type: embodied
        logger:
          log_path: "../results"
          project_name: rlinf
          experiment_name: "wan_libero_spatial_grpo_openvlaoft"
          logger_backends: ["tensorboard"] # wandb, swanlab
      
        max_epochs: 1000
        max_steps: -1
      
        only_eval: False
        val_check_interval: -1
        save_interval: 5
      
        resume_dir: null # Optional: path to a saved checkpoint directory, such as 'checkpoints/global_step_10'. If not None, it will be used to resume training.
        ckpt_path: null  # Optional: path to a .pt checkpoint. If not None, it will be loaded after the model is instantiated (for evaluation).
      
      algorithm:
        normalize_advantages: True
        kl_penalty: kl  
        group_size: 8
        rollout_epoch: 16
        eval_rollout_epoch: 0 # set eval_rollout_epoch > 0 when enable runner.only_eval or runner.val_check_interval > 0
      
        reward_type: action_level  # action_level or chunk_level
        logprob_type: token_level
        entropy_type: token_level
      
        adv_type: grpo
        loss_type: actor
        loss_agg_func: "token-mean"
        kl_beta: 0.0
        entropy_bonus: 0
        clip_ratio_high: 0.28
        clip_ratio_low: 0.2
        clip_ratio_c: 3.0
        value_clip: 0.2
        huber_delta: 10.0
      
        gamma: 0.99
        gae_lambda: 0.95
      
        reward_coef: 5.0
      
        sampling_params:
          do_sample: True
          temperature_train: 1.6
          temperature_eval: 1.6
          top_k: -1
          top_p: 1.0
          repetition_penalty: 1.0
      
      
        length_params:
          max_new_token: null
          max_length: 1024
          min_length: 1
      
        filter_rewards: True
        rewards_lower_bound: 0.5
        rewards_upper_bound: 4.5
      
      env:
        group_name: "EnvGroup"
      
      
        train:
          total_num_envs: 64
          group_size: ${algorithm.group_size}
          max_episode_steps: 256 # max episode steps for truncation
          max_steps_per_rollout_epoch: 256
          reward_coef: ${algorithm.reward_coef}
          reset_gripper_open: True
          wan_wm_hf_ckpt_path: "/workspace/RLinf/RLinf-Wan-Libero-Spatial" # https://huggingface.co/RLinf/RLinf-Wan-Libero-Spatial
          enable_offload: True # otherwise, may OOM
          num_inference_steps: 5 # default 5, can be set to 3 or 1 for faster inference, but lower quality
        eval:
          total_num_envs: 496 # must be divisible by env_world_size
          auto_reset: True
          ignore_terminations: True
          max_episode_steps: 512
          max_steps_per_rollout_epoch: 512
          group_size: 1
          reset_gripper_open: True
          is_eval: True
          video_cfg:
            save_video: True
            video_base_dir: ${runner.logger.log_path}/video/eval
      
      rollout:
        group_name: "RolloutGroup"
        generation_backend: "huggingface"
        enable_offload: True
        pipeline_stage_num: 1
      
        model:
          model_path: "/workspace/RLinf/oft-spatial-1/oft-spatial-1" # https://huggingface.co/Haozhan72/Openvla-oft-SFT-libero-spatial-traj1 https://huggingface.co/RLinf/RLinf-OpenVLAOFT-LIBERO-130-Base-Lora
          precision: ${actor.model.precision}
      
      actor:
        group_name: "ActorGroup"
        training_backend: "fsdp"
        micro_batch_size: 32
        global_batch_size: 8192
        seed: 1234
        enable_offload: True
      
      
        model:
          model_path: "/workspace/RLinf/oft-spatial-1/oft-spatial-1" # https://huggingface.co/Haozhan72/Openvla-oft-SFT-libero-spatial-traj1 https://huggingface.co/RLinf/RLinf-OpenVLAOFT-LIBERO-130-Base-Lora
          model_type: "openvla_oft"
      
          unnorm_key: libero_spatial_no_noops
          max_prompt_length: 128
      
        optim:
          lr: 2.0e-5
          value_lr: 3.0e-3
          adam_beta1: 0.9
          adam_beta2: 0.999
          adam_eps: 1.0e-05
          weight_decay: 0.01
          clip_grad: 1.0
      
      
        fsdp_config:
          strategy: "fsdp"
          gradient_checkpointing: True
          mixed_precision:
            param_dtype: ${actor.model.precision}
            reduce_dtype: ${actor.model.precision}
            buffer_dtype: ${actor.model.precision}
      
      reward:
        use_reward_model: False
      
      critic:
        use_critic_model: False

Maybe you should't know the success by this mumber, I saw it change a lot, should we use LIBERO env to eval it?

wenzonghui avatar Apr 10 '26 03:04 wenzonghui

However, when I run it to step 89, the success_once rate is only 61%. Is this normal?

@hahans Hi, have you figured out what the issue is? And also do you mind sharing what hardware you were using? Especially, if you noticed a big difference between your initial SR and the official initial SR (looks like slightly smaller than 0.6), it might be due to a hardware difference imo.

wzii avatar May 29 '26 22:05 wzii