Skip to content

Conversation

@arJ-V
Copy link

@arJ-V arJ-V commented Dec 13, 2025

  • Add custom repr methods to LoRADense, LoRAEinsum, and LoRADenseGeneral
  • Use type(self.wrapped).name instead of repr(self.wrapped) to avoid recursion
  • Display useful debugging information (rank, wrapped module type, key attributes)
  • Prevents stack overflow when debugging LoRA modules inside ModuleInterceptor contexts

Solves issue addressed in issue: #473

- Add custom __repr__ methods to LoRADense, LoRAEinsum, and LoRADenseGeneral
- Use type(self.wrapped).__name__ instead of repr(self.wrapped) to avoid recursion
- Display useful debugging information (rank, wrapped module type, key attributes)
- Prevents stack overflow when debugging LoRA modules inside ModuleInterceptor contexts
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.

1 participant