mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +00:00
Cleaning up examples/
models and starter .env
files (#1124)
Closes https://github.com/go-skynet/LocalAI/issues/1066 and https://github.com/go-skynet/LocalAI/issues/1065 Standardizes all `examples/`: - Models in one place (other than `rwkv`, which was one-offy) - Env files as `.env.example` with `cp` - Also standardizes comments and links docs
This commit is contained in:
parent
c223364816
commit
e34b5f0119
34 changed files with 48 additions and 99 deletions
7
examples/models/.gitignore
vendored
Normal file
7
examples/models/.gitignore
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Ignore everything but predefined models
|
||||
*
|
||||
!.gitignore
|
||||
!completion.tmpl
|
||||
!embeddings.yaml
|
||||
!gpt4all.tmpl
|
||||
!gpt-3.5-turbo.yaml
|
1
examples/models/completion.tmpl
Normal file
1
examples/models/completion.tmpl
Normal file
|
@ -0,0 +1 @@
|
|||
{{.Input}}
|
6
examples/models/embeddings.yaml
Normal file
6
examples/models/embeddings.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
name: text-embedding-ada-002
|
||||
parameters:
|
||||
model: bert
|
||||
threads: 4
|
||||
backend: bert-embeddings
|
||||
embeddings: true
|
16
examples/models/gpt-3.5-turbo.yaml
Normal file
16
examples/models/gpt-3.5-turbo.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
name: gpt-3.5-turbo
|
||||
parameters:
|
||||
model: ggml-gpt4all-j
|
||||
top_k: 80
|
||||
temperature: 0.2
|
||||
top_p: 0.7
|
||||
context_size: 1024
|
||||
stopwords:
|
||||
- "HUMAN:"
|
||||
- "GPT:"
|
||||
roles:
|
||||
user: " "
|
||||
system: " "
|
||||
template:
|
||||
completion: completion
|
||||
chat: gpt4all
|
4
examples/models/gpt4all.tmpl
Normal file
4
examples/models/gpt4all.tmpl
Normal file
|
@ -0,0 +1,4 @@
|
|||
The prompt below is a question to answer, a task to complete, or a conversation to respond to; decide which and write an appropriate response.
|
||||
### Prompt:
|
||||
{{.Input}}
|
||||
### Response:
|
Loading…
Add table
Add a link
Reference in a new issue