mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 04:17:52 +00:00
upgraded code
This commit is contained in:
parent
fa45a5f3a5
commit
6372ab0fa6
8
app.py
8
app.py
@ -2,7 +2,7 @@
|
||||
# Project : GPT4ALL-UI
|
||||
# Author : ParisNeo with the help of the community
|
||||
# Supported by Nomic-AI
|
||||
# Licence : Apache 2.0
|
||||
# license : Apache 2.0
|
||||
# Description :
|
||||
# A front end Flask application for llamacpp models.
|
||||
# The official GPT4All Web ui
|
||||
@ -687,6 +687,9 @@ class Gpt4AllWebUI(GPT4AllAPI):
|
||||
filename = model.get('filename',"")
|
||||
server = model.get('server',"")
|
||||
image_url = model.get("image_url", '/icons/default.png')
|
||||
license = model.get("license", 'unknown')
|
||||
owner = model.get("owner", 'unknown')
|
||||
owner_link = model.get("owner_link", 'https://github.com/ParisNeo')
|
||||
filesize = int(model.get('filesize',0))
|
||||
description = model.get('description',"")
|
||||
if server.endswith("/"):
|
||||
@ -698,6 +701,9 @@ class Gpt4AllWebUI(GPT4AllAPI):
|
||||
models.append({
|
||||
'title': filename,
|
||||
'icon': image_url, # Replace with the path to the model icon
|
||||
'license': license,
|
||||
'owner': owner,
|
||||
'owner_link': owner_link,
|
||||
'description': description,
|
||||
'isInstalled': is_installed,
|
||||
'path': path,
|
||||
|
@ -4,7 +4,7 @@
|
||||
# Author : ParisNeo with the help of the community
|
||||
# Underlying backend : Abdeladim's pygptj backend
|
||||
# Supported by Nomic-AI
|
||||
# Licence : Apache 2.0
|
||||
# license : Apache 2.0
|
||||
# Description :
|
||||
# This is an interface class for GPT4All-ui backends.
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
description: MPT-7B
|
||||
filename: mpt-7b.ggmlv3.q5_1.bin
|
||||
license: Apache-2.0
|
||||
link: https://huggingface.co/TheBloke/MPT-7B-GGML/resolve/main/
|
||||
owner_link: https://huggingface.co/TheBloke/
|
||||
owner: TheBloke
|
||||
server: https://huggingface.co/TheBloke/MPT-7B-GGML/resolve/main/
|
||||
sha256: c947c38405921a199c603fed2ed63486811777ba370bb51c40c3132e5cfe84e5
|
||||
@ -10,7 +10,7 @@
|
||||
description: MPT-7B-Instruct
|
||||
filename: mpt-7b-instruct.ggmlv3.q5_1.bin
|
||||
license: Apache-2.0
|
||||
link: https://huggingface.co/TheBloke/MPT-7B-Instruct-GGML/resolve/main/
|
||||
owner_link: https://huggingface.co/TheBloke/
|
||||
owner: TheBloke
|
||||
server: https://huggingface.co/TheBloke/MPT-7B-Instruct-GGML/resolve/main/
|
||||
sha256: a4d17a39ac277d48a3d55aa74b36a4e6e1b891b58937a838243fad549d26c686
|
||||
@ -18,7 +18,7 @@
|
||||
description: MPT-7B-Storywriter
|
||||
filename: mpt-7b-storywriter.ggmlv3.q5_1.bin
|
||||
license: Apache-2.0
|
||||
link: https://huggingface.co/TheBloke/MPT-7B-Storywriter-GGML/resolve/main/
|
||||
owner_link: https://huggingface.co/TheBloke/
|
||||
owner: TheBloke
|
||||
server: https://huggingface.co/TheBloke/MPT-7B-Storywriter-GGML/resolve/main/
|
||||
sha256: 3b7dd7aa7508cc8cb4e262fe4b93214826f38d18d04059075e05837457f5402
|
@ -3,7 +3,7 @@
|
||||
# File : backend.py
|
||||
# Author : ParisNeo with the help of the community
|
||||
# Supported by Nomic-AI
|
||||
# Licence : Apache 2.0
|
||||
# license : Apache 2.0
|
||||
# Description :
|
||||
# This is an interface class for GPT4All-ui backends.
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
filesize: '3785248281'
|
||||
isDefault: 'true'
|
||||
license: Apache 2.0
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
md5sum: 81a09a0ddf89690372fc296ff7f625af
|
||||
owner: Nomic AI
|
||||
server: https://gpt4all.io/models/
|
||||
@ -15,7 +15,7 @@
|
||||
filename: ggml-gpt4all-l13b-snoozy.bin
|
||||
filesize: '8136770688'
|
||||
license: Non commercial
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
md5sum: 91f886b68fbce697e9a3cd501951e455
|
||||
owner: Nomic AI
|
||||
server: https://gpt4all.io/models/
|
||||
@ -26,7 +26,7 @@
|
||||
filesize: '4854401050'
|
||||
isDefault: 'true'
|
||||
license: Non commercial
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
md5sum: 756249d3d6abe23bde3b1ae272628640
|
||||
owner: Nomic AI
|
||||
requires: 2.4.1
|
||||
@ -36,7 +36,7 @@
|
||||
filename: ggml-gpt4all-j-v1.2-jazzy.bin
|
||||
filesize: '3785248281'
|
||||
license: Apache 2.0
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
md5sum: 879344aaa9d62fdccbda0be7a09e7976
|
||||
owner: Nomic AI
|
||||
server: https://gpt4all.io/models/
|
||||
@ -45,7 +45,7 @@
|
||||
filename: ggml-gpt4all-j-v1.1-breezy.bin
|
||||
filesize: '3785248281'
|
||||
license: Apache 2.0
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
md5sum: 61d48a82cb188cceb14ebb8082bfec37
|
||||
owner: Nomic AI
|
||||
server: https://gpt4all.io/models/
|
||||
@ -54,7 +54,7 @@
|
||||
filename: ggml-gpt4all-j.bin
|
||||
filesize: '3785248281'
|
||||
license: Apache 2.0
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
md5sum: 5b5a3f9b858d33b29b52b89692415595
|
||||
owner: Nomic AI
|
||||
server: https://gpt4all.io/models/
|
||||
@ -63,7 +63,7 @@
|
||||
filename: ggml-vicuna-7b-1.1-q4_2.bin
|
||||
filesize: '4212859520'
|
||||
license: Non commercial
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
md5sum: 29119f8fa11712704c6b22ac5ab792ea
|
||||
owner: Nomic AI
|
||||
server: https://gpt4all.io/models/
|
||||
@ -72,7 +72,7 @@
|
||||
filename: ggml-vicuna-13b-1.1-q4_2.bin
|
||||
filesize: '8136770688'
|
||||
license: Non commercial
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
md5sum: 95999b7b0699e2070af63bf5d34101a8
|
||||
owner: Nomic AI
|
||||
server: https://gpt4all.io/models/
|
||||
@ -81,7 +81,7 @@
|
||||
filename: ggml-wizardLM-7B.q4_2.bin
|
||||
filesize: '4212864640'
|
||||
license: Non commercial
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
md5sum: 99e6d129745a3f1fb1121abed747b05a
|
||||
owner: Nomic AI
|
||||
server: https://gpt4all.io/models/
|
||||
@ -90,7 +90,7 @@
|
||||
filename: ggml-stable-vicuna-13B.q4_2.bin
|
||||
filesize: '8136777088'
|
||||
license: Non commercial
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
md5sum: 6cb4ee297537c9133bddab9692879de0
|
||||
owner: Nomic AI
|
||||
server: https://gpt4all.io/models/
|
||||
@ -98,7 +98,7 @@
|
||||
filename: ggml-mpt-7b-base.bin
|
||||
filesize: '4854401028'
|
||||
license: Non commercial
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
md5sum: 120c32a51d020066288df045ef5d52b9
|
||||
owner: Nomic AI
|
||||
requires: 2.4.1
|
||||
@ -108,7 +108,7 @@
|
||||
filename: ggml-nous-gpt4-vicuna-13b.bin
|
||||
filesize: '8136777088'
|
||||
license: Non commercial
|
||||
link: https://gpt4all.io/models/
|
||||
owner_link: https://gpt4all.io/models/
|
||||
md5sum: d5eafd5b0bd0d615cfd5fd763f642dfe
|
||||
owner: gpt4all.io
|
||||
server: https://gpt4all.io/models/
|
||||
@ -117,7 +117,7 @@
|
||||
filename: ggml-mpt-7b-instruct.bin
|
||||
filesize: '4854401028'
|
||||
license: Apache 2.0
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
md5sum: 1cfa4958f489f0a0d1ffdf6b37322809
|
||||
owner: Nomic AI
|
||||
server: https://gpt4all.io/models/
|
||||
|
@ -4,7 +4,7 @@
|
||||
# Author : ParisNeo with the help of the community
|
||||
# Underlying backend : Abdeladim's pygptj backend
|
||||
# Supported by Nomic-AI
|
||||
# Licence : Apache 2.0
|
||||
# license : Apache 2.0
|
||||
# Description :
|
||||
# This is an interface class for GPT4All-ui backends.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
- bestGPTJ: 'true'
|
||||
owner: Nomic AI
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
description: Current best commercially licensable model based on GPT-J and trained
|
||||
by Nomic AI on the latest curated GPT4All dataset.
|
||||
filename: ggml-gpt4all-j-v1.3-groovy.bin
|
||||
@ -11,7 +11,7 @@
|
||||
- description: A commercially licensable model based on GPT-J and trained by Nomic
|
||||
AI on the v2 GPT4All dataset.
|
||||
owner: Nomic AI
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
filename: ggml-gpt4all-j-v1.2-jazzy.bin
|
||||
filesize: '3785248281'
|
||||
md5sum: 879344aaa9d62fdccbda0be7a09e7976
|
||||
@ -19,7 +19,7 @@
|
||||
- description: A commercially licensable model based on GPT-J and trained by Nomic
|
||||
AI on the v1 GPT4All dataset.
|
||||
owner: Nomic AI
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
filename: ggml-gpt4all-j-v1.1-breezy.bin
|
||||
filesize: '3785248281'
|
||||
md5sum: 61d48a82cb188cceb14ebb8082bfec37
|
||||
@ -27,7 +27,7 @@
|
||||
- description: A commercially licensable model based on GPT-J and trained by Nomic
|
||||
AI on the v0 GPT4All dataset.
|
||||
owner: Nomic AI
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
filename: ggml-gpt4all-j.bin
|
||||
filesize: '3785248281'
|
||||
md5sum: 5b5a3f9b858d33b29b52b89692415595
|
||||
@ -35,7 +35,7 @@
|
||||
- description: A non-commercially licensable model based on Llama 7b and trained by
|
||||
teams from UC Berkeley, CMU, Stanford, MBZUAI, and UC San Diego.
|
||||
owner: Nomic AI
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
filename: ggml-vicuna-7b-1.1-q4_2.bin
|
||||
filesize: '4212859520'
|
||||
md5sum: 29119f8fa11712704c6b22ac5ab792ea
|
||||
@ -43,7 +43,7 @@
|
||||
- description: A non-commercially licensable model based on Llama 13b and trained
|
||||
by teams from UC Berkeley, CMU, Stanford, MBZUAI, and UC San Diego.
|
||||
owner: Nomic AI
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
filename: ggml-vicuna-13b-1.1-q4_2.bin
|
||||
filesize: '8136770688'
|
||||
md5sum: 95999b7b0699e2070af63bf5d34101a8
|
||||
@ -51,7 +51,7 @@
|
||||
- description: A non-commercially licensable model based on Llama 7b and trained by
|
||||
Microsoft and Peking University.
|
||||
owner: Nomic AI
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
filename: ggml-wizardLM-7B.q4_2.bin
|
||||
filesize: '4212864640'
|
||||
md5sum: 99e6d129745a3f1fb1121abed747b05a
|
||||
@ -59,14 +59,14 @@
|
||||
- description: A non-commercially licensable model based on Llama 13b and RLHF trained
|
||||
by Stable AI.
|
||||
owner: Nomic AI
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
filename: ggml-stable-vicuna-13B.q4_2.bin
|
||||
filesize: '8136777088'
|
||||
md5sum: 6cb4ee297537c9133bddab9692879de0
|
||||
server: https://gpt4all.io/models/
|
||||
- description: A commercially licensable model base pre-trained by Mosaic ML.
|
||||
owner: Nomic AI
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
filename: ggml-mpt-7b-base.bin
|
||||
filesize: '4854401028'
|
||||
md5sum: 120c32a51d020066288df045ef5d52b9
|
||||
@ -81,7 +81,7 @@
|
||||
- description: A commericially licensable instruct model based on MPT and trained
|
||||
by Mosaic ML.
|
||||
owner: Nomic AI
|
||||
link: https://gpt4all.io
|
||||
owner_link: https://gpt4all.io
|
||||
filename: ggml-mpt-7b-instruct.bin
|
||||
filesize: '4854401028'
|
||||
md5sum: 1cfa4958f489f0a0d1ffdf6b37322809
|
||||
|
@ -4,7 +4,7 @@
|
||||
# Author : ParisNeo with the help of the community
|
||||
# Underlying backend : Abdeladim's pygptj backend
|
||||
# Supported by Nomic-AI
|
||||
# Licence : Apache 2.0
|
||||
# license : Apache 2.0
|
||||
# Description :
|
||||
# This is an interface class for GPT4All-ui backends.
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
# File : backend.py
|
||||
# Author : ParisNeo with the help of the community
|
||||
# Supported by Nomic-AI
|
||||
# Licence : Apache 2.0
|
||||
# license : Apache 2.0
|
||||
# Description :
|
||||
# This is an interface class for GPT4All-ui backends.
|
||||
######
|
||||
|
@ -3,7 +3,7 @@
|
||||
# File : backend.py
|
||||
# Author : ParisNeo with the help of the community
|
||||
# Supported by Nomic-AI
|
||||
# Licence : Apache 2.0
|
||||
# license : Apache 2.0
|
||||
# Description :
|
||||
# This is an interface class for GPT4All-ui backends.
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
description: The official open assistant 30B model finally here
|
||||
filename: OpenAssistant-SFT-7-Llama-30B.ggml.q4_0.bin
|
||||
license: Non commercial
|
||||
link: https://huggingface.co/TheBloke
|
||||
owner_link: https://huggingface.co/TheBloke
|
||||
owner: TheBloke
|
||||
server: https://huggingface.co/TheBloke/OpenAssistant-SFT-7-Llama-30B-GGML/resolve/main/
|
||||
sha256: 32fd44c685fbf429810db593e2db8aa42a7e1be2cd3571b6005d53b029acfcf5
|
||||
@ -10,7 +10,7 @@
|
||||
description: The wizardVicuna model 13B
|
||||
filename: wizard-vicuna-13B.ggml.q4_0.bin
|
||||
license: Non commercial
|
||||
link: https://huggingface.co/TheBloke/wizard-vicuna-13B-GGML/resolve/main/
|
||||
owner_link: https://huggingface.co/TheBloke
|
||||
owner: TheBloke
|
||||
server: https://huggingface.co/TheBloke/wizard-vicuna-13B-GGML/resolve/main/
|
||||
sha256: 32fd44c685fbf429810db593e2db8aa42a7e1be2cd3571b6005d53b029acfcf5
|
||||
@ -18,7 +18,7 @@
|
||||
description: The wizardLM model 7B uncensored
|
||||
filename: WizardLM-7B-uncensored.ggml.q4_0.bin
|
||||
license: Non commercial
|
||||
link: https://huggingface.co/TheBloke/WizardLM-7B-uncensored-GGML/resolve/main/
|
||||
owner_link: https://huggingface.co/TheBloke
|
||||
owner: TheBloke
|
||||
server: https://huggingface.co/TheBloke/WizardLM-7B-uncensored-GGML/resolve/main/
|
||||
sha256: b1e53a3c3a9389b9c5d81e0813cfb90ebaff6acad1733fad08cd28974fa3ac30
|
||||
@ -26,7 +26,7 @@
|
||||
description: The wizardLM model 7B uncensored
|
||||
filename: Wizard-Vicuna-7B-Uncensored.ggmlv3.q4_0.bin
|
||||
license: Non commercial
|
||||
link: https://huggingface.co/TheBloke/Wizard-Vicuna-7B-Uncensored-GGML/resolve/main/
|
||||
owner_link: https://huggingface.co/TheBloke
|
||||
owner: TheBloke
|
||||
server: https://huggingface.co/TheBloke/Wizard-Vicuna-7B-Uncensored-GGML/resolve/main/
|
||||
sha256: c31a4edd96527dcd808bcf9b99e3894065ac950747dac84ecd415a2387454e7c
|
@ -3,7 +3,7 @@
|
||||
# File : backend.py
|
||||
# Author : ParisNeo with the help of the community
|
||||
# Supported by Nomic-AI
|
||||
# Licence : Apache 2.0
|
||||
# license : Apache 2.0
|
||||
# Description :
|
||||
# This is an interface class for GPT4All-ui backends.
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
# File : api.py
|
||||
# Author : ParisNeo with the help of the community
|
||||
# Supported by Nomic-AI
|
||||
# Licence : Apache 2.0
|
||||
# license : Apache 2.0
|
||||
# Description :
|
||||
# A simple api to communicate with gpt4all-ui and its models.
|
||||
######
|
||||
|
@ -3,7 +3,7 @@
|
||||
# File : backend.py
|
||||
# Author : ParisNeo with the help of the community
|
||||
# Supported by Nomic-AI
|
||||
# Licence : Apache 2.0
|
||||
# license : Apache 2.0
|
||||
# Description :
|
||||
# This is an interface class for GPT4All-ui backends.
|
||||
######
|
||||
|
@ -3,7 +3,7 @@
|
||||
# File : config.py
|
||||
# Author : ParisNeo with the help of the community
|
||||
# Supported by Nomic-AI
|
||||
# Licence : Apache 2.0
|
||||
# license : Apache 2.0
|
||||
# Description :
|
||||
# A front end Flask application for llamacpp models.
|
||||
# The official GPT4All Web ui
|
||||
|
File diff suppressed because one or more lines are too long
2
web/dist/index.html
vendored
2
web/dist/index.html
vendored
@ -6,7 +6,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>GPT4All - WEBUI</title>
|
||||
<script type="module" crossorigin src="/assets/index-4aa29d83.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-53c32ebf.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-31b0e39d.css">
|
||||
</head>
|
||||
<body>
|
||||
|
@ -4,10 +4,11 @@
|
||||
<i :class="`fas ${icon} text-xl`"></i>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<h3 class="font-bold text-lg">
|
||||
<h3 class="font-bold font-large text-lg">
|
||||
{{ title }}
|
||||
</h3>
|
||||
<div class="flex flex-shrink-0">
|
||||
<b>Manual download: </b>
|
||||
<a :href="path" @click.stop
|
||||
class="flex hover:text-secondary duration-75 active:scale-90"
|
||||
title="Download this manually (faster) and put it in the models/<your backend> folder then refresh">
|
||||
@ -16,9 +17,19 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="flex flex-shrink-0">
|
||||
<i data-feather="link" class="w-5 p-1">Licence: </i>
|
||||
{{ licence }}
|
||||
<b>License: </b>
|
||||
{{ license }}
|
||||
</div>
|
||||
<div class="flex flex-shrink-0">
|
||||
<b>Owner: </b>
|
||||
<a :href="owner_link" target="_blank" @click.stop
|
||||
class="flex hover:text-secondary duration-75 active:scale-90"
|
||||
title="Owner's profile">
|
||||
<i data-feather="link" class="w-5 p-1"></i>
|
||||
{{ owner }}
|
||||
</a>
|
||||
</div>
|
||||
<b>Description: </b><br>
|
||||
<p class="opacity-80">{{ description }}</p>
|
||||
</div>
|
||||
<div class="flex-shrink-0">
|
||||
@ -58,7 +69,8 @@ export default {
|
||||
icon: String,
|
||||
path: String,
|
||||
owner: String,
|
||||
licence: String,
|
||||
owner_link: String,
|
||||
license: String,
|
||||
description: String,
|
||||
isInstalled: Boolean,
|
||||
onInstall: Function,
|
||||
|
@ -128,7 +128,7 @@
|
||||
<div ref="modelZoo" class="overflow-y-auto no-scrollbar p-2 pb-0"
|
||||
:class="mzl_collapsed ? '' : 'max-h-96'">
|
||||
<model-entry v-for="(model, index) in models" :key="index" :title="model.title" :icon="model.icon"
|
||||
:path="model.path" :description="model.description" :is-installed="model.isInstalled"
|
||||
:path="model.path" :owner="model.owner" :owner_link="model.owner_link" :license="model.license" :description="model.description" :is-installed="model.isInstalled"
|
||||
:on-install="onInstall" :on-uninstall="onUninstall" :on-selected="onSelected"
|
||||
:selected="model.title === configFile.model" />
|
||||
</div>
|
||||
@ -449,7 +449,7 @@ export default {
|
||||
console.log("Fetching models")
|
||||
axios.get('/get_available_models')
|
||||
.then(response => {
|
||||
console.log(`Models list recovered successfuly: ${response.data}`)
|
||||
console.log(`Models list recovered successfuly: ${JSON.stringify(response.data)}`)
|
||||
this.models = response.data;
|
||||
})
|
||||
.catch(error => {
|
||||
|
Loading…
Reference in New Issue
Block a user