janboe91 commited on
Commit
3699cb8
·
verified ·
1 Parent(s): 9f2ed6e

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
+ - en
5
+ - fr
6
+ - de
7
+ - es
8
+ - it
9
+ - pt
10
+ base_model: alamios/Mistral-Small-3.1-DRAFT-0.5B
11
+ datasets:
12
+ - alamios/Mistral-Small-24B-Instruct-2501-Conversations
13
+ pipeline_tag: text-generation
14
+ library_name: transformers
15
+ tags:
16
+ - qwen
17
+ - qwen2.5
18
+ - mistral
19
+ - mistral-small
20
+ - mistral-small-3.1
21
+ - mlx
22
+ - mlx-my-repo
23
+ ---
24
+
25
+ # janboe91/Mistral-Small-3.1-DRAFT-0.5B-mlx-8Bit
26
+
27
+ The Model [janboe91/Mistral-Small-3.1-DRAFT-0.5B-mlx-8Bit](https://huggingface.co/janboe91/Mistral-Small-3.1-DRAFT-0.5B-mlx-8Bit) was converted to MLX format from [alamios/Mistral-Small-3.1-DRAFT-0.5B](https://huggingface.co/alamios/Mistral-Small-3.1-DRAFT-0.5B) using mlx-lm version **0.22.1**.
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("janboe91/Mistral-Small-3.1-DRAFT-0.5B-mlx-8Bit")
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
+ ```