Skip to content

ci-robbot/localai-huggingface-zoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

localai-huggingface-zoo

LocalAI model zoo

you can try this repository out by passing this environment variable (master builds only):

  GALLERIES=[{"url": "github:ci-robbot/localai-huggingface-zoo/index.yaml","name":"huggingface"}]
  # Preload models
  # PRELOAD_MODELS=[{"id":"huggingface@thebloke__open-llama-7b-open-instruct-ggml__open-llama-7b-open-instruct.ggmlv3.q4_0.bin"}]

you should be able to see then the huggingface models with:

  curl http://localhost:8080/models/available | jq

and install is something like:

  curl http://localhost:8080/models/apply -H "Content-Type: application/json" -d '{ "id": "huggingface@thebloke__open-llama-7b-open-instruct-ggml__open-llama-7b-open-instruct.ggmlv3.q4_0.bin" }'

To search something, you can use jq:

  curl http://localhost:8080/models/available | jq '.[] | select(.name | contains("open-llama"))'

and try it out with:

  curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{                                                                                                         
     "model": "thebloke__open-llama-7b-open-instruct-ggml__open-llama-7b-open-instruct.ggmlv3.q4_0.bin",
     "messages": [{"role": "user", "content": "How are you?"}],
     "temperature": 0.1
   }'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages