You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modify the `VOLUME` variable in the .env file so that you can mount your local file system into Docker container.
26
+
Modify:
27
+
-`VOLUME` variable in the .env file so that you can mount your local file system into Docker container.
28
+
-`MODELS_PATH` variable in the .env file so that you can tell llama.cpp where you stored the GGUF models you downloaded.
29
+
-`MODEL` variable in the .env file so that you can tell llama.cpp what model to use (use the actual name of the gguf file, and do not forget the .gguf extension!)
30
+
-`MAX_TOKENS` variable in the .env file so that you can tell llama.cpp how many new tokens it can generate as output.
27
31
28
-
An example could be:
32
+
An example of a `.env` file could be:
29
33
```bash
30
34
VOLUME="c:/Users/User/:/User/"
35
+
MODELS_PATH="c:/Users/User/.cache/llama.cpp/"
36
+
MODEL="stories260K.gguf"
37
+
MAX_TOKENS="512"
31
38
```
32
-
This means that now everything that is under "c:/Users/User/" on your local machine is under "/User/" in your Docker container.
39
+
This means that now everything that is under "c:/Users/User/" on your local machine is under "/User/" in your Docker container, that llama.cpp knows where to look for models and what model to look for, along with the maximum new tokens for its output.
33
40
34
41
### 3. Pull the necessary images
35
42
```bash
36
-
docker pull astrabert/everything-ai
37
-
docker pull qdrant/qdrant
43
+
docker pull astrabert/everything-ai:latest
44
+
docker pull qdrant/qdrant:latest
45
+
docker pull ghcr.io/ggerganov/llama.cpp:server
38
46
```
39
47
### 4. Run the multi-container app
40
48
```bash
@@ -63,6 +71,7 @@ Choose the task among:
63
71
-*protein-folding*: get the 3D structure of a protein from its amino-acid sequence, using ESM-2 backbone model - **GPU ONLY**
64
72
-*autotrain*: fine-tune a model on a specific downstream task with autotrain-advanced, just by specifying you HF username, HF writing token and the path to a yaml config file for the training
65
73
-*spaces-api-supabase*: use HF Spaces API in combination with Supabase PostgreSQL databases in order to unleash more powerful LLMs and larger RAG-oriented vector databases - **MULTILINGUAL**
74
+
-*llama.cpp-and-qdrant*: same as *retrieval-text-generation*, but uses **llama.cpp** as inference engine, so you MUST NOT specify a model - **MULTILINGUAL**
66
75
-*image-retrieval-search*: search an image database uploading a folder as database input. The folder should have the following structure:
67
76
68
77
```
@@ -87,4 +96,3 @@ Once everything is ready, you can head over to `localhost:7860` and start using
help="Single pdf file or N pdfs reported like this: /path/to/file1.pdf,/path/to/file2.pdf,...,/path/to/fileN.pdf (there is no strict naming, you just need to provide them comma-separated)",
14
+
required=False,
15
+
default="No file"
16
+
)
17
+
18
+
argparse.add_argument(
19
+
"-d",
20
+
"--directory",
21
+
help="Directory where all your pdfs of interest are stored",
22
+
required=False,
23
+
default="No directory"
24
+
)
25
+
26
+
argparse.add_argument(
27
+
"-l",
28
+
"--language",
29
+
help="Language of the written content contained in the pdfs",
info="Single pdf file or N pdfs reported like this: /path/to/file1.pdf,/path/to/file2.pdf,...,/path/to/fileN.pdf (there is no strict naming, you just need to provide them comma-separated): only available with 'retrieval-text-generation'",
47
+
info="Single pdf file or N pdfs reported like this: /path/to/file1.pdf,/path/to/file2.pdf,...,/path/to/fileN.pdf (there is no strict naming, you just need to provide them comma-separated), please do not use '\\' as path separators: only available with 'retrieval-text-generation'",
45
48
lines=3,
46
-
value="None",
49
+
value="No file",
47
50
),
48
51
gr.Textbox(
49
52
label="Directory",
50
-
info="Directory where all your pdfs or images (.jpg, .jpeg, .png) of interest are stored (only available with 'retrieval-text-generation' for pdfs and 'retrieval-image-search' for images)",
53
+
info="Directory where all your pdfs or images (.jpg, .jpeg, .png) of interest are stored (only available with 'retrieval-text-generation' for pdfs and 'retrieval-image-search' for images). Please do not use '\\' as path separators",
0 commit comments