LibreVLA
LibreVLA runs robot policies from camera frames and robot state and returns action chunks.
- 任务
- robot policies
- 尺寸
- smolvla: base at 512 px; act_policy: base at 224 px; diffusion_policy: base at 224 px
- 安装
pip install "libreyolo[vla]"- 支持层级
- 兄弟层级,自 v1.6.0 起。一个独立的产品面,有自己的工厂和契约。
- 许可
- 代码采用 MIT,权重采用 Apache-2.0。商用
Install
pip install "libreyolo[vla]"Predict
from libreyolo import LibreVLA, SAMPLE_IMAGE # Python 3.12 or later. This demonstrates shapes with synthetic state.model = LibreVLA("smolvla-base", device="cpu")result = model.predict(SAMPLE_IMAGE, state=[0.0] * 6, instruction="pick up the object")print(result.actions.data.shape)print(result.actions.first)The extra requires Python 3.12 or later. Supply real camera observations and the state representation used during training for meaningful actions. The library returns action values; the caller owns the robot control loop. Call reset() between episodes.
Train
SmolVLA
LibreVLA() selects SmolVLA. Training updates its action expert with the vision backbone frozen. Pass a LeRobot dataset ID or local v3 directory to train(data=...). Defaults are 5 epochs, batch 8, workers 0 and val_split=0.1.
ACT
LibreVLA("act") constructs an untrained action policy. Train it on a LeRobot dataset before prediction. It uses the dataset camera, state and action shapes without a language instruction. Its image backbone may download separately.
Diffusion Policy
LibreVLA("diffusion") also starts without pretrained policy weights. It keeps observation history between calls; reset() clears that history between episodes.
Validate
val(data=...) reports val/action_l1, val/action_mse, val/action_l1_first and per-dimension val/action_l1_dims. These compare predicted and recorded actions offline; they are not robot task success rates.
Checkpoints
Training saves directories containing policy weights, processors and libreyolo_vla.json. Reload a returned best-checkpoint directory with LibreVLA(path). See the policy API.
Licensing
请检查你所下载的具体权重在 Hugging Face 仓库中的许可。LibreYOLO 组织里的每个检查点都附有许可,同一家族内也不一定相同。该仓库是权威来源;以下摘要说明本页上次验证时适用的情况。
这里只说明涉及的许可证,不构成法律意见。如果答案对商用很重要,请自行阅读许可证并咨询法律顾问。
- 原始工作
- SmolVLA, ACT and Diffusion Policy, Hugging Face and policy authors
- 上游许可
- Apache-2.0
- LibreYOLO 代码
- MIT
- 权重
- 采用 Apache-2.0 许可,由作者分发。LibreYOLO 不托管或镜像这些权重。
- 解读
- The upstream policy runtime and SmolVLA base declare Apache-2.0. ACT and Diffusion Policy training do not load pretrained policy weights.