measurement.json
Browse files- README.md +75 -0
- measurement.json +0 -0
README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
license_link: https://huggingface.co/microsoft/Phi-3-medium-128k-instruct/resolve/main/LICENSE
|
4 |
+
|
5 |
+
language:
|
6 |
+
- multilingual
|
7 |
+
pipeline_tag: text-generation
|
8 |
+
tags:
|
9 |
+
- nlp
|
10 |
+
- code
|
11 |
+
inference:
|
12 |
+
parameters:
|
13 |
+
temperature: 0.7
|
14 |
+
widget:
|
15 |
+
- messages:
|
16 |
+
- role: user
|
17 |
+
content: Can you provide ways to eat combinations of bananas and dragonfruits?
|
18 |
+
quantized_by: bartowski
|
19 |
+
---
|
20 |
+
|
21 |
+
## Exllama v2 Quantizations of Phi-3-medium-128k-instruct
|
22 |
+
|
23 |
+
Using <a href="https://github.com/turboderp/exllamav2/releases/tag/v0.0.21">turboderp's ExLlamaV2 v0.0.21</a> for quantization.
|
24 |
+
|
25 |
+
<b>The "main" branch only contains the measurement.json, download one of the other branches for the model (see below)</b>
|
26 |
+
|
27 |
+
Each branch contains an individual bits per weight, with the main one containing only the meaurement.json for further conversions.
|
28 |
+
|
29 |
+
Original model: https://huggingface.co/microsoft/Phi-3-medium-128k-instruct
|
30 |
+
|
31 |
+
## Prompt format
|
32 |
+
|
33 |
+
```
|
34 |
+
<|user|> {prompt}<|end|><|assistant|><|end|>
|
35 |
+
```
|
36 |
+
|
37 |
+
## Available sizes
|
38 |
+
|
39 |
+
| Branch | Bits | lm_head bits | VRAM (4k) | VRAM (16k) | Description |
|
40 |
+
| ----- | ---- | ------- | ------ | ------ | ------------ |
|
41 |
+
| [8_0](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-exl2/tree/8_0) | 8.0 | 8.0 | 14.0 GB | 16.4 GB | Max quality that ExLlamaV2 can produce, **recommended**. |
|
42 |
+
| [6_5](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-exl2/tree/6_5) | 6.5 | 8.0 | 12.5 GB | 14.9 GB | Near unquantized performance at vastly reduced size, **recommended**. |
|
43 |
+
| [5_0](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-exl2/tree/5_0) | 5.0 | 6.0 | 10.0 GB | 12.4 GB | Slightly lower quality vs 6.5. |
|
44 |
+
| [4_25](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-exl2/tree/4_25) | 4.25 | 6.0 | 8.8 GB | 11.2 GB | GPTQ equivalent bits per weight. |
|
45 |
+
| [3_5](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-exl2/tree/3_5) | 3.5 | 6.0 | 7.6 GB | 10.0 GB | Lower quality, not recommended. |
|
46 |
+
|
47 |
+
## Download instructions
|
48 |
+
|
49 |
+
With git:
|
50 |
+
|
51 |
+
```shell
|
52 |
+
git clone --single-branch --branch 6_5 https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-exl2 Phi-3-medium-128k-instruct-exl2-6_5
|
53 |
+
```
|
54 |
+
|
55 |
+
With huggingface hub (credit to TheBloke for instructions):
|
56 |
+
|
57 |
+
```shell
|
58 |
+
pip3 install huggingface-hub
|
59 |
+
```
|
60 |
+
|
61 |
+
To download a specific branch, use the `--revision` parameter. For example, to download the 6.5 bpw branch:
|
62 |
+
|
63 |
+
Linux:
|
64 |
+
|
65 |
+
```shell
|
66 |
+
huggingface-cli download bartowski/Phi-3-medium-128k-instruct-exl2 --revision 6_5 --local-dir Phi-3-medium-128k-instruct-exl2-6_5
|
67 |
+
```
|
68 |
+
|
69 |
+
Windows (which apparently doesn't like _ in folders sometimes?):
|
70 |
+
|
71 |
+
```shell
|
72 |
+
huggingface-cli download bartowski/Phi-3-medium-128k-instruct-exl2 --revision 6_5 --local-dir Phi-3-medium-128k-instruct-exl2-6.5
|
73 |
+
```
|
74 |
+
|
75 |
+
Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
|
measurement.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|