Skip to content

Commit 942c55c

Browse files
committed
imatrix : avoid using imatrix.dat in README
1 parent 183eeb5 commit 942c55c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tools/imatrix/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ More information is available here: https://github.com/ggml-org/llama.cpp/pull/4
77

88
```
99
./llama-imatrix \
10-
-m model.gguf -f some-text.txt [-o imatrix.dat] [--process-output] [--verbosity 1] \
10+
-m model.gguf -f some-text.txt [-o imatrix.gguf] [--process-output] \
1111
[--no-ppl] [--chunk 123] [--output-frequency 10] [--save-frequency 0] \
12-
[--in-file imatrix-prev-0.dat --in-file imatrix-prev-1.dat ...]
12+
[--in-file imatrix-prev-0.gguf --in-file imatrix-prev-1.gguf ...] \
13+
[--parse-special]
1314
```
1415

1516
Here `-m` with a model name and `-f` with a file containing training data (such as e.g. `wiki.train.raw`) are mandatory.
1617
The parameters in square brackets are optional and have the following meaning:
17-
* `-o` (or `--output-file`) specifies the name of the file where the computed data will be stored. If missing `imatrix.dat` is used.
18+
* `-o` (or `--output-file`) specifies the name of the file where the computed data will be stored. If missing `imatrix.gguf` is used.
1819
* `--verbosity` specifies the verbosity level. If set to `0`, no output other than the perplexity of the processed chunks will be generated. If set to `1`, each time the results are saved a message is written to `stderr`. If `>=2`, a message is output each time data is collected for any tensor. Default verbosity level is `1`.
1920
* `--output-frequency` specifies how often the so far computed result is saved to disk. Default is 10 (i.e., every 10 chunks)
2021
* `--save-frequency` specifies how often to save a copy of the imatrix in a separate file. Default is 0 (i.e., never)
@@ -25,9 +26,9 @@ For faster computation, make sure to use GPU offloading via the `-ngl` argument
2526
## Example
2627

2728
```bash
28-
# generate importance matrix (imatrix.dat)
29+
# generate importance matrix (imatrix.gguf)
2930
./llama-imatrix -m ggml-model-f16.gguf -f train-data.txt -ngl 99
3031

3132
# use the imatrix to perform a Q4_K_M quantization
32-
./llama-quantize --imatrix imatrix.dat ggml-model-f16.gguf ./ggml-model-q4_k_m.gguf q4_k_m
33+
./llama-quantize --imatrix imatrix.gguf ggml-model-f16.gguf ./ggml-model-q4_k_m.gguf q4_k_m
3334
```

0 commit comments

Comments
 (0)