alfraser commited on
Commit
f87d5b8
1 Parent(s): ce98eaa

Added the local environment file and fixed a typo in the readme

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. local_env.yml +322 -0
README.md CHANGED
@@ -29,7 +29,7 @@ To build and run the demonstration project for inference you can follow the foll
29
  * Build an environment to run the project. A conda environment export is provided (`local_env.yml`), including the required pip dependencies also.
30
  * Checkout the code repository locally.
31
 
32
- ## 2 - set up hugginf face endpoints
33
  * As described in the config file `architectures.json` different architectures can be configured. Each of these will have a llama 2 based LLM at its core. These LLMs are designed to be accessed as hugging face endpoints. You should set up hugging face inference endpoints for each of the models you wish to use. The default project uses both a vanilla llama2-7b-chat-hf model and the same model fin-tuned with product related queries.
34
 
35
  ## 3 - configure streamlit secrets
 
29
  * Build an environment to run the project. A conda environment export is provided (`local_env.yml`), including the required pip dependencies also.
30
  * Checkout the code repository locally.
31
 
32
+ ## 2 - set up hugging face endpoints
33
  * As described in the config file `architectures.json` different architectures can be configured. Each of these will have a llama 2 based LLM at its core. These LLMs are designed to be accessed as hugging face endpoints. You should set up hugging face inference endpoints for each of the models you wish to use. The default project uses both a vanilla llama2-7b-chat-hf model and the same model fin-tuned with product related queries.
34
 
35
  ## 3 - configure streamlit secrets
local_env.yml ADDED
@@ -0,0 +1,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: llm-arch
2
+ channels:
3
+ - conda-forge
4
+ - defaults
5
+ dependencies:
6
+ - appnope=0.1.3=pyhd8ed1ab_0
7
+ - argon2-cffi=23.1.0=pyhd8ed1ab_0
8
+ - argon2-cffi-bindings=21.2.0=py310h2aa6e3c_4
9
+ - arrow=1.3.0=pyhd8ed1ab_0
10
+ - asttokens=2.4.0=pyhd8ed1ab_0
11
+ - async-lru=2.0.4=pyhd8ed1ab_0
12
+ - attrs=23.1.0=pyh71513ae_1
13
+ - babel=2.12.1=pyhd8ed1ab_1
14
+ - backcall=0.2.0=pyh9f0ad1d_0
15
+ - backports=1.0=pyhd8ed1ab_3
16
+ - backports.functools_lru_cache=1.6.5=pyhd8ed1ab_0
17
+ - beautifulsoup4=4.12.2=pyha770c72_0
18
+ - bleach=6.0.0=pyhd8ed1ab_0
19
+ - brotli=1.1.0=hb547adb_1
20
+ - brotli-bin=1.1.0=hb547adb_1
21
+ - brotli-python=1.1.0=py310h1253130_1
22
+ - bzip2=1.0.8=h3422bc3_4
23
+ - ca-certificates=2023.08.22=hca03da5_0
24
+ - cached-property=1.5.2=hd8ed1ab_1
25
+ - cached_property=1.5.2=pyha770c72_1
26
+ - certifi=2023.7.22=py310hca03da5_0
27
+ - cffi=1.16.0=py310hdcd7c05_0
28
+ - charset-normalizer=3.2.0=pyhd8ed1ab_0
29
+ - comm=0.1.4=pyhd8ed1ab_0
30
+ - contourpy=1.1.1=py310h38f39d4_1
31
+ - cycler=0.11.0=pyhd8ed1ab_0
32
+ - debugpy=1.8.0=py310h1253130_1
33
+ - decorator=5.1.1=pyhd8ed1ab_0
34
+ - defusedxml=0.7.1=pyhd8ed1ab_0
35
+ - entrypoints=0.4=pyhd8ed1ab_0
36
+ - exceptiongroup=1.1.3=pyhd8ed1ab_0
37
+ - executing=1.2.0=pyhd8ed1ab_0
38
+ - fonttools=4.43.0=py310h2aa6e3c_0
39
+ - fqdn=1.5.1=pyhd8ed1ab_0
40
+ - freetype=2.12.1=hadb7bae_2
41
+ - idna=3.4=pyhd8ed1ab_0
42
+ - importlib-metadata=6.8.0=pyha770c72_0
43
+ - importlib_metadata=6.8.0=hd8ed1ab_0
44
+ - importlib_resources=6.1.0=pyhd8ed1ab_0
45
+ - ipykernel=6.25.2=pyh1050b4e_0
46
+ - ipython=8.16.1=pyh31c8845_0
47
+ - ipython_genutils=0.2.0=py_1
48
+ - ipywidgets=8.1.1=pyhd8ed1ab_0
49
+ - isoduration=20.11.0=pyhd8ed1ab_0
50
+ - jedi=0.19.1=pyhd8ed1ab_0
51
+ - jinja2=3.1.2=pyhd8ed1ab_1
52
+ - json5=0.9.14=pyhd8ed1ab_0
53
+ - jsonpointer=2.4=py310hbe9552e_3
54
+ - jsonschema=4.19.1=pyhd8ed1ab_0
55
+ - jsonschema-specifications=2023.7.1=pyhd8ed1ab_0
56
+ - jsonschema-with-format-nongpl=4.19.1=pyhd8ed1ab_0
57
+ - jupyter=1.0.0=pyhd8ed1ab_10
58
+ - jupyter-lsp=2.2.0=pyhd8ed1ab_0
59
+ - jupyter_client=8.3.1=pyhd8ed1ab_0
60
+ - jupyter_console=6.6.3=pyhd8ed1ab_0
61
+ - jupyter_core=5.3.2=py310hbe9552e_0
62
+ - jupyter_events=0.7.0=pyhd8ed1ab_2
63
+ - jupyter_server=2.7.3=pyhd8ed1ab_1
64
+ - jupyter_server_terminals=0.4.4=pyhd8ed1ab_1
65
+ - jupyterlab=4.0.6=pyhd8ed1ab_0
66
+ - jupyterlab_pygments=0.2.2=pyhd8ed1ab_0
67
+ - jupyterlab_server=2.25.0=pyhd8ed1ab_0
68
+ - jupyterlab_widgets=3.0.9=pyhd8ed1ab_0
69
+ - kiwisolver=1.4.5=py310h38f39d4_1
70
+ - lcms2=2.15=hf2736f0_3
71
+ - lerc=4.0.0=h9a09cb3_0
72
+ - libblas=3.9.0=18_osxarm64_openblas
73
+ - libbrotlicommon=1.1.0=hb547adb_1
74
+ - libbrotlidec=1.1.0=hb547adb_1
75
+ - libbrotlienc=1.1.0=hb547adb_1
76
+ - libcblas=3.9.0=18_osxarm64_openblas
77
+ - libcxx=16.0.6=h4653b0c_0
78
+ - libdeflate=1.19=hb547adb_0
79
+ - libffi=3.4.2=h3422bc3_5
80
+ - libgfortran=5.0.0=13_2_0_hd922786_1
81
+ - libgfortran5=13.2.0=hf226fd6_1
82
+ - libjpeg-turbo=3.0.0=hb547adb_1
83
+ - liblapack=3.9.0=18_osxarm64_openblas
84
+ - libopenblas=0.3.24=openmp_hd76b1f2_0
85
+ - libpng=1.6.39=h76d750c_0
86
+ - libsodium=1.0.18=h27ca646_1
87
+ - libsqlite=3.43.0=hb31c410_0
88
+ - libtiff=4.6.0=ha8a6c65_2
89
+ - libwebp-base=1.3.2=hb547adb_0
90
+ - libxcb=1.15=hf346824_0
91
+ - libzlib=1.2.13=h53f4e23_5
92
+ - llvm-openmp=16.0.6=h1c12783_0
93
+ - markupsafe=2.1.3=py310h2aa6e3c_1
94
+ - matplotlib=3.8.0=py310hb6292c7_1
95
+ - matplotlib-base=3.8.0=py310hd1c642d_1
96
+ - matplotlib-inline=0.1.6=pyhd8ed1ab_0
97
+ - mistune=3.0.1=pyhd8ed1ab_0
98
+ - munkres=1.1.4=pyh9f0ad1d_0
99
+ - nbclient=0.8.0=pyhd8ed1ab_0
100
+ - nbconvert=7.8.0=pyhd8ed1ab_0
101
+ - nbconvert-core=7.8.0=pyhd8ed1ab_0
102
+ - nbconvert-pandoc=7.8.0=pyhd8ed1ab_0
103
+ - nbformat=5.9.2=pyhd8ed1ab_0
104
+ - ncurses=6.4=h7ea286d_0
105
+ - nest-asyncio=1.5.6=pyhd8ed1ab_0
106
+ - notebook=7.0.4=pyhd8ed1ab_0
107
+ - notebook-shim=0.2.3=pyhd8ed1ab_0
108
+ - numpy=1.26.0=py310he2cad68_0
109
+ - openjpeg=2.5.0=h4c1507b_3
110
+ - openssl=3.1.3=h53f4e23_0
111
+ - overrides=7.4.0=pyhd8ed1ab_0
112
+ - packaging=23.2=pyhd8ed1ab_0
113
+ - pandoc=3.1.3=hce30654_0
114
+ - pandocfilters=1.5.0=pyhd8ed1ab_0
115
+ - parso=0.8.3=pyhd8ed1ab_0
116
+ - pexpect=4.8.0=pyh1a96a4e_2
117
+ - pickleshare=0.7.5=py_1003
118
+ - pillow=10.0.1=py310hdfbc14a_2
119
+ - pip=23.2.1=pyhd8ed1ab_0
120
+ - pkgutil-resolve-name=1.3.10=pyhd8ed1ab_1
121
+ - platformdirs=3.11.0=pyhd8ed1ab_0
122
+ - plotly=5.17.0=pyhd8ed1ab_0
123
+ - prometheus_client=0.17.1=pyhd8ed1ab_0
124
+ - prompt-toolkit=3.0.39=pyha770c72_0
125
+ - prompt_toolkit=3.0.39=hd8ed1ab_0
126
+ - psutil=5.9.5=py310h2aa6e3c_1
127
+ - pthread-stubs=0.4=h27ca646_1001
128
+ - ptyprocess=0.7.0=pyhd3deb0d_0
129
+ - pure_eval=0.2.2=pyhd8ed1ab_0
130
+ - pycparser=2.21=pyhd8ed1ab_0
131
+ - pygments=2.16.1=pyhd8ed1ab_0
132
+ - pyobjc-core=10.0=py310hd07e440_0
133
+ - pyobjc-framework-cocoa=10.0=py310hd07e440_1
134
+ - pyparsing=3.1.1=pyhd8ed1ab_0
135
+ - pysocks=1.7.1=pyha2e5f31_6
136
+ - python=3.10.12=h01493a6_0_cpython
137
+ - python-dateutil=2.8.2=pyhd8ed1ab_0
138
+ - python-fastjsonschema=2.18.1=pyhd8ed1ab_0
139
+ - python-json-logger=2.0.7=pyhd8ed1ab_0
140
+ - python_abi=3.10=4_cp310
141
+ - pytz=2023.3.post1=pyhd8ed1ab_0
142
+ - pyyaml=6.0.1=py310h2aa6e3c_1
143
+ - pyzmq=25.1.1=py310h30b7201_1
144
+ - qtconsole-base=5.4.4=pyha770c72_0
145
+ - qtpy=2.4.0=pyhd8ed1ab_0
146
+ - readline=8.2=h92ec313_1
147
+ - referencing=0.30.2=pyhd8ed1ab_0
148
+ - requests=2.31.0=pyhd8ed1ab_0
149
+ - rfc3339-validator=0.1.4=pyhd8ed1ab_0
150
+ - rfc3986-validator=0.1.1=pyh9f0ad1d_0
151
+ - rpds-py=0.10.3=py310had9acf8_1
152
+ - send2trash=1.8.2=pyhd1c38e8_0
153
+ - sentencepiece=0.1.99=py310h48ca7d4_0
154
+ - setuptools=68.2.2=pyhd8ed1ab_0
155
+ - six=1.16.0=pyh6c4a22f_0
156
+ - sniffio=1.3.0=pyhd8ed1ab_0
157
+ - soupsieve=2.5=pyhd8ed1ab_1
158
+ - stack_data=0.6.2=pyhd8ed1ab_0
159
+ - tenacity=8.2.3=pyhd8ed1ab_0
160
+ - terminado=0.17.1=pyhd1c38e8_0
161
+ - tinycss2=1.2.1=pyhd8ed1ab_0
162
+ - tk=8.6.13=hb31c410_0
163
+ - tomli=2.0.1=pyhd8ed1ab_0
164
+ - tornado=6.3.3=py310h2aa6e3c_1
165
+ - traitlets=5.11.2=pyhd8ed1ab_0
166
+ - types-python-dateutil=2.8.19.14=pyhd8ed1ab_0
167
+ - typing-extensions=4.8.0=hd8ed1ab_0
168
+ - typing_extensions=4.8.0=pyha770c72_0
169
+ - typing_utils=0.1.0=pyhd8ed1ab_0
170
+ - unicodedata2=15.1.0=py310h2aa6e3c_0
171
+ - uri-template=1.3.0=pyhd8ed1ab_0
172
+ - wcwidth=0.2.8=pyhd8ed1ab_0
173
+ - webcolors=1.13=pyhd8ed1ab_0
174
+ - webencodings=0.5.1=pyhd8ed1ab_2
175
+ - websocket-client=1.6.3=pyhd8ed1ab_0
176
+ - wheel=0.41.2=pyhd8ed1ab_0
177
+ - widgetsnbextension=4.0.9=pyhd8ed1ab_0
178
+ - xorg-libxau=1.0.11=hb547adb_0
179
+ - xorg-libxdmcp=1.1.3=h27ca646_0
180
+ - xz=5.2.6=h57fd34a_0
181
+ - yaml=0.2.5=h3422bc3_2
182
+ - zeromq=4.3.4=hbdafb3b_1
183
+ - zipp=3.17.0=pyhd8ed1ab_0
184
+ - zstd=1.5.5=h4f39d0f_0
185
+ - pip:
186
+ - absl-py==2.0.0
187
+ - accelerate==0.26.1
188
+ - aiohttp==3.8.6
189
+ - aiosignal==1.3.1
190
+ - altair==5.1.2
191
+ - annotated-types==0.6.0
192
+ - anyio==3.7.1
193
+ - astunparse==1.6.3
194
+ - async-timeout==4.0.3
195
+ - backoff==2.2.1
196
+ - bcrypt==4.0.1
197
+ - better-profanity==0.7.0
198
+ - bitsandbytes==0.42.0
199
+ - blinker==1.6.3
200
+ - cachetools==5.3.1
201
+ - chroma-hnswlib==0.7.3
202
+ - chromadb==0.4.15
203
+ - click==8.1.7
204
+ - coloredlogs==15.0.1
205
+ - dataclasses-json==0.6.3
206
+ - datasets==2.14.7
207
+ - deprecated==1.2.14
208
+ - dill==0.3.7
209
+ - diskcache==5.6.3
210
+ - docstring-parser==0.15
211
+ - fairscale==0.4.13
212
+ - fastapi==0.104.0
213
+ - filelock==3.12.4
214
+ - fire==0.5.0
215
+ - flatbuffers==23.5.26
216
+ - frozenlist==1.4.0
217
+ - fsspec==2023.9.2
218
+ - gast==0.5.4
219
+ - gitdb==4.0.10
220
+ - gitpython==3.1.37
221
+ - google-auth==2.23.2
222
+ - google-auth-oauthlib==1.0.0
223
+ - google-pasta==0.2.0
224
+ - googleapis-common-protos==1.61.0
225
+ - grpcio==1.59.0
226
+ - h11==0.14.0
227
+ - h5py==3.9.0
228
+ - httptools==0.6.1
229
+ - huggingface-hub==0.17.3
230
+ - humanfriendly==10.0
231
+ - jsonpatch==1.33
232
+ - keras==2.14.0
233
+ - kubernetes==28.1.0
234
+ - langchain==0.0.341
235
+ - langchain-core==0.0.6
236
+ - langsmith==0.0.67
237
+ - libclang==16.0.6
238
+ - llama-cpp-python==0.2.11
239
+ - markdown==3.4.4
240
+ - markdown-it-py==3.0.0
241
+ - marshmallow==3.20.1
242
+ - mdurl==0.1.2
243
+ - ml-dtypes==0.2.0
244
+ - monotonic==1.6
245
+ - mpmath==1.3.0
246
+ - multidict==6.0.4
247
+ - multiprocess==0.70.15
248
+ - mypy-extensions==1.0.0
249
+ - networkx==3.1
250
+ - oauthlib==3.2.2
251
+ - onnxruntime==1.16.1
252
+ - openai==0.28.1
253
+ - opentelemetry-api==1.20.0
254
+ - opentelemetry-exporter-otlp-proto-common==1.20.0
255
+ - opentelemetry-exporter-otlp-proto-grpc==1.20.0
256
+ - opentelemetry-proto==1.20.0
257
+ - opentelemetry-sdk==1.20.0
258
+ - opentelemetry-semantic-conventions==0.41b0
259
+ - opt-einsum==3.3.0
260
+ - pandas==2.1.1
261
+ - peft==0.7.1
262
+ - posthog==3.0.2
263
+ - protobuf==4.24.3
264
+ - pulsar-client==3.3.0
265
+ - pyarrow==13.0.0
266
+ - pyarrow-hotfix==0.6
267
+ - pyasn1==0.5.0
268
+ - pyasn1-modules==0.3.0
269
+ - pydantic==2.4.2
270
+ - pydantic-core==2.10.1
271
+ - pydantic-settings==2.0.3
272
+ - pydeck==0.8.1b0
273
+ - pypika==0.48.9
274
+ - python-dotenv==1.0.0
275
+ - regex==2023.10.3
276
+ - requests-oauthlib==1.3.1
277
+ - rich==13.6.0
278
+ - rsa==4.9
279
+ - safetensors==0.3.3
280
+ - scipy==1.11.4
281
+ - shtab==1.6.5
282
+ - smmap==5.0.1
283
+ - sqlalchemy==2.0.23
284
+ - sse-starlette==1.6.5
285
+ - starlette==0.27.0
286
+ - starlette-context==0.3.6
287
+ - streamlit==1.27.2
288
+ - sympy==1.12
289
+ - tensorboard==2.14.1
290
+ - tensorboard-data-server==0.7.1
291
+ - tensorflow==2.14.0
292
+ - tensorflow-estimator==2.14.0
293
+ - tensorflow-io-gcs-filesystem==0.34.0
294
+ - tensorflow-macos==2.14.0
295
+ - tensorflow-metal==1.1.0
296
+ - termcolor==2.3.0
297
+ - tokenizers==0.14.1
298
+ - toml==0.10.2
299
+ - toolz==0.12.0
300
+ - torch==2.0.1
301
+ - torchvision==0.15.2
302
+ - tqdm==4.66.1
303
+ - transformers==4.34.0
304
+ - trl==0.7.9
305
+ - typer==0.9.0
306
+ - typing-inspect==0.9.0
307
+ - tyro==0.6.4
308
+ - tzdata==2023.3
309
+ - tzlocal==5.1
310
+ - unidecode==1.3.7
311
+ - urllib3==1.26.18
312
+ - uvicorn==0.23.2
313
+ - uvloop==0.19.0
314
+ - validators==0.22.0
315
+ - watchdog==3.0.0
316
+ - watchfiles==0.21.0
317
+ - websockets==12.0
318
+ - werkzeug==3.0.0
319
+ - wrapt==1.14.1
320
+ - xxhash==3.4.1
321
+ - yarl==1.9.2
322
+ prefix: /Users/al/miniconda3/envs/llm-arch