From c5d0c045761a096d1c4392ea6fa997f178b2806f Mon Sep 17 00:00:00 2001 From: jmikedupont2 Date: Fri, 22 Sep 2023 08:11:32 -0400 Subject: [PATCH] download tool (#31) * update * Update README.md Co-authored-by: Ettore Di Giacinto * Update load.sh Co-authored-by: Ettore Di Giacinto --------- Co-authored-by: mike dupont Co-authored-by: Ettore Di Giacinto Reviewed-by: Luna Midori --- README.md | 10 ++++++++++ load.sh | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 load.sh diff --git a/README.md b/README.md index 3854d8d8..5deb8a81 100644 --- a/README.md +++ b/README.md @@ -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/) diff --git a/load.sh b/load.sh new file mode 100644 index 00000000..7981c381 --- /dev/null +++ b/load.sh @@ -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}" + }'