lastmile-ai / aiconfig

AIConfig is a config-based framework to build generative AI applications.
https://aiconfig.lastmileai.dev
MIT License
942 stars 77 forks source link

Remove hf.py from core model parser #1411

Open rossdanlm opened 7 months ago

rossdanlm commented 7 months ago

It is annoying, and we already gots the extension daaaaaaaawg

Also we should remove the HF dependencies and tests from core model parsers (move tests to the aiconfig/extensions/HuggingFace). You'll also have to remove it form the Config.py file where it gets registered

To test with local editor:

aiconfig_path=./cookbooks/Gradio/huggingface.aiconfig.json
parsers_path=./cookbooks/Gradio/aiconfig_model_registry.py
aiconfig edit --aiconfig-path=$aiconfig_path --server-port=8080 --server-mode=debug_servers --parsers-module-path=$parsers_path
justinkchen commented 6 months ago

I noticed the tests only seem to be in typescript? I don't see any tests currently for the hf.py file?

rossdanlm commented 6 months ago

Oh damn my bad, could you remove from both Python and Typescript as well :P

I think this may have been why I didn't remove it quickly yet :S