bradyclarke commited on
Commit
f69446b
·
verified ·
1 Parent(s): 78c6958

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +47 -0
README.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mpl-2.0
3
+ library_name: transformers
4
+ tags:
5
+ - gemma-3
6
+ - synthetic-data
7
+ - textbooks
8
+ - distillation
9
+ - utility
10
+ - summarization
11
+ - lightning
12
+ - conversational
13
+ - mlx
14
+ - mlx-my-repo
15
+ base_model: TitleOS/Spark-270M-FP16
16
+ datasets:
17
+ - TitleOS/Spark-Lightning-Synthetic-Textbooks
18
+ language:
19
+ - en
20
+ pipeline_tag: text-generation
21
+ ---
22
+
23
+ # bradyclarke/Spark-270M-FP16-mlx-5Bit
24
+
25
+ The Model [bradyclarke/Spark-270M-FP16-mlx-5Bit](https://huggingface.co/bradyclarke/Spark-270M-FP16-mlx-5Bit) was converted to MLX format from [TitleOS/Spark-270M-FP16](https://huggingface.co/TitleOS/Spark-270M-FP16) using mlx-lm version **0.29.1**.
26
+
27
+ ## Use with mlx
28
+
29
+ ```bash
30
+ pip install mlx-lm
31
+ ```
32
+
33
+ ```python
34
+ from mlx_lm import load, generate
35
+
36
+ model, tokenizer = load("bradyclarke/Spark-270M-FP16-mlx-5Bit")
37
+
38
+ prompt="hello"
39
+
40
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
41
+ messages = [{"role": "user", "content": prompt}]
42
+ prompt = tokenizer.apply_chat_template(
43
+ messages, tokenize=False, add_generation_prompt=True
44
+ )
45
+
46
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
47
+ ```