lorax
lorax copied to clipboard
Refactor the lora load function for clarity and simplicity
This should prevent some nasty illegal memory access errors
- Consolidate individual list comprehensions into a single for loop
- Distinct code to create the lora weight pointers tensor
- Add test cases to test segments, indices, and weight pointers
- Add comments explaining the code in some tricky places