Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gallery): preload from file should by in YAML format #846

Merged
merged 3 commits into from
Jul 31, 2023
Merged

Conversation

mudler
Copy link
Owner

@mudler mudler commented Jul 31, 2023

Description

This fixes specifying models to be preloaded via file. Supposedly we should have been reading YAMLs, but by refactoring and re-using functions we ended up expecting those files as json.

Does also a small refactoring around the gallery so now with the galleries loaded in the .env:
GALLERIES=[{"name":"model-gallery", "url":"github:go-skynet/model-gallery/index.yaml"}, {"url": "github:go-skynet/model-gallery/huggingface.yaml","name":"huggingface"}]

we can directly specify models by using the huggingface repository name (owner/repository/file), and similarly now we can just curl the chat endpoint with the model name of the huggingrepository, that should trigger automatically the download.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler added the bug Something isn't working label Jul 31, 2023
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler merged commit d603a9c into master Jul 31, 2023
14 checks passed
@mudler mudler deleted the preload_yaml branch July 31, 2023 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant