Ilebro commited on
Commit
1fcb658
·
verified ·
1 Parent(s): 943b316

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +49 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - nb
5
+ - nn
6
+ - 'no'
7
+ - se
8
+ - sv
9
+ - da
10
+ - en
11
+ - is
12
+ - fo
13
+ base_model: norallm/normistral-11b-warm
14
+ library_name: transformers
15
+ pipeline_tag: text-generation
16
+ tags:
17
+ - norwegian
18
+ - sami
19
+ - bokmaal
20
+ - nynorsk
21
+ - mlx
22
+ - mlx-my-repo
23
+ ---
24
+
25
+ # Ilebro/normistral-11b-warm-Q3-mlx
26
+
27
+ The Model [Ilebro/normistral-11b-warm-Q3-mlx](https://huggingface.co/Ilebro/normistral-11b-warm-Q3-mlx) was converted to MLX format from [norallm/normistral-11b-warm](https://huggingface.co/norallm/normistral-11b-warm) using mlx-lm version **0.20.5**.
28
+
29
+ ## Use with mlx
30
+
31
+ ```bash
32
+ pip install mlx-lm
33
+ ```
34
+
35
+ ```python
36
+ from mlx_lm import load, generate
37
+
38
+ model, tokenizer = load("Ilebro/normistral-11b-warm-Q3-mlx")
39
+
40
+ prompt="hello"
41
+
42
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
43
+ messages = [{"role": "user", "content": prompt}]
44
+ prompt = tokenizer.apply_chat_template(
45
+ messages, tokenize=False, add_generation_prompt=True
46
+ )
47
+
48
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
49
+ ```