diff --git a/gpt4all-api/gpt4all_api/Dockerfile.buildkit b/gpt4all-api/gpt4all_api/Dockerfile.buildkit index d366e65b..7d33cbdf 100644 --- a/gpt4all-api/gpt4all_api/Dockerfile.buildkit +++ b/gpt4all-api/gpt4all_api/Dockerfile.buildkit @@ -18,6 +18,6 @@ COPY gpt4all_api/app /app RUN mkdir -p /models # Include the following line to bake a model into the image and not have to download it on API start. -RUN wget -q --show-progress=off https://gpt4all.io/models/${MODEL_BIN} -P /models \ +RUN wget -q --show-progress=off https://gpt4all.io/models/gguf/${MODEL_BIN} -P /models \ && md5sum /models/${MODEL_BIN} diff --git a/gpt4all-bindings/java/README.md b/gpt4all-bindings/java/README.md index 9f712d76..af996054 100644 --- a/gpt4all-bindings/java/README.md +++ b/gpt4all-bindings/java/README.md @@ -22,7 +22,7 @@ implementation 'com.hexadevlabs:gpt4all-java-binding:1.1.5' To add the library dependency for another build system see [Maven Central Java bindings](https://central.sonatype.com/artifact/com.hexadevlabs/gpt4all-java-binding/). -To download model binary weights file use a URL such as [`https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.bin`](https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.bin). +To download model binary weights file use a URL such as [`https://gpt4all.io/models/gguf/gpt4all-13b-snoozy-q4_0.gguf`](https://gpt4all.io/models/gguf/gpt4all-13b-snoozy-q4_0.gguf). For information about other models available see the [model file list](https://github.com/nomic-ai/gpt4all/tree/main/gpt4all-chat#manual-download-of-models). @@ -123,4 +123,4 @@ If this is the case you can easily download and install the latest x64 Microsoft - Falcon model support included. 4. Version **1.1.5**: - Add a check for model file readability before loading model. - \ No newline at end of file + diff --git a/gpt4all-bindings/python/docs/gpt4all_typescript.md b/gpt4all-bindings/python/docs/gpt4all_typescript.md index 61007d69..87876ef3 100644 --- a/gpt4all-bindings/python/docs/gpt4all_typescript.md +++ b/gpt4all-bindings/python/docs/gpt4all_typescript.md @@ -705,7 +705,7 @@ Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob ##### url -Remote download url. Defaults to `https://gpt4all.io/models/` +Remote download url. Defaults to `https://gpt4all.io/models/gguf/` Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) diff --git a/gpt4all-bindings/python/gpt4all/gpt4all.py b/gpt4all-bindings/python/gpt4all/gpt4all.py index 5bd7541a..a1504ecf 100644 --- a/gpt4all-bindings/python/gpt4all/gpt4all.py +++ b/gpt4all-bindings/python/gpt4all/gpt4all.py @@ -213,7 +213,7 @@ class GPT4All: def get_download_url(model_filename): if url: return url - return f"https://gpt4all.io/models/{model_filename}" + return f"https://gpt4all.io/models/gguf/{model_filename}" # Download model download_path = os.path.join(model_path, model_filename).replace("\\", "\\\\") diff --git a/gpt4all-bindings/typescript/README.md b/gpt4all-bindings/typescript/README.md index dd82d2f3..67255363 100644 --- a/gpt4all-bindings/typescript/README.md +++ b/gpt4all-bindings/typescript/README.md @@ -705,7 +705,7 @@ Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob ##### url -Remote download url. Defaults to `https://gpt4all.io/models/` +Remote download url. Defaults to `https://gpt4all.io/models/gguf/` Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) diff --git a/gpt4all-bindings/typescript/src/gpt4all.d.ts b/gpt4all-bindings/typescript/src/gpt4all.d.ts index fad4b5c3..4fecb8ee 100644 --- a/gpt4all-bindings/typescript/src/gpt4all.d.ts +++ b/gpt4all-bindings/typescript/src/gpt4all.d.ts @@ -444,8 +444,8 @@ interface DownloadModelOptions { verbose?: boolean; /** - * Remote download url. Defaults to `https://gpt4all.io/models/` - * @default https://gpt4all.io/models/ + * Remote download url. Defaults to `https://gpt4all.io/models/gguf/` + * @default https://gpt4all.io/models/gguf/ */ url?: string; /** diff --git a/gpt4all-bindings/typescript/src/util.js b/gpt4all-bindings/typescript/src/util.js index ccd119e2..7073c1da 100644 --- a/gpt4all-bindings/typescript/src/util.js +++ b/gpt4all-bindings/typescript/src/util.js @@ -113,7 +113,7 @@ function downloadModel(modelName, options = {}) { ); const finalModelPath = path.join(downloadOptions.modelPath, modelFileName); const modelUrl = - downloadOptions.url ?? `https://gpt4all.io/models/${modelFileName}`; + downloadOptions.url ?? `https://gpt4all.io/models/gguf/${modelFileName}`; mkdirp.sync(downloadOptions.modelPath) diff --git a/gpt4all-chat/download.cpp b/gpt4all-chat/download.cpp index f0c0d987..b3d0d990 100644 --- a/gpt4all-chat/download.cpp +++ b/gpt4all-chat/download.cpp @@ -129,7 +129,7 @@ void Download::downloadModel(const QString &modelFile) ModelList::globalInstance()->updateDataByFilename(modelFile, ModelList::DownloadingRole, true); ModelInfo info = ModelList::globalInstance()->modelInfoByFilename(modelFile); - QString url = !info.url.isEmpty() ? info.url : "http://gpt4all.io/models/" + modelFile; + QString url = !info.url.isEmpty() ? info.url : "http://gpt4all.io/models/gguf/" + modelFile; Network::globalInstance()->sendDownloadStarted(modelFile); QNetworkRequest request(url); request.setAttribute(QNetworkRequest::User, modelFile);