TheBloke commited on
Commit
0e503d9
1 Parent(s): 0715103

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +478 -0
README.md ADDED
@@ -0,0 +1,478 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: janhq/Mistral-7B-Instruct-v0.2-DARE
3
+ inference: false
4
+ language:
5
+ - en
6
+ license: apache-2.0
7
+ model_creator: Jan
8
+ model_name: Mistral 7B Instruct V0.2 DARE
9
+ model_type: mistral
10
+ prompt_template: '<|im_start|>system
11
+
12
+ {system_message}<|im_end|>
13
+
14
+ <|im_start|>user
15
+
16
+ {prompt}<|im_end|>
17
+
18
+ <|im_start|>assistant
19
+
20
+ '
21
+ quantized_by: TheBloke
22
+ ---
23
+ <!-- markdownlint-disable MD041 -->
24
+
25
+ <!-- header start -->
26
+ <!-- 200823 -->
27
+ <div style="width: auto; margin-left: auto; margin-right: auto">
28
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
29
+ </div>
30
+ <div style="display: flex; justify-content: space-between; width: 100%;">
31
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
32
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
33
+ </div>
34
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
35
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
36
+ </div>
37
+ </div>
38
+ <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
39
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
40
+ <!-- header end -->
41
+
42
+ # Mistral 7B Instruct V0.2 DARE - AWQ
43
+ - Model creator: [Jan](https://huggingface.co/janhq)
44
+ - Original model: [Mistral 7B Instruct V0.2 DARE](https://huggingface.co/janhq/Mistral-7B-Instruct-v0.2-DARE)
45
+
46
+ <!-- description start -->
47
+ ## Description
48
+
49
+ This repo contains AWQ model files for [Jan's Mistral 7B Instruct V0.2 DARE](https://huggingface.co/janhq/Mistral-7B-Instruct-v0.2-DARE).
50
+
51
+
52
+ ### About AWQ
53
+
54
+ AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference with equivalent or better quality compared to the most commonly used GPTQ settings.
55
+
56
+ AWQ models are currently supported on Linux and Windows, with NVidia GPUs only. macOS users: please use GGUF models instead.
57
+
58
+ It is supported by:
59
+
60
+ - [Text Generation Webui](https://github.com/oobabooga/text-generation-webui) - using Loader: AutoAWQ
61
+ - [vLLM](https://github.com/vllm-project/vllm) - version 0.2.2 or later for support for all model types.
62
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
63
+ - [Transformers](https://huggingface.co/docs/transformers) version 4.35.0 and later, from any code or client that supports Transformers
64
+ - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) - for use from Python code
65
+
66
+ <!-- description end -->
67
+ <!-- repositories-available start -->
68
+ ## Repositories available
69
+
70
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.2-DARE-AWQ)
71
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.2-DARE-GPTQ)
72
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.2-DARE-GGUF)
73
+ * [Jan's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/janhq/Mistral-7B-Instruct-v0.2-DARE)
74
+ <!-- repositories-available end -->
75
+
76
+ <!-- prompt-template start -->
77
+ ## Prompt template: ChatML
78
+
79
+ ```
80
+ <|im_start|>system
81
+ {system_message}<|im_end|>
82
+ <|im_start|>user
83
+ {prompt}<|im_end|>
84
+ <|im_start|>assistant
85
+
86
+ ```
87
+
88
+ <!-- prompt-template end -->
89
+
90
+
91
+ <!-- README_AWQ.md-provided-files start -->
92
+ ## Provided files, and AWQ parameters
93
+
94
+ I currently release 128g GEMM models only. The addition of group_size 32 models, and GEMV kernel models, is being actively considered.
95
+
96
+ Models are released as sharded safetensors files.
97
+
98
+ | Branch | Bits | GS | AWQ Dataset | Seq Len | Size |
99
+ | ------ | ---- | -- | ----------- | ------- | ---- |
100
+ | [main](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.2-DARE-AWQ/tree/main) | 4 | 128 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 4.15 GB
101
+
102
+ <!-- README_AWQ.md-provided-files end -->
103
+
104
+ <!-- README_AWQ.md-text-generation-webui start -->
105
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
106
+
107
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
108
+
109
+ It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install.
110
+
111
+ 1. Click the **Model tab**.
112
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/Mistral-7B-Instruct-v0.2-DARE-AWQ`.
113
+ 3. Click **Download**.
114
+ 4. The model will start downloading. Once it's finished it will say "Done".
115
+ 5. In the top left, click the refresh icon next to **Model**.
116
+ 6. In the **Model** dropdown, choose the model you just downloaded: `Mistral-7B-Instruct-v0.2-DARE-AWQ`
117
+ 7. Select **Loader: AutoAWQ**.
118
+ 8. Click Load, and the model will load and is now ready for use.
119
+ 9. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
120
+ 10. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
121
+ <!-- README_AWQ.md-text-generation-webui end -->
122
+
123
+ <!-- README_AWQ.md-use-from-vllm start -->
124
+ ## Multi-user inference server: vLLM
125
+
126
+ Documentation on installing and using vLLM [can be found here](https://vllm.readthedocs.io/en/latest/).
127
+
128
+ - Please ensure you are using vLLM version 0.2 or later.
129
+ - When using vLLM as a server, pass the `--quantization awq` parameter.
130
+
131
+ For example:
132
+
133
+ ```shell
134
+ python3 -m vllm.entrypoints.api_server --model TheBloke/Mistral-7B-Instruct-v0.2-DARE-AWQ --quantization awq --dtype auto
135
+ ```
136
+
137
+ - When using vLLM from Python code, again set `quantization=awq`.
138
+
139
+ For example:
140
+
141
+ ```python
142
+ from vllm import LLM, SamplingParams
143
+
144
+ prompts = [
145
+ "Tell me about AI",
146
+ "Write a story about llamas",
147
+ "What is 291 - 150?",
148
+ "How much wood would a woodchuck chuck if a woodchuck could chuck wood?",
149
+ ]
150
+ prompt_template=f'''<|im_start|>system
151
+ {system_message}<|im_end|>
152
+ <|im_start|>user
153
+ {prompt}<|im_end|>
154
+ <|im_start|>assistant
155
+ '''
156
+
157
+ prompts = [prompt_template.format(prompt=prompt) for prompt in prompts]
158
+
159
+ sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
160
+
161
+ llm = LLM(model="TheBloke/Mistral-7B-Instruct-v0.2-DARE-AWQ", quantization="awq", dtype="auto")
162
+
163
+ outputs = llm.generate(prompts, sampling_params)
164
+
165
+ # Print the outputs.
166
+ for output in outputs:
167
+ prompt = output.prompt
168
+ generated_text = output.outputs[0].text
169
+ print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
170
+ ```
171
+ <!-- README_AWQ.md-use-from-vllm start -->
172
+
173
+ <!-- README_AWQ.md-use-from-tgi start -->
174
+ ## Multi-user inference server: Hugging Face Text Generation Inference (TGI)
175
+
176
+ Use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0`
177
+
178
+ Example Docker parameters:
179
+
180
+ ```shell
181
+ --model-id TheBloke/Mistral-7B-Instruct-v0.2-DARE-AWQ --port 3000 --quantize awq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
182
+ ```
183
+
184
+ Example Python code for interfacing with TGI (requires [huggingface-hub](https://github.com/huggingface/huggingface_hub) 0.17.0 or later):
185
+
186
+ ```shell
187
+ pip3 install huggingface-hub
188
+ ```
189
+
190
+ ```python
191
+ from huggingface_hub import InferenceClient
192
+
193
+ endpoint_url = "https://your-endpoint-url-here"
194
+
195
+ prompt = "Tell me about AI"
196
+ prompt_template=f'''<|im_start|>system
197
+ {system_message}<|im_end|>
198
+ <|im_start|>user
199
+ {prompt}<|im_end|>
200
+ <|im_start|>assistant
201
+ '''
202
+
203
+ client = InferenceClient(endpoint_url)
204
+ response = client.text_generation(prompt,
205
+ max_new_tokens=128,
206
+ do_sample=True,
207
+ temperature=0.7,
208
+ top_p=0.95,
209
+ top_k=40,
210
+ repetition_penalty=1.1)
211
+
212
+ print(f"Model output: ", response)
213
+ ```
214
+ <!-- README_AWQ.md-use-from-tgi end -->
215
+
216
+ <!-- README_AWQ.md-use-from-python start -->
217
+ ## Inference from Python code using Transformers
218
+
219
+ ### Install the necessary packages
220
+
221
+ - Requires: [Transformers](https://huggingface.co/docs/transformers) 4.35.0 or later.
222
+ - Requires: [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) 0.1.6 or later.
223
+
224
+ ```shell
225
+ pip3 install --upgrade "autoawq>=0.1.6" "transformers>=4.35.0"
226
+ ```
227
+
228
+ Note that if you are using PyTorch 2.0.1, the above AutoAWQ command will automatically upgrade you to PyTorch 2.1.0.
229
+
230
+ If you are using CUDA 11.8 and wish to continue using PyTorch 2.0.1, instead run this command:
231
+
232
+ ```shell
233
+ pip3 install https://github.com/casper-hansen/AutoAWQ/releases/download/v0.1.6/autoawq-0.1.6+cu118-cp310-cp310-linux_x86_64.whl
234
+ ```
235
+
236
+ If you have problems installing [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) using the pre-built wheels, install it from source instead:
237
+
238
+ ```shell
239
+ pip3 uninstall -y autoawq
240
+ git clone https://github.com/casper-hansen/AutoAWQ
241
+ cd AutoAWQ
242
+ pip3 install .
243
+ ```
244
+
245
+ ### Transformers example code (requires Transformers 4.35.0 and later)
246
+
247
+ ```python
248
+ from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
249
+
250
+ model_name_or_path = "TheBloke/Mistral-7B-Instruct-v0.2-DARE-AWQ"
251
+
252
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
253
+ model = AutoModelForCausalLM.from_pretrained(
254
+ model_name_or_path,
255
+ low_cpu_mem_usage=True,
256
+ device_map="cuda:0"
257
+ )
258
+
259
+ # Using the text streamer to stream output one token at a time
260
+ streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
261
+
262
+ prompt = "Tell me about AI"
263
+ prompt_template=f'''<|im_start|>system
264
+ {system_message}<|im_end|>
265
+ <|im_start|>user
266
+ {prompt}<|im_end|>
267
+ <|im_start|>assistant
268
+ '''
269
+
270
+ # Convert prompt to tokens
271
+ tokens = tokenizer(
272
+ prompt_template,
273
+ return_tensors='pt'
274
+ ).input_ids.cuda()
275
+
276
+ generation_params = {
277
+ "do_sample": True,
278
+ "temperature": 0.7,
279
+ "top_p": 0.95,
280
+ "top_k": 40,
281
+ "max_new_tokens": 512,
282
+ "repetition_penalty": 1.1
283
+ }
284
+
285
+ # Generate streamed output, visible one token at a time
286
+ generation_output = model.generate(
287
+ tokens,
288
+ streamer=streamer,
289
+ **generation_params
290
+ )
291
+
292
+ # Generation without a streamer, which will include the prompt in the output
293
+ generation_output = model.generate(
294
+ tokens,
295
+ **generation_params
296
+ )
297
+
298
+ # Get the tokens from the output, decode them, print them
299
+ token_output = generation_output[0]
300
+ text_output = tokenizer.decode(token_output)
301
+ print("model.generate output: ", text_output)
302
+
303
+ # Inference is also possible via Transformers' pipeline
304
+ from transformers import pipeline
305
+
306
+ pipe = pipeline(
307
+ "text-generation",
308
+ model=model,
309
+ tokenizer=tokenizer,
310
+ **generation_params
311
+ )
312
+
313
+ pipe_output = pipe(prompt_template)[0]['generated_text']
314
+ print("pipeline output: ", pipe_output)
315
+
316
+ ```
317
+ <!-- README_AWQ.md-use-from-python end -->
318
+
319
+ <!-- README_AWQ.md-compatibility start -->
320
+ ## Compatibility
321
+
322
+ The files provided are tested to work with:
323
+
324
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui) using `Loader: AutoAWQ`.
325
+ - [vLLM](https://github.com/vllm-project/vllm) version 0.2.0 and later.
326
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) version 1.1.0 and later.
327
+ - [Transformers](https://huggingface.co/docs/transformers) version 4.35.0 and later.
328
+ - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) version 0.1.1 and later.
329
+
330
+ <!-- README_AWQ.md-compatibility end -->
331
+
332
+ <!-- footer start -->
333
+ <!-- 200823 -->
334
+ ## Discord
335
+
336
+ For further support, and discussions on these models and AI in general, join us at:
337
+
338
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
339
+
340
+ ## Thanks, and how to contribute
341
+
342
+ Thanks to the [chirper.ai](https://chirper.ai) team!
343
+
344
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
345
+
346
+ I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
347
+
348
+ If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
349
+
350
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
351
+
352
+ * Patreon: https://patreon.com/TheBlokeAI
353
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
354
+
355
+ **Special thanks to**: Aemon Algiz.
356
+
357
+ **Patreon special mentions**: Michael Levine, 阿明, Trailburnt, Nikolai Manek, John Detwiler, Randy H, Will Dee, Sebastain Graf, NimbleBox.ai, Eugene Pentland, Emad Mostaque, Ai Maven, Jim Angel, Jeff Scroggin, Michael Davis, Manuel Alberto Morcote, Stephen Murray, Robert, Justin Joy, Luke @flexchar, Brandon Frisco, Elijah Stavena, S_X, Dan Guido, Undi ., Komninos Chatzipapas, Shadi, theTransient, Lone Striker, Raven Klaugh, jjj, Cap'n Zoog, Michel-Marie MAUDET (LINAGORA), Matthew Berman, David, Fen Risland, Omer Bin Jawed, Luke Pendergrass, Kalila, OG, Erik Bjäreholt, Rooh Singh, Joseph William Delisle, Dan Lewis, TL, John Villwock, AzureBlack, Brad, Pedro Madruga, Caitlyn Gatomon, K, jinyuan sun, Mano Prime, Alex, Jeffrey Morgan, Alicia Loh, Illia Dulskyi, Chadd, transmissions 11, fincy, Rainer Wilmers, ReadyPlayerEmma, knownsqashed, Mandus, biorpg, Deo Leter, Brandon Phillips, SuperWojo, Sean Connelly, Iucharbius, Jack West, Harry Royden McLaughlin, Nicholas, terasurfer, Vitor Caleffi, Duane Dunston, Johann-Peter Hartmann, David Ziegler, Olakabola, Ken Nordquist, Trenton Dambrowitz, Tom X Nguyen, Vadim, Ajan Kanaga, Leonard Tan, Clay Pascal, Alexandros Triantafyllidis, JM33133, Xule, vamX, ya boyyy, subjectnull, Talal Aujan, Alps Aficionado, wassieverse, Ari Malik, James Bentley, Woland, Spencer Kim, Michael Dempsey, Fred von Graf, Elle, zynix, William Richards, Stanislav Ovsiannikov, Edmond Seymore, Jonathan Leane, Martin Kemka, usrbinkat, Enrico Ros
358
+
359
+
360
+ Thank you to all my generous patrons and donaters!
361
+
362
+ And thank you again to a16z for their generous grant.
363
+
364
+ <!-- footer end -->
365
+
366
+ # Original model card: Jan's Mistral 7B Instruct V0.2 DARE
367
+
368
+ <!-- header start -->
369
+ <!-- 200823 -->
370
+ <div style="width: auto; margin-left: auto; margin-right: auto">
371
+ <img src="https://github.com/janhq/jan/assets/89722390/35daac7d-b895-487c-a6ac-6663daaad78e" alt="Jan banner" style="width: 100%; min-width: 400px; display: block; margin: auto;">
372
+ </div>
373
+
374
+ <p align="center">
375
+ <a
376
+ href="https://jan.ai/">Jan</a>
377
+ - <a href="https://discord.gg/AsJ8krTT3N">Discord</a>
378
+ </p>
379
+ <!-- header end -->
380
+
381
+ # Model Description
382
+ This model uses the `DARE` method to merge [Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2) with 3 leading models in 12th Dec on [OpenLLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard):
383
+ 1. [OpenHermes-2.5-neural-chat-v3-3-Slerp](https://huggingface.co/Weyaxi/OpenHermes-2.5-neural-chat-v3-3-Slerp)
384
+ 2. [MetaMath-Cybertron-Starling](https://huggingface.co/Q-bert/MetaMath-Cybertron-Starling)
385
+ 3. [v1olet_marcoroni-go-bruins-merge-7B](https://huggingface.co/v1olet/v1olet_marcoroni-go-bruins-merge-7B)
386
+
387
+ - base model: [Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2)
388
+
389
+ The yaml config file for this model is here:
390
+
391
+ ```yaml
392
+ base_model: mistralai/Mistral-7B-Instruct-v0.2
393
+ dtype: bfloat16
394
+ merge_method: dare_ties
395
+ models:
396
+ - model: mistralai/Mistral-7B-Instruct-v0.2
397
+ - model: Weyaxi/OpenHermes-2.5-neural-chat-v3-3-Slerp
398
+ parameters:
399
+ density: 0.8
400
+ weight: 0.4
401
+ - model: Q-bert/MetaMath-Cybertron-Starling
402
+ parameters:
403
+ density: 0.8
404
+ weight: 0.3
405
+ - model: v1olet/v1olet_marcoroni-go-bruins-merge-7B
406
+ parameters:
407
+ density: 0.8
408
+ weight: 0.3
409
+ parameters:
410
+ int8_mask: true
411
+ ```
412
+
413
+ # Prompt template:
414
+
415
+ - **ChatML**
416
+
417
+ ```
418
+ <|im_start|>system
419
+ {system_message}<|im_end|>
420
+ <|im_start|>user
421
+ {prompt}<|im_end|>
422
+ <|im_start|>assistant
423
+ ```
424
+ - **Alpaca**
425
+ ```
426
+ {system_message}
427
+
428
+ ### Instruction:
429
+ {prompt}
430
+
431
+ ### Response:
432
+ ```
433
+
434
+ # Run this model
435
+
436
+ You can run this model using [Jan](https://jan.ai/) on Mac, Windows, or Linux.
437
+
438
+ **Jan is an open source, ChatGPT alternative that is:**
439
+
440
+ 💻 **100% offline on your machine**: Your conversations remain confidential, and visible only to you.
441
+
442
+ 🗂️ **An Open File Format**: Conversations and model settings stay on your computer and can be exported or deleted at any time.
443
+
444
+ 🌐 **OpenAI Compatible**: Local server on port `1337` with OpenAI compatible endpoints
445
+
446
+ 🌍 **Open Source & Free**: We build in public; check out our [Github](https://github.com/janhq)
447
+
448
+ - Please use the [trinity-v1-GGUF](https://huggingface.co/janhq/trinity-v1-GGUF) when using on Jan.
449
+
450
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/65713d70f56f9538679e5a56/r7VmEBLGXpPLTu2MImM7S.png)
451
+
452
+ # About Jan
453
+ Jan believes in the need for an open-source AI ecosystem and is building the infra and tooling to allow open-source AIs to compete on a level playing field with proprietary ones.
454
+
455
+ Jan's long-term vision is to build a cognitive framework for future robots, who are practical, useful assistants for humans and businesses in everyday life.
456
+
457
+ # Jan Model Merger
458
+ This is a test project for merging models.
459
+
460
+ # Open LLM Leaderboard Evaluation Results
461
+
462
+ Detailed results can be found here.
463
+
464
+ | Metric | Value |
465
+ |-----------------------|---------------------------|
466
+ | Avg. | ?|
467
+ | ARC (25-shot) | ? |
468
+ | HellaSwag (10-shot) | ? |
469
+ | MMLU (5-shot) | ?|
470
+ | TruthfulQA (0-shot) | ? |
471
+ | Winogrande (5-shot) | ? |
472
+ | GSM8K (5-shot) | ? |
473
+
474
+ # Acknowlegement
475
+ - [mergekit](https://github.com/cg123/mergekit)
476
+ - [DARE](https://github.com/yule-BUAA/MergeLM/blob/main/README.md)
477
+ - [SLERP](https://github.com/Digitous/LLM-SLERP-Merge)
478
+ - [lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness)