3.0 KiB
3.0 KiB
Training Configuration Guide
This document explains the key configuration parameters that can be modified for Wall-X training.
Enable FAST tokenizer
To fine-tune using the FAST tokenizer, please download the repository and update the action_tokenizer_path. Make sure to set use_fast_tokenizer to true:
git clone https://huggingface.co/physical-intelligence/fast
Quick Start Checklist
- Update run.sh: Set
code_dirandconfig_pathto your actual paths - Configure GPUs: Set
CUDA_VISIBLE_DEVICESfor your available GPUs - Update config paths: Replace all
/path/to/placeholders in config.yml with actual paths - Configure robot: Set
dof_configandagent_pos_configfor your robot - Set dataset: Choose appropriate
repo_idfor your dataset - Adjust batch size: Set
batch_size_per_gpubased on GPU memory - Run training: Execute
bash ./workspace/lerobot_example/run.sh
Required Paths (Must Modify)
processor_path: "/path/to/model/" # Path to model processor
pretrained_qwen_vl_path: "/path/to/qwen_vl_model/" # Path to pretrained Qwen VL model
qwen_vl_act_config_path: "/path/to/config.json" # Path to model config file
action_tokenizer_path: "/path/to/fast/" # Path to action tokenizer
save_path: "/path/to/workspace/" # Path to save training outputs
Training Parameters (Commonly Modified)
Learning Rate Settings
learning_rate: Initial learning rate (default: 0.00009)min_lr: Minimum learning rate for scheduler (default: 0.00005)num_warmup_steps: Number of warmup steps (default: 100)
Batch Size and Memory
batch_size_per_gpu: Batch size per GPU - adjust based on GPU memorygradient_accumulation_steps: Gradient accumulation stepsnum_training_steps: Total training stepsnum_epoch: Number of training epochs
Robot Configuration (Modify for Your Robot)
DOF Configuration
Modify dof_config to match your robot's action space:
- Add/remove action keys based on your robot's capabilities
- Ensure DOF numbers match your robot's action dimensions
Agent Position Configuration
Keep agent_pos_config consistent with dof_config.
Action Keys
obs_action_keys: Actions used as observation contextpredict_action_keys: Actions to predict/control
Data Configuration
Dataset
repo_id: LeRobot dataset identifiertrain_test_split: Training/validation split ratio (default: 0.95)action_horizon: Number of future actions to predict (default: 32)
Image Settings
resolution: Image resolution for different camera viewsdownload_videos: Whether to download video files (true/false)
Resume Training (Optional)
resume.ckpt: Path to checkpoint for resuming trainingresume.load_ckpt_only: Only load model weights, not optimizer state
Performance Settings (Optional)
profile: Enable PyTorch profiling (true/false)padding_side: Token padding side (left/right)