Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/lerobot/policies/wall_x/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@
# limitations under the License.

from .configuration_wall_x import WallXConfig
from .modeling_wall_x import WallXPolicy
from .processor_wall_x import make_wall_x_pre_post_processors

__all__ = ["WallXConfig", "WallXPolicy", "make_wall_x_pre_post_processors"]
3 changes: 2 additions & 1 deletion src/lerobot/policies/wall_x/modeling_wall_x.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import torch
import torch.nn as nn
import torch.nn.functional as F
from peft import LoraConfig, get_peft_model
from PIL import Image
from qwen_vl_utils.vision_process import smart_resize
from torch import Tensor
Expand Down Expand Up @@ -454,6 +453,8 @@ def define_action_token_id(self):
}

def add_lora(self, r=8, lora_alpha=32, target_modules=["q_proj", "v_proj"], lora_dropout=0.1):
from peft import LoraConfig, get_peft_model

"""
Add LoRA (Low-Rank Adaptation) adapters to the model.

Expand Down
Loading