Skip to content

Merge main code - #1

Merged
ostapkhm merged 2 commits into
mainfrom
paper-code
Aug 15, 2026
Merged

Merge main code#1
ostapkhm merged 2 commits into
mainfrom
paper-code

Conversation

@ostapkhm

Copy link
Copy Markdown
Contributor

No description provided.

ostapkhm and others added 2 commits August 15, 2026 18:59
Added a diagram of the VLA pipeline architecture to the README.
Comment thread scripts/train.py
"config": dataclasses.asdict(config),
"timestamp": time.time(),
}
torch.save(metadata, tmp_ckpt_dir / "metadata.pt")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Security] Semgrep · rules.python.tob.pickles-in-pytorch - 959ca

Functions reliant on pickle can result in arbitrary code execution. Consider loading from state_dict, using fickling, or switching to a safer serialization method like ONNX

Lines 124–124 in scripts/train.py

Comment thread scripts/train.py
optimizer_path = ckpt_dir / "optimizer.pt"

if optimizer_path.exists():
optimizer_state_dict = torch.load(optimizer_path, map_location=device, weights_only=False)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Security] Semgrep · rules.python.tob.pickles-in-pytorch - e3c56

Functions reliant on pickle can result in arbitrary code execution. Consider loading from state_dict, using fickling, or switching to a safer serialization method like ONNX

Lines 183–183 in scripts/train.py

Comment thread scripts/train.py

# Load metadata
logging.info("Loading metadata...")
metadata = torch.load(ckpt_dir / "metadata.pt", map_location=device, weights_only=False)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Security] Semgrep · rules.python.tob.pickles-in-pytorch - c3634

Functions reliant on pickle can result in arbitrary code execution. Consider loading from state_dict, using fickling, or switching to a safer serialization method like ONNX

Lines 196–196 in scripts/train.py

Comment on lines +567 to +578
self._data_loader = torch.utils.data.DataLoader(
typing.cast(torch.utils.data.Dataset, dataset),
batch_size=local_batch_size,
shuffle=shuffle,
num_workers=num_workers,
multiprocessing_context=mp_context,
persistent_workers=num_workers > 0,
collate_fn=_collate_fn,
worker_init_fn=_worker_init_fn,
drop_last=drop_last,
generator=generator,
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Security] Semgrep · rules.python.tob.automatic-memory-pinning - 45623

If possible, it is better to rely on automatic pinning in PyTorch to avoid undefined behavior and for efficiency

Lines 567–578 in src/asset_vla/training/data_loader.py

@mshamrai
mshamrai self-requested a review August 15, 2026 18:37
@ostapkhm
ostapkhm merged commit 6a32785 into main Aug 15, 2026
2 checks passed
@ostapkhm
ostapkhm deleted the paper-code branch August 15, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants