lorax icon indicating copy to clipboard operation
lorax copied to clipboard

Support self-trained model

Open yangelaboy opened this issue 1 year ago • 2 comments
trafficstars

Model description

hi, my company has trained a model of 7b, we want to deploy lorax with our model. Can you introduce key steps to support model in loraX?

Open source status

  • [ ] The model implementation is available
  • [ ] The model weights are available

Provide useful links for the implementation

No response

yangelaboy avatar Jan 25 '24 02:01 yangelaboy

Hey @yangelaboy, thanks for offering to contribute your model to LoRAX!

For adding a new model architecture to LoRAX, the best examples are probably our PRs that added Phi, Qwen, and GPT2:

The main things to add are:

  • Basic model implementation in flash_<model>_modeling.py
  • Initialization and LoRA loading rules in flash_<model>.py
  • Register model for loading in models/__init__.py

Please let m know if you have any additional questions I can help answer!

tgaddair avatar Jan 26 '24 05:01 tgaddair

@tgaddair thx for your replying, I will get a try!

yangelaboy avatar Jan 29 '24 01:01 yangelaboy