mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 04:17:52 +00:00
Added the authors of bindings
This commit is contained in:
parent
196640a676
commit
b61c92c7d6
11
app.py
11
app.py
@ -464,7 +464,16 @@ class Gpt4AllWebUI(GPT4AllAPI):
|
|||||||
|
|
||||||
def list_bindings(self):
|
def list_bindings(self):
|
||||||
bindings_dir = Path('./bindings') # replace with the actual path to the models folder
|
bindings_dir = Path('./bindings') # replace with the actual path to the models folder
|
||||||
bindings = [f.stem for f in bindings_dir.iterdir() if f.is_dir() and f.stem!="__pycache__"]
|
bindings=[]
|
||||||
|
for f in bindings_dir.iterdir():
|
||||||
|
card = f/"binding_card.yaml"
|
||||||
|
if card.exists():
|
||||||
|
try:
|
||||||
|
bnd = load_config(card)
|
||||||
|
bnd["folder"]=f.stem
|
||||||
|
bindings.append(bnd)
|
||||||
|
except Exception as ex:
|
||||||
|
print(f"Couldn't load backend card : {f}\n\t{ex}")
|
||||||
return jsonify(bindings)
|
return jsonify(bindings)
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
# This is an interface class for GPT4All-ui bindings.
|
# This is an interface class for GPT4All-ui bindings.
|
||||||
|
|
||||||
# This binding is a wrapper to marella's binding
|
# This binding is a wrapper to marella's binding
|
||||||
# Follow him on his github project : https://github.com/marella/ctransformers
|
|
||||||
|
|
||||||
######
|
######
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
5
bindings/backend_template/binding_card.yaml
Normal file
5
bindings/backend_template/binding_card.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
name: This is a binding template (Not usable)
|
||||||
|
author: the binding author
|
||||||
|
version: the binding version
|
||||||
|
link: Link to the binding repository
|
||||||
|
description: the binding version
|
@ -1,3 +0,0 @@
|
|||||||
ctransformers
|
|
||||||
transformers
|
|
||||||
accelerate
|
|
@ -9,7 +9,6 @@
|
|||||||
# This is an interface class for GPT4All-ui bindings.
|
# This is an interface class for GPT4All-ui bindings.
|
||||||
|
|
||||||
# This binding is a wrapper to marella's binding
|
# This binding is a wrapper to marella's binding
|
||||||
# Follow him on his github project : https://github.com/marella/ctransformers
|
|
||||||
|
|
||||||
######
|
######
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
15
bindings/c_transformers/binding_card.yaml
Normal file
15
bindings/c_transformers/binding_card.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
name: C Transformer
|
||||||
|
author: marella
|
||||||
|
version: 1.0
|
||||||
|
link: https://github.com/marella/ctransformers
|
||||||
|
description: 'Python bindings for the Transformer models implemented in C/C++ using GGML library.
|
||||||
|
Supported Models
|
||||||
|
Models Model Type
|
||||||
|
GPT-2 gpt2
|
||||||
|
GPT-J, GPT4All-J gptj
|
||||||
|
GPT-NeoX, StableLM gpt_neox
|
||||||
|
LLaMA llama
|
||||||
|
MPT mpt
|
||||||
|
Dolly V2 dolly-v2
|
||||||
|
StarCoder starcoder
|
||||||
|
'
|
6
bindings/gpt_4all/binding_card.yaml
Normal file
6
bindings/gpt_4all/binding_card.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
name: gpt4all
|
||||||
|
author: Nomic-ai
|
||||||
|
version: 1.0
|
||||||
|
link: https://github.com/nomic-ai/gpot4all
|
||||||
|
description:
|
||||||
|
Python bindings for the gpt4all models by Nomic-AI
|
11
bindings/llama_cpp_official/binding_card.yaml
Normal file
11
bindings/llama_cpp_official/binding_card.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
name: Official llamacpp binding
|
||||||
|
author: abetlen
|
||||||
|
version: 1.0
|
||||||
|
link: https://github.com/abetlen/llama-cpp-python
|
||||||
|
description: 'Simple Python bindings for @ggerganov''s llama.cpp library. This package provides:
|
||||||
|
Low-level access to C API via ctypes interface.
|
||||||
|
High-level Python API for text completion
|
||||||
|
OpenAI-like API
|
||||||
|
LangChain compatibility
|
||||||
|
Documentation is available at https://abetlen.github.io/llama-cpp-python.
|
||||||
|
'
|
@ -8,8 +8,7 @@
|
|||||||
# Description :
|
# Description :
|
||||||
# This is an interface class for GPT4All-ui bindings.
|
# This is an interface class for GPT4All-ui bindings.
|
||||||
|
|
||||||
# This binding is a wrapper to marella's binding
|
# This binding is a wrapper to open ai's api
|
||||||
# Follow him on his github project : https://github.com/marella/ctransformers
|
|
||||||
|
|
||||||
######
|
######
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
5
bindings/open_ai/binding_card.yaml
Normal file
5
bindings/open_ai/binding_card.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
name: The original GPT
|
||||||
|
author: Open AI
|
||||||
|
version: 1.0
|
||||||
|
link: https://openai.com/
|
||||||
|
description: This binding uses the open ai api to make you use gpt4 and others
|
13
bindings/py_llama_cpp/binding_card.yaml
Normal file
13
bindings/py_llama_cpp/binding_card.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
name: PyLLamaCpp
|
||||||
|
author: abdeladim
|
||||||
|
version: 1.0
|
||||||
|
link: https://github.com/abdeladim-s/pyllamacpp
|
||||||
|
description: 'Python bindings for llama.cpp
|
||||||
|
For those who don''t know, llama.cpp is a port of Facebook's LLaMA model in pure C/C++:
|
||||||
|
Without dependencies
|
||||||
|
Apple silicon first-class citizen - optimized via ARM NEON
|
||||||
|
AVX2 support for x86 architectures
|
||||||
|
Mixed F16 / F32 precision
|
||||||
|
4-bit quantization support
|
||||||
|
Runs on the CPU
|
||||||
|
'
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
web/dist/index.html
vendored
4
web/dist/index.html
vendored
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>GPT4All - WEBUI</title>
|
<title>GPT4All - WEBUI</title>
|
||||||
<script type="module" crossorigin src="/assets/index-16cca442.js"></script>
|
<script type="module" crossorigin src="/assets/index-b192126f.js"></script>
|
||||||
<link rel="stylesheet" href="/assets/index-1515757c.css">
|
<link rel="stylesheet" href="/assets/index-eacf4bd4.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
@ -86,7 +86,9 @@
|
|||||||
<select id="binding" @change="update_binding($event.target.value)"
|
<select id="binding" @change="update_binding($event.target.value)"
|
||||||
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
||||||
|
|
||||||
<option v-for="item in bindingsArr" :selected="item === configFile.binding">{{ item }}</option>
|
<option v-for="item in bindingsArr" :selected="item.folder === configFile.binding" :value="item.folder">
|
||||||
|
{{ item.name }} by ({{item.author}})
|
||||||
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="models.length > 0" class="mb-2">
|
<div v-if="models.length > 0" class="mb-2">
|
||||||
|
Loading…
Reference in New Issue
Block a user