rubenweg commited on
Commit
cf9d848
·
verified ·
1 Parent(s): 5f43db0

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +56 -0
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Unbabel/Tower-Plus-9B
3
+ license: cc-by-nc-sa-4.0
4
+ language:
5
+ - de
6
+ - nl
7
+ - is
8
+ - es
9
+ - fr
10
+ - pt
11
+ - uk
12
+ - hi
13
+ - zh
14
+ - ru
15
+ - cs
16
+ - ko
17
+ - ja
18
+ - it
19
+ - en
20
+ - da
21
+ - pl
22
+ - hu
23
+ - sv
24
+ - 'no'
25
+ - ro
26
+ - fi
27
+ library_name: transformers
28
+ tags:
29
+ - mlx
30
+ ---
31
+
32
+ # rubenweg/Tower-Plus-9B-mlx-4Bit
33
+
34
+ The Model [rubenweg/Tower-Plus-9B-mlx-4Bit](https://huggingface.co/rubenweg/Tower-Plus-9B-mlx-4Bit) was converted to MLX format from [Unbabel/Tower-Plus-9B](https://huggingface.co/Unbabel/Tower-Plus-9B) using mlx-lm version **0.28.3**.
35
+
36
+ ## Use with mlx
37
+
38
+ ```bash
39
+ pip install mlx-lm
40
+ ```
41
+
42
+ ```python
43
+ from mlx_lm import load, generate
44
+
45
+ model, tokenizer = load("rubenweg/Tower-Plus-9B-mlx-4Bit")
46
+
47
+ prompt="hello"
48
+
49
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
50
+ messages = [{"role": "user", "content": prompt}]
51
+ prompt = tokenizer.apply_chat_template(
52
+ messages, tokenize=False, add_generation_prompt=True
53
+ )
54
+
55
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
56
+ ```