Skip to content

踩坑GitHub huggingface/lerobot6 天前

MolmoAct2Config加载失败:config. ​

本文由 AI 根据公开内容整理,可能有误,请以原文为准:MolmoAct2: lerobot/MolmoAct2-SO100_101-LeRobot config.json fails to load (fields removed from MolmoAct2Config)(GitHub huggingface/lerobot #5374)

状态:有绕过办法

问题 ​

使用lerobot 0.7.0加载lerobot/MolmoAct2-SO100_101-LeRobot检查点时,PreTrainedConfig.from_pretrained抛出draccus.utils.DecodingError,提示enable_lora_vlm、enable_lora_action_expert、train_action_expert_only及model_dtype四个字段在`M。

环境 ​

lerobot 0.7.0, Python 3.12, torch 2.15.0, transformers 5.22.2; macOS 27.2.

解决办法 ​

  1. 读取原始config.json,断言并删除enable_lora_vlm、enable_lora_action_expert、train_action_expert_only三个布尔字段(确保其为False)。
  2. 将model_dtype字段重命名为dtype并保留值float32,禁止直接删除该字段以免回退到默认的bfloat16导致MPS设备推理异常。
  3. 新增train_mode_vlm字段并赋值为fft以匹配全量权重检查点。
  4. 保存迁移后的JSON文件替换原配置,验证MolmoAct2Policy.from_pretrained可正常加载且精度为torch.float32。

讨论原作者:@oracle9i88 等,版权归原作者所有。

基于本页技术方向关联的整机参数、核心零部件、实测报告与同赛道选型横评。

外部来源

本页事实对应的公开页面,以原文为准。(点击将离开本站)

  1. GitHub huggingface/lerobot #5374:MolmoAct2: lerobot/MolmoAct2-SO100_101-LeRobot config.json fails to load (fields removed from MolmoAct2Config) ↗访问 2026-11-17