kitops icon indicating copy to clipboard operation
kitops copied to clipboard

enable lora-adapters for dev mode

Open gorkem opened this issue 1 year ago • 3 comments

Describe the problem you're trying to solve dev mode should be able to load lora-adapters if they are present in the modelkit

Describe the solution you'd like dev mode should detect if there is a lora-adapter type on the modelkit and load it to the dev-mode.

gorkem avatar May 08 '24 22:05 gorkem

Are we looking for something like model.parts.type and adding those in dev mode.

srikary12 avatar Dec 12 '24 14:12 srikary12

Does the llamafile we are downloading support --lora tag to run lora adapters?

srikary12 avatar Dec 14 '24 18:12 srikary12

Yes it does. Here are the related options. They are just inherited from llama.cpp

--lora FNAME
Apply LoRA adapter (implies --no-mmap)
--lora-scaled FNAME S
Apply LoRA adapter with user defined scaling S (implies --no-mmap)
--lora-base FNAME
Optional model to use as a base for the layers modified by the LoRA adapter

gorkem avatar Dec 14 '24 20:12 gorkem