save memory of extract_lora_ups_down by returning a generator instead…
extract_lora_ups_down currently returns a list, by returning a generator we can save some memory. With this change I less frequently get an OOM during saves.
Quick question, was this be compatible with, for example, CLIs and so on?
CLI? Command line interface or some other acronym? If you mean command line interface then yes. If not, then please clarify what acronym you mean. Generators are a widely used python structure, you can learn more about them here,
https://wiki.python.org/moin/Generators
They have the benefit of less memory usage and you can start consuming them while they are being created, so have shorter runtime.
Can you change this to dev branch? Thanks
okay it is now PR #46