AlexWortega commited on
Commit
44d21d2
·
verified ·
1 Parent(s): f73d405

guard package init: keep bench/data paths importable without lerobot

Browse files
tinyvla_b200/src/tinyvla/__init__.py CHANGED
@@ -1,9 +1,13 @@
1
- """TinyVLA: dual-rate VLA (Qwen3-0.6B slow path + ~90M fast visuomotor path).
2
 
3
- Importing this package registers the "tinyvla" policy with LeRobot
4
- (use --policy.type=tinyvla --policy.discover_packages_path=tinyvla).
 
5
  """
6
 
7
- from .configuration_tinyvla import TinyVLAConfig
 
8
 
9
- __all__ = ["TinyVLAConfig"]
 
 
 
1
+ """TinyVLA: dual-rate VLA (Qwen3.5 slow path + flow-matching expert).
2
 
3
+ Importing the package registers the "tinyvla" policy with LeRobot when lerobot
4
+ is installed. The guard keeps the lerobot-free paths usable (bench_model.py,
5
+ the data modules, shard builders) — they only need torch/transformers.
6
  """
7
 
8
+ try:
9
+ from .configuration_tinyvla import TinyVLAConfig # noqa: F401
10
 
11
+ __all__ = ["TinyVLAConfig"]
12
+ except ModuleNotFoundError: # lerobot not installed: benches/data-only usage
13
+ __all__ = []