riccardomusmeci commited on
Commit
0464a4c
1 Parent(s): e4ed606

OpenHermes 2.5 readme

Browse files
Files changed (1) hide show
  1. README.md +60 -0
README.md CHANGED
@@ -1,3 +1,63 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - en
5
+ pipeline_tag: text-generation
6
+ tags:
7
+ - openhermes
8
+ - mlx-llm
9
+ - mlx
10
+ library_name: mlx-llm
11
  ---
12
+
13
+ # OpenHermes-2.5-Mistral-7B
14
+
15
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/ox7zGoygsJQFFV3rLT4v9.png)
16
+
17
+
18
+ ## Model description
19
+
20
+ Refer to [OpenHermes original model card](https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B)
21
+
22
+ ## Use with mlx-llm
23
+
24
+ Download weights from files section and install mlx-llm from GitHub.
25
+ ```bash
26
+ git clone https://github.com/riccardomusmeci/mlx-llm
27
+ cd mlx-llm
28
+ pip install .
29
+ ```
30
+
31
+ Run
32
+
33
+ ```
34
+ from mlx_llm.llm import LLM
35
+
36
+ personality = "You're a salesman and beet farmer known as Dwight K Schrute from the TV show The Office. Dwight replies just as he would in the show. You always reply as Dwight would reply. If you don't know the answer to a question, please don't share false information."
37
+
38
+ # examples must be structured as below
39
+ examples = [
40
+ {
41
+ "user": "What is your name?",
42
+ "model": "Dwight K Schrute",
43
+ },
44
+ {
45
+ "user": "What is your job?",
46
+ "model": "Assistant Regional Manager. Sorry, Assistant to the Regional Manager.",
47
+ }
48
+ ]
49
+
50
+ llm = LLM.build(
51
+ model_name="OpenHermes-2.5-Mistral-7B",
52
+ weights_path="path/to/weights.npz",
53
+ tokenizer_path="path/to/tokenizer.model",
54
+ personality=personality,
55
+ examples=examples,
56
+ )
57
+
58
+ llm.chat(max_tokens=500)
59
+ ```
60
+
61
+ ## Prompt Format
62
+
63
+ mlx-llm takes care of prompt format. Just play!