TomLucidor commited on
Commit
8d276af
·
verified ·
1 Parent(s): dcc3f6a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +38 -0
README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ base_model: inclusionAI/Ring-mini-sparse-2.0-exp
6
+ pipeline_tag: text-generation
7
+ library_name: transformers
8
+ tags:
9
+ - moe
10
+ - mlx
11
+ - mlx-my-repo
12
+ ---
13
+
14
+ # TomLucidor/Ring-mini-sparse-2.0-exp-mlx-8Bit
15
+
16
+ The Model [TomLucidor/Ring-mini-sparse-2.0-exp-mlx-8Bit](https://huggingface.co/TomLucidor/Ring-mini-sparse-2.0-exp-mlx-8Bit) was converted to MLX format from [inclusionAI/Ring-mini-sparse-2.0-exp](https://huggingface.co/inclusionAI/Ring-mini-sparse-2.0-exp) using mlx-lm version **0.29.1**.
17
+
18
+ ## Use with mlx
19
+
20
+ ```bash
21
+ pip install mlx-lm
22
+ ```
23
+
24
+ ```python
25
+ from mlx_lm import load, generate
26
+
27
+ model, tokenizer = load("TomLucidor/Ring-mini-sparse-2.0-exp-mlx-8Bit")
28
+
29
+ prompt="hello"
30
+
31
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
32
+ messages = [{"role": "user", "content": prompt}]
33
+ prompt = tokenizer.apply_chat_template(
34
+ messages, tokenize=False, add_generation_prompt=True
35
+ )
36
+
37
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
38
+ ```