lorax icon indicating copy to clipboard operation
lorax copied to clipboard

Refactor the lora load function for clarity and simplicity

Open ajtejankar opened this issue 1 year ago • 0 comments

This should prevent some nasty illegal memory access errors

  1. Consolidate individual list comprehensions into a single for loop
  2. Distinct code to create the lora weight pointers tensor
  3. Add test cases to test segments, indices, and weight pointers
  4. Add comments explaining the code in some tricky places

ajtejankar avatar Jun 27 '24 21:06 ajtejankar