Pan-ML / panml

PanML is a high level generative AI/ML development and analysis library designed for ease of use and fast experimentation.
MIT License
113 stars 16 forks source link

Issue loading lora model #57

Open Aaryanverma opened 1 year ago

Aaryanverma commented 1 year ago

Trained flan model using lora technique but while loading it from local, gives the following errors:

HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': './results/model_flan_lora'. Use repo_type argument if needed.

and

Can't find 'adapter_config.json' at './results/model_flan_lora

wanoz commented 1 year ago

Thanks for picking this up. I found the issue was due to a bug with the trained model not saving the adapter.json file and thus cannot load it. I have issued the correction in the code with an active PR. It should be addressed in the next version release very soon.

wanoz commented 1 year ago

Just released v1.0.5 for addressing this issue.