LocalAI/pkg
Ettore Di Giacinto b6b8ab6c21
feat(models): pull models from urls (#2750)
* feat(models): pull models from urls

When using `run` now we can point directly to hf models via URL, for
instance:

```bash
local-ai run
huggingface://TheBloke/TinyLlama-1.1B-Chat-v0.3-GGUF/tinyllama-1.1b-chat-v0.3.Q2_K.gguf
```

Will pull the gguf model and place it in the models folder - of course
this depends on the fact that the gguf file should be automatically
detected by our guesser mechanism in order to this to make effective.

Similarly now galleries can refer to single files in the API requests.

This also changes the download code and `yaml` files now are treated in
the same way, so now config files are saved with the appropriate name
(and not hashed anymore).

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* Adapt tests

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

---------

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2024-07-11 15:04:05 +02:00
..
assets chore: fix go.mod module (#2635) 2024-06-23 08:24:36 +00:00
downloader feat: HF /scan endpoint (#2566) 2024-07-10 13:18:32 +02:00
functions feat(grammar): expose properties_order (#2662) 2024-06-26 14:59:02 +02:00
grpc chore: fix go.mod module (#2635) 2024-06-23 08:24:36 +00:00
langchain feat(llama.cpp): do not specify backends to autoload and add llama.cpp variants (#2232) 2024-05-04 17:56:12 +02:00
library rf: centralize base64 image handling (#2595) 2024-06-24 08:34:36 +02:00
model feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00
oci chore: fix go.mod module (#2635) 2024-06-23 08:24:36 +00:00
stablediffusion feat: support upscaled image generation with esrgan (#509) 2023-06-05 17:21:38 +02:00
startup feat(models): pull models from urls (#2750) 2024-07-11 15:04:05 +02:00
store chore: fix go.mod module (#2635) 2024-06-23 08:24:36 +00:00
templates chore: fix go.mod module (#2635) 2024-06-23 08:24:36 +00:00
tinydream feat: add tiny dream stable diffusion support (#1283) 2023-12-24 19:27:24 +00:00
utils refactor: gallery inconsistencies (#2647) 2024-06-24 17:32:12 +02:00
xsync chore: fix go.mod module (#2635) 2024-06-23 08:24:36 +00:00
xsysinfo feat(default): use number of physical cores as default (#2483) 2024-06-04 15:23:29 +02:00