-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpixi.toml
195 lines (168 loc) · 6.74 KB
/
pixi.toml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
[project]
name = "ragger-duck"
version = "0.0.1.dev0"
description = "Ragger Duck is a RAG for the scikit-learn documentation."
authors = ["Guillaume Lemaitre <g.lemaite58@gmail.com>"]
channels = ["conda-forge", "pytorch"]
platforms = ["linux-64", "osx-64", "osx-arm64"]
license = "BSD-3-Clause"
homepage = "https://github.com/glemaitre/sklearn-ragger-duck"
readme = "README.md"
[tasks]
install-ragger-duck ={ cmd = "pip install -e ." }
build-doc-sklearn = { cmd = "make html-noplot", cwd = "local_sklearn/scikit-learn/doc" }
clean-doc-sklearn = { cmd = "make clean", cwd = "local_sklearn/scikit-learn/doc" }
clean-doc-ragger-duck = { cmd = "rm -rf _build", cwd = "doc" }
fetch-mistral-7b = { cmd = "wget -O 'mistral-7b-instruct-v0.2.Q6_K.gguf' 'https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.2-GGUF/resolve/main/mistral-7b-instruct-v0.2.Q6_K.gguf?download=true'", cwd = "models" }
[dependencies]
python = "*"
wget = "*"
compilers = "*"
# Dependencies for training retrievers and inference with models
beautifulsoup4 = "*"
joblib = "*"
langchain = "*"
numpydoc = "*"
# align the version of scikit-learn with the submodule one to avoid rebuilding it
scikit-learn = "1.5.0"
sphinx-gallery = "*"
# Dependencies for the web app
fastapi = "*"
uvicorn = "*"
websockets = "*"
# Dependencies for the documentation
pydata-sphinx-theme = "*"
sphinx = "*"
# Dependencies for testing
pytest = "*"
pytest-cov = "*"
# Dependencies to build the local scikit-learn documentation
matplotlib = "*"
packaging = "*"
pandas = "*"
pillow = "*"
plotly = "*"
polars = "*"
pooch = "*"
scikit-image = "*"
seaborn = "*"
sphinx-copybutton = "*"
sphinxext-opengraph = "*"
sphinx-prompt = "*"
[feature.dev.dependencies]
ipykernel = "*"
[system-requirements]
linux = "4.18"
# MPS-specfic configuration
[feature.mps]
platforms = ["osx-arm64"]
[feature.mps.activation]
# set environment variable for building llmama-cpp via pip
scripts = ["build_scripts/osx-arm64-activate.sh"]
[feature.mps.dependencies]
faiss-cpu = { version = "1.8.0", channel = "pytorch" }
libfaiss = { version = "1.8.0", channel = "pytorch" }
pytorch = { version = "2.2.1", channel = "pytorch" }
torchvision = { version = "*", channel = "pytorch" }
transformers = "4.39.3"
sentence-transformers = "2.7.0"
[feature.mps.pypi-dependencies]
llama-cpp-python = "*"
ragger_duck = { path=".", editable=true }
# CPU-specfic configuration
[feature.cpu]
platforms = ["linux-64", "osx-64", "osx-arm64"]
[feature.cpu.activation]
# set environment variable for building llmama-cpp via pip
scripts = ["build_scripts/linux-64-cpu-activate.sh"]
[feature.cpu.target.linux-64.dependencies]
faiss-cpu = { version = "1.8.0", channel = "pytorch" }
libfaiss = { version = "1.8.0", channel = "pytorch" }
pytorch = { version = "2.2.1", channel = "pytorch" }
cpuonly = { version = "*", channel = "pytorch" }
torchvision = { version = "*", channel = "pytorch" }
transformers = "4.39.3"
sentence-transformers = "2.7.0"
[feature.cpu.target.osx-64.dependencies]
faiss-cpu = { version = "1.7.4", channel = "conda-forge" }
libfaiss = { version = "1.7.4", channel = "conda-forge" }
pytorch = { version = "2.2.1", channel = "pytorch" }
torchvision = { version = "*", channel = "pytorch" }
transformers = "4.39.3"
sentence-transformers = "2.7.0"
[feature.cpu.target.osx-arm64.dependencies]
faiss-cpu = { version = "1.8.0", channel = "pytorch" }
libfaiss = { version = "1.8.0", channel = "pytorch" }
pytorch = { version = "2.2.1", channel = "pytorch" }
torchvision = { version = "*", channel = "pytorch" }
transformers = "4.39.3"
sentence-transformers = "2.7.0"
# [feature.cpu.pypi-dependencies]
# llama-cpp-python = "*"
# ragger_duck = { path=".", editable=true }
# margaret-specfic configuration for CUDA 11.7
[feature.cuda-11-7]
platforms = ["linux-64"]
system-requirements = { cuda = "11.7" }
channels = ["nvidia", {channel = "pytorch", priority = -1}]
[feature.cuda-11-7.activation]
# set environment variable for building llmama-cpp via pip
scripts = ["build_scripts/margaret-activate.sh"]
[feature.cuda-11-7.dependencies]
faiss-cpu = { version = "1.8.0", channel = "pytorch" }
libfaiss = { version = "1.8.0", channel = "pytorch" }
cuda-nvcc = { version = "11.7.*", channel = "nvidia" }
cuda-toolkit = { version = "11.4.*", channel = "nvidia" }
cuda-runtime = { version = "11.7.*", channel = "nvidia" }
pytorch = { version = "2.0.1", channel = "pytorch" }
pytorch-cuda = { version = "11.7.*", channel = "pytorch" }
torchvision = { version = "*", channel = "pytorch" }
transformers = "4.39.3"
sentence-transformers = "2.7.0"
# [feature.margaret.pypi-dependencies]
# llama-cpp-python = "*"
# ragger_duck = { path=".", editable=true }
# GPU CUDA 12.1
[feature.cuda-12-1]
platforms = ["linux-64"]
system-requirements = { cuda = "12.1" }
channels = ["nvidia", {channel = "pytorch", priority = -1}]
[feature.cuda-12-1.activation]
# set environment variable for building llmama-cpp via pip
scripts = ["build_scripts/margaret-activate.sh"]
[feature.cuda-12-1.dependencies]
faiss-cpu = { version = "1.8.0", channel = "pytorch" }
libfaiss = { version = "1.8.0", channel = "pytorch" }
cuda-nvcc = { version = "12.1.*", channel = "nvidia" }
cuda-toolkit = { version = "12.1.*", channel = "nvidia" }
cuda-runtime = { version = "12.1.*", channel = "nvidia" }
pytorch = { version = "2.2.1", channel = "pytorch" }
pytorch-cuda = { version = "12.1.*", channel = "pytorch" }
torchvision = { version = "*", channel = "pytorch" }
transformers = "4.39.3"
sentence-transformers = "2.7.0"
# [feature.cuda-12-1.pypi-dependencies]
# llama-cpp-python = "*"
# ragger_duck = { path=".", editable=true }
# tasks per type of hardware
[feature.cpu.tasks]
start-ragger-duck = { cmd = "DEVICE=cpu uvicorn main:app --reload --host 0.0.0.0 --port 8123", cwd = "app" }
train-retrievers = { cmd = "DEVICE=cpu python train_retrievers.py", cwd = "scripts" }
test-ragger-duck = { cmd = "pytest -vsl --cov=ragger_duck --cov-report=xml ragger_duck" }
build-doc-ragger-duck = { cmd = "make html", cwd = "doc" }
[feature.mps.tasks]
start-ragger-duck = { cmd = "DEVICE=mps GPU_LAYERS=-1 uvicorn main:app --reload --host 0.0.0.0 --port 8123", cwd = "app" }
train-retrievers = { cmd = "DEVICE=mps python train_retrievers.py", cwd = "scripts" }
test-ragger-duck = { cmd = "pytest -vsl --cov=ragger_duck --cov-report=xml ragger_duck" }
build-doc-ragger-duck = { cmd = "make html", cwd = "doc" }
[feature.cuda.tasks]
start-ragger-duck = { cmd = "DEVICE=cuda GPU_LAYERS=-1 uvicorn main:app --reload --host 0.0.0.0 --port 8123", cwd = "app" }
train-retrievers = { cmd = "DEVICE=cuda python train_retrievers.py", cwd = "scripts" }
test-ragger-duck = { cmd = "pytest -vsl --cov=ragger_duck --cov-report=xml ragger_duck" }
build-doc-ragger-duck = { cmd = "make html", cwd = "doc" }
[environments]
mps = ["mps"]
cpu = ["cpu"]
cuda-11-7 = ["cuda-11-7", "cuda"]
cuda-12-1 = ["cuda-12-1", "cuda"]
dev = ["mps", "dev"]