nhe-ai commited on
Commit
bae29cb
·
verified ·
1 Parent(s): 4612bd0

Upload README.md with huggingface_hub

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