KYUNGYONG commited on
Commit
2bc47f6
·
verified ·
1 Parent(s): 872aebb

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - ko
5
+ license: cc-by-nc-4.0
6
+ tags:
7
+ - dnotitia
8
+ - nlp
9
+ - llm
10
+ - slm
11
+ - conversation
12
+ - chat
13
+ - reasoning
14
+ - r1
15
+ - mlx
16
+ - mlx-my-repo
17
+ base_model: dnotitia/DNA-R1
18
+ library_name: transformers
19
+ pipeline_tag: text-generation
20
+ ---
21
+
22
+ # KYUNGYONG/DNA-R1-4bit
23
+
24
+ The Model [KYUNGYONG/DNA-R1-4bit](https://huggingface.co/KYUNGYONG/DNA-R1-4bit) was converted to MLX format from [dnotitia/DNA-R1](https://huggingface.co/dnotitia/DNA-R1) using mlx-lm version **0.21.5**.
25
+
26
+ ## Use with mlx
27
+
28
+ ```bash
29
+ pip install mlx-lm
30
+ ```
31
+
32
+ ```python
33
+ from mlx_lm import load, generate
34
+
35
+ model, tokenizer = load("KYUNGYONG/DNA-R1-4bit")
36
+
37
+ prompt="hello"
38
+
39
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
40
+ messages = [{"role": "user", "content": prompt}]
41
+ prompt = tokenizer.apply_chat_template(
42
+ messages, tokenize=False, add_generation_prompt=True
43
+ )
44
+
45
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
46
+ ```