[EPIC] Model support dashboard (v2)
mudler opened this issue · 9 comments
This epic is a major tracker for all the backends additions that should be part of LocalAI v2 and ongoing efforts.
The objective is to release a v2 which deprecates old models which are now superseded, plus adding a new set. In order to achieve this my idea is to clean up the current state and start pinning dependencies for all the backends which requires specific environment settings (python-based ones).
Some key points:
- The go-llama backend will be sunset by the c++ version which is directly tied and easier to pinpoint to llama.cpp versions
- we will deprecate some (if not all) the duplicated backends arch (like falcon,gpt-2, gpt-neo-x, etc..) which are now supported by llama.cpp
- the python backends will use conda envionments to pin specific versions
- having a base point for backends for several languages (rust, c++, python, golang, ...)
- re-order internal layout to accomodate more backends as needed
Some backends will be deprecated as superseded, as such some repositories will be archived (TBD yet).
Backends:
- #1055
- #1054
- #1053
- #1016
- #1015
- #1154
- #1448
- #1348
- #1262
- #1162
- #1026
- #1174
- #1370
- #1380
- #1384
- #1442
- #1464
- #1387
- #1588
- #1392
- #1438
- #1529
- #1639
- #1538
- https://github.com/VikParuchuri/surya
- #1638
- #1636
- https://github.com/magic-research/magic-animate
- #1637
- #1261
- #1640
- #1263
- #915
- #839
- #1056
- #754
- #939
- #1110
- #1028
- https://github.com/chenxwh/insanely-fast-whisper
- https://twitter.com/ggerganov/status/1724898446770069983
- https://llm.mlc.ai/docs/deploy/python.html
- vit.cpp
- https://github.com/penghao-wu/vstar
- #1497
- #1539
- Tinygrad ( https://github.com/tinygrad/tinygrad/blob/master/examples/llama3.py )
- #917
- #1648
- #1649
- #1658
- #1653
- #1647
- #1592
- https://github.com/apple/ml-mgie
- https://github.com/Zyphra/BlackMamba
- https://github.com/PKU-YuanGroup/MoE-LLaVA
- https://github.com/PKU-YuanGroup/Video-LLaVA
- https://github.com/LargeWorldModel/LWM
- https://github.com/Stability-AI/StableCascade/blob/master/inference%2Ftext_to_image.ipynb
- #1722
- https://github.com/myshell-ai/MeloTTS
- #1819
- https://github.com/roboflow/supervision
- https://github.com/Rudrabha/Wav2Lip
- https://github.com/jasonppy/VoiceCraft
- https://github.com/PKU-YuanGroup/Open-Sora-Plan
- #2010
- #2018
- #2027
- https://huggingface.co/nateraw/musicgen-songstarter-v0.2?s=09
- https://github.com/PABannier/bark.cpp
- #2318
- https://github.com/systran/faster-whisper
- #3375
- #2441
- https://github.com/fishaudio/fish-speech
- https://github.com/ictnlp/LLaMA-Omni
- #3628
- Moshi https://github.com/kyutai-labs/moshi/blob/main/moshi%2FREADME.md
- #3602
- https://github.com/baaivision/Emu3
- https://github.com/lucidrains/e2-tts-pytorch
- https://github.com/SWivid/F5-TTS
- https://github.com/homebrewltd/ichigo
- https://github.com/jy0205/Pyramid-Flow
After conda
We need to still test on master:
- Vall-E-X
- diffusers
- bark
- autogptq
- exllama
- vllm
Some rough first-steps required :
- #1057
- #1154
- #1144 (conda environments) (#1117)
- #1116 (GPU testing)
- #1255 ( Pending items from #1154 )
Re-layout
After the re-layout we can add new backends listed above without any clashes and:
⚠️ ⚠️ ⚠️ ⚠️ ⚠️
Hi! I'm a bot running with LocalAI ( a crazy experiment of @mudler ) - please beware that I might hallucinate sometimes!
but.... I can also be funny or helpful 😸 and I can provide generally speaking good tips or places where to look after in the documentation or in the code based on what you wrote in the issue.
Don't engage in conversation with me,
I don't support (yet) replying!
⚠️ ⚠️ ⚠️ ⚠️ ⚠️
Issue description:
The issue is related to the LocalAI project and its implementation of the Image endpoint. The user wants to create a cute baby sea otter image with the given prompt, size, and number of images. However, the code provided in the readInput function is not able to parse the input correctly and returns an error.
Proposed solution:
The issue seems to be related to the parsing of the input parameters. The user can try modifying the code in the readInput function to handle the specific format of the prompt, size, and number of images provided by the OpenAI API. Alternatively, they can try using a different API that provides more flexibility in the input format or use a different tool to generate the image.
If the issue persists, the user can also check if there are any updates available for the LocalAI project or report the issue on the GitHub repository to get help from the community.
Sources:
I am thinking here, Should we need to have a outline likes below:
- C++
- llama.cpp series LLM, like: Qwen, chatglm)
- Python
- [ ]Huggingface
- autoGPT
- Rust
- rustformers
- candle
If we keep this in mind, we can split the model to the specific backend. For example, I saw the Qwen LLM mentioned their C++ implementation of it "working in the same way as llama.cpp". So, maybe it can be loaded by using llama.cpp. It should be compatible with C++ our backend.
I also suggest to add some labels are related to the series of the backends. We can know a new model can be compatible by our backends.
conda branch was merged in #1144 . I'm looking now into make the llama.cpp backend on par with llama-go and also add llava support to it.
I'm going to refactor and re-layout things in the new backend
directory too
@mudler thank you for mentioning. Here are some questions(second, and third one) may need you help #1180 (comment). Here what I am thinking is that we can use a tiny model to test the Rust backend features. And make sure everything ok. Maybe we can merge it.
And if everything ok. We can add other LLMs. I have plan to support Llama2(60% finished but it still has an issue), whisper, and also support onnex
format.
caching/preloading of transformer and similar models, these are currently automatically loaded on startup into /root/.cache/huggingface/
. It seems to be enough to set TRANSFORMERS_CACHE
in the environment to the models folder, so maybe this only requires a documentation addition.
I may start looking into #1273 while this progresses. What do you think ?
please feel free to go ahead, there are many pieces involved in here, any help is more than appreciated 👍
caching/preloading of transformer and similar models, these are currently automatically loaded on startup into
/root/.cache/huggingface/
. It seems to be enough to setTRANSFORMERS_CACHE
in the environment to the models folder, so maybe this only requires a documentation addition.
in #1746 I'm taking care of automatically binding the HF cache variables to the models
directories if not set already