mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-24 18:26:11 +00:00
migrate policy revert
This commit is contained in:
@@ -325,9 +325,6 @@ def load_state_dict_with_missing_key_handling(
|
|||||||
Returns:
|
Returns:
|
||||||
List of problematic missing keys that weren't in the whitelist.
|
List of problematic missing keys that weren't in the whitelist.
|
||||||
"""
|
"""
|
||||||
state_dict["model.vlm.language_model.model.encoder.embed_tokens.weight"] = state_dict[
|
|
||||||
"model.vlm.language_model.model.shared.weight"
|
|
||||||
].clone()
|
|
||||||
# Load the cleaned state dict with strict=False to capture missing/unexpected keys
|
# Load the cleaned state dict with strict=False to capture missing/unexpected keys
|
||||||
load_result = policy.load_state_dict(state_dict, strict=False)
|
load_result = policy.load_state_dict(state_dict, strict=False)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user