Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,29 @@
|
|
1 |
-
---
|
2 |
-
license: llama3
|
3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: llama3
|
3 |
+
---
|
4 |
+
|
5 |
+
Quantized Llama 3 70B Instruct to Q40 format supported by [Distributed Llama](https://github.com/b4rtaz/distributed-llama).
|
6 |
+
|
7 |
+
## License
|
8 |
+
|
9 |
+
Before download this repository please accept [Llama 3 Community License](https://llama.meta.com/llama3/license/).
|
10 |
+
|
11 |
+
## How to run
|
12 |
+
|
13 |
+
1. Clone this repository.
|
14 |
+
2. Clone Distributed Llama:
|
15 |
+
```sh
|
16 |
+
git clone https://github.com/b4rtaz/distributed-llama.git
|
17 |
+
```
|
18 |
+
3. Build Distributed Llama:
|
19 |
+
```sh
|
20 |
+
make dllama
|
21 |
+
```
|
22 |
+
4. Run Distributed Llama:
|
23 |
+
```
|
24 |
+
sudo nice -n -20 ./dllama inference --model /path/to/dllama_model_llama3-70b-instruct_q40.m --tokenizer /path/to/dllama_tokenizer_llama3.t --weights-float-type q40 --buffer-float-type q80 --prompt "Hello world" --steps 16 --nthreads 4
|
25 |
+
```
|
26 |
+
|
27 |
+
### Chat Template
|
28 |
+
|
29 |
+
Please keep in mind this model expects the prompt to use the chat template of llama 3.
|