chengfp-eng commited on
Commit
725cb1d
·
verified ·
1 Parent(s): edb8ddd

Add Ollama usage for the Q8_0 model

Browse files

Adds instructions for running FirstPrinciples/quark-q8 on Ollama.

Files changed (1) hide show
  1. README.md +11 -1
README.md CHANGED
@@ -68,7 +68,8 @@ All were measured by us with the same setup.
68
 
69
  A Q8_0 version (model weights quantized to 8 bits) for llama.cpp (in GGUF format) is available at
70
  [FirstPrinciplesLabs/quark_quantized_weight_only-Q8_0](https://huggingface.co/FirstPrinciplesLabs/quark_quantized_weight_only-Q8_0). Its accuracy is
71
- in the [Results](#results) table: it matches Quark on all benchmarks.
 
72
 
73
  ## Throughput
74
 
@@ -109,6 +110,15 @@ Or run it locally with [Ollama](https://ollama.com/FirstPrinciples/quark) (BF16
109
  ollama run firstprinciples/quark
110
  ```
111
 
 
 
 
 
 
 
 
 
 
112
  For the [Q8_0 version](#q8_0-version) with llama.cpp:
113
 
114
  ```bash
 
68
 
69
  A Q8_0 version (model weights quantized to 8 bits) for llama.cpp (in GGUF format) is available at
70
  [FirstPrinciplesLabs/quark_quantized_weight_only-Q8_0](https://huggingface.co/FirstPrinciplesLabs/quark_quantized_weight_only-Q8_0). Its accuracy is
71
+ in the [Results](#results) table: it matches Quark on all benchmarks. It is also on Ollama as
72
+ [FirstPrinciples/quark-q8](https://ollama.com/FirstPrinciples/quark-q8) (see [Usage](#usage)).
73
 
74
  ## Throughput
75
 
 
110
  ollama run firstprinciples/quark
111
  ```
112
 
113
+ For the [Q8_0 version](#q8_0-version) with [Ollama](https://ollama.com/FirstPrinciples/quark-q8) (about 10 GB; the same sampling settings and 131,072-token context built in):
114
+
115
+ ```bash
116
+ ollama run FirstPrinciples/quark-q8
117
+ ```
118
+
119
+ A 131,072-token context needs about 15 GB of GPU memory. On a 16 GB Mac, lower it inside the chat with
120
+ `/set parameter num_ctx 32768` (longer answers are then cut off).
121
+
122
  For the [Q8_0 version](#q8_0-version) with llama.cpp:
123
 
124
  ```bash