Skip to content

Explore using LoRA adapters for regional models #51

Description

@mihow

This could be a very efficient alternative to training regional moth models, or models focused on subsets of insect taxa.
My brief understanding is that you can train a LoRA for a subset of classes, and then add it to the base/global model at inference time rather than retraining or fine-tuning the base/global model for a region. And each LoRA can be under 10mb! Which means the global model can stay in memory on our shared inference servers, then only the appropriate LoRAs need to be swapped out based on the incoming request. That could solve some of the scaling issues Fieldguide.ai had with so many models running as well.

https://huggingface.co/docs/peft/main/en/task_guides/image_classification_lora

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions