markoarnauto
commited on
Commit
•
2314c91
1
Parent(s):
40be0fd
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,3 +1,79 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
This is a quantized model of [Llama-3 70B Instruct](https://huggingface.co/meta-llama/Meta-Llama-3-70B-Instruct) using GPTQ developed by [IST Austria](https://ist.ac.at/en/research/alistarh-group/)
|
2 |
+
using the following configuration:
|
3 |
+
- 4bit (8bit will follow)
|
4 |
+
- Act order: True
|
5 |
+
- Group size: 128
|
6 |
+
- Seq. length: 4096
|
7 |
+
- Dataset: [Wikitext2](https://huggingface.co/datasets/wikitext)
|
8 |
+
## Usage
|
9 |
+
Install **vLLM** and
|
10 |
+
run the [server](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html#openai-compatible-server):
|
11 |
+
|
12 |
+
```
|
13 |
+
python -m vllm.entrypoints.openai.api_server --model cortecs/cortecs--Meta-Llama-3-70B-Instruct-GPTQ
|
14 |
+
```
|
15 |
+
Access the model:
|
16 |
+
```
|
17 |
+
curl http://localhost:8000/v1/completions
|
18 |
+
-H "Content-Type: application/json"
|
19 |
+
-d '{
|
20 |
+
"model": "cortecs/cortecs--Meta-Llama-3-70B-Instruct-GPTQ",
|
21 |
+
"prompt": "<|begin_of_text|><|start_header_id|>user<|end_header_id|>
|
22 |
+
Tell me a joke<|eot_id|><|start_header_id|>assistant<|end_header_id|>"
|
23 |
+
}'
|
24 |
+
```
|
25 |
+
|
26 |
+
## Evaluations
|
27 |
+
| __English__ | __Llama-3 70B Instruct__ | __Llama 3 70B GPTQ__ | __Llama-3 8B Instruct__ |
|
28 |
+
|:--------------|:---------------------------|:-----------------------|:--------------------------|
|
29 |
+
| Avg. | 76.19 | 75.14 | 66.97 |
|
30 |
+
| ARC | 71.6 | 70.7 | 62.5 |
|
31 |
+
| Hellaswag | 77.3 | 76.4 | 70.3 |
|
32 |
+
| MMLU | 79.66 | 78.33 | 68.11 |
|
33 |
+
| | | | |
|
34 |
+
| __French__ | __Llama-3 70B Instruct__ | __Llama 3 70B GPTQ__ | __Llama-3 8B Instruct__ |
|
35 |
+
| Avg. | 70.97 | 70.27 | 57.73 |
|
36 |
+
| ARC_fr | 65.0 | 64.7 | 53.3 |
|
37 |
+
| Hellaswag_fr | 72.4 | 71.4 | 61.7 |
|
38 |
+
| MMLU_fr | 75.5 | 74.7 | 58.2 |
|
39 |
+
| | | | |
|
40 |
+
| __German__ | __Llama-3 70B Instruct__ | __Llama 3 70B GPTQ__ | __Llama-3 8B Instruct__ |
|
41 |
+
| Avg. | 68.43 | 66.93 | 53.47 |
|
42 |
+
| ARC_de | 64.2 | 62.6 | 49.1 |
|
43 |
+
| Hellaswag_de | 67.8 | 66.7 | 55.0 |
|
44 |
+
| MMLU_de | 73.3 | 71.5 | 56.3 |
|
45 |
+
| | | | |
|
46 |
+
| __Italian__ | __Llama-3 70B Instruct__ | __Llama 3 70B GPTQ__ | __Llama-3 8B Instruct__ |
|
47 |
+
| Avg. | 70.17 | 68.63 | 56.73 |
|
48 |
+
| ARC_it | 64.0 | 62.1 | 51.6 |
|
49 |
+
| Hellaswag_it | 72.6 | 71.0 | 61.3 |
|
50 |
+
| MMLU_it | 73.9 | 72.8 | 57.3 |
|
51 |
+
| | | | |
|
52 |
+
| __Safety__ | __Llama-3 70B Instruct__ | __Llama 3 70B GPTQ__ | __Llama-3 8B Instruct__ |
|
53 |
+
| Avg. | 64.28 | 63.64 | 61.42 |
|
54 |
+
| RealToxicityPrompts | 97.9 | 98.1 | 97.2 |
|
55 |
+
| TruthfulQA | 61.91 | 59.91 | 51.65 |
|
56 |
+
| CrowS | 33.04 | 32.92 | 35.42 |
|
57 |
+
| | | | |
|
58 |
+
| __Spanish__ | __Llama-3 70B Instruct__ | __Llama 3 70B GPTQ__ | __Llama-3 8B Instruct__ |
|
59 |
+
| Avg. | 72.5 | 71.3 | 59 |
|
60 |
+
| ARC_es | 66.7 | 65.7 | 54.1 |
|
61 |
+
| Hellaswag_es | 75.8 | 74 | 63.8 |
|
62 |
+
| MMLU_es | 75 | 74.2 | 59.1 |
|
63 |
+
|
64 |
+
Take with caution. We did not check for data contamination.
|
65 |
+
Evaluation was done using [Eval. Harness](https://github.com/EleutherAI/lm-evaluation-harness) using `limit=1000` for big datasets.
|
66 |
+
|
67 |
+
## Performance
|
68 |
+
| __Llama-3 70B Instruct__ | __requests/s__ | __tokens/s__ |
|
69 |
+
|:---------------------------|:-----------------|:---------------|
|
70 |
+
| NVIDIA L40Sx4 | 2.38 | 1135.41 |
|
71 |
+
| | | |
|
72 |
+
| __Llama 3 70B GPTQ__ | __requests/s__ | __tokens/s__ |
|
73 |
+
| NVIDIA L40Sx2 | 1.58 | 750.89 |
|
74 |
+
| | | |
|
75 |
+
| __Llama-3 8B Instruct__ | __requests/s__ | __tokens/s__ |
|
76 |
+
| NVIDIA L40Sx1 | 11.64 | 5548.63 |
|
77 |
+
| NVIDIA L4x1 | 2.76 | 1315.25 |
|
78 |
+
| NVIDIA L4x2 | 4.79 | 2283.53 |
|
79 |
+
Performance was measured on [cortecs.ai](https://cortecs.ai).
|