Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
download tool (#31)
Browse files Browse the repository at this point in the history
* update

* Update README.md

Co-authored-by: Ettore Di Giacinto <[email protected]>

* Update load.sh

Co-authored-by: Ettore Di Giacinto <[email protected]>

---------

Co-authored-by: mike dupont <[email protected]>
Co-authored-by: Ettore Di Giacinto <[email protected]>
Reviewed-by: Luna Midori
  • Loading branch information
3 people committed Sep 22, 2023
1 parent a927a36 commit c5d0c04
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,14 @@ The model gallery is a curated collection of models created by the community and

We encourage contributions to the gallery! However, please note that if you are submitting a pull request (PR), we cannot accept PRs that include URLs to models based on LLaMA or models with licenses that do not allow redistribution. Nevertheless, you can submit a PR with the configuration file without including the downloadable URL.


## Helper tool

To load a model from main onto localhost

```shell
bash ./load.sh wizard
```

## More
For how to use the files in this repository, see the [Documentation](https://localai.io/models/)
6 changes: 6 additions & 0 deletions load.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
NAME=$1
curl http://localhost:8080/models/apply -H "Content-Type: application/json" -d '{
"url": "https://raw.githubusercontent.com/go-skynet/model-gallery/main/${NAME}.yaml",
"name": "${NAME}"
}'

0 comments on commit c5d0c04

Please sign in to comment.