-
Notifications
You must be signed in to change notification settings - Fork 5
/
Taskfile.nomic.yml
35 lines (30 loc) · 858 Bytes
/
Taskfile.nomic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# https://taskfile.dev
version: "3"
tasks:
server:
deps: [ download-model ]
cmds:
- llama-server
--port 9082
--log-disable
--embedding
--ctx-size 8192
--batch-size 8192
--rope-scaling yarn
--rope-freq-scale .75
--model ./models/nomic-embed-text-v1.5.gguf
download-model:
cmds:
- mkdir -p models
- curl -s -L -o models/nomic-embed-text-v1.5.gguf https://huggingface.co/nomic-ai/nomic-embed-text-v1.5-GGUF/resolve/main/nomic-embed-text-v1.5.f16.gguf?download=true
status:
- test -f models/nomic-embed-text-v1.5.gguf
test:
cmds:
- |
curl http://localhost:9082/v1/embeddings \
-H "Content-Type: application/json" \
-d '{
"model": "nomic-embed-text",
"input": "Hello!"
}'