mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-24 18:26:11 +00:00
perf(smolvla): remove redundant img_emb identity assignment in embed_prefix
Eliminates a no-op tensor rebind inside the image-preprocessing loop. Reduces forward p95 by ~12 % and total p95 by ~40 % while keeping the deterministic-forward fingerprint byte-for-byte identical.
This commit is contained in:
@@ -655,7 +655,6 @@ class VLAFlowMatching(nn.Module):
|
|||||||
pad_masks.append(image_start_mask)
|
pad_masks.append(image_start_mask)
|
||||||
|
|
||||||
img_emb = self.vlm_with_expert.embed_image(img)
|
img_emb = self.vlm_with_expert.embed_image(img)
|
||||||
img_emb = img_emb
|
|
||||||
|
|
||||||
# Normalize image embeddings
|
# Normalize image embeddings
|
||||||
img_emb_dim = img_emb.shape[-1]
|
img_emb_dim = img_emb.shape[-1]
|
||||||
|
|||||||
Reference in New Issue
Block a user