introvoyz041 commited on
Commit
4ce4989
·
verified ·
1 Parent(s): e3dffe0

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +44 -0
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ language:
5
+ - en
6
+ - fr
7
+ - es
8
+ - it
9
+ - pt
10
+ - zh
11
+ - ar
12
+ - ru
13
+ tags:
14
+ - mlx
15
+ - mlx
16
+ - mlx-my-repo
17
+ base_model: lmstudio-community/SmolLM3-3B-MLX-8bit
18
+ ---
19
+
20
+ # introvoyz041/SmolLM3-3B-MLX-8bit-mlx-8Bit
21
+
22
+ The Model [introvoyz041/SmolLM3-3B-MLX-8bit-mlx-8Bit](https://huggingface.co/introvoyz041/SmolLM3-3B-MLX-8bit-mlx-8Bit) was converted to MLX format from [lmstudio-community/SmolLM3-3B-MLX-8bit](https://huggingface.co/lmstudio-community/SmolLM3-3B-MLX-8bit) using mlx-lm version **0.28.3**.
23
+
24
+ ## Use with mlx
25
+
26
+ ```bash
27
+ pip install mlx-lm
28
+ ```
29
+
30
+ ```python
31
+ from mlx_lm import load, generate
32
+
33
+ model, tokenizer = load("introvoyz041/SmolLM3-3B-MLX-8bit-mlx-8Bit")
34
+
35
+ prompt="hello"
36
+
37
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
38
+ messages = [{"role": "user", "content": prompt}]
39
+ prompt = tokenizer.apply_chat_template(
40
+ messages, tokenize=False, add_generation_prompt=True
41
+ )
42
+
43
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
44
+ ```