KYUNGYONG commited on
Commit
4e7eb6e
·
verified ·
1 Parent(s): c5d1485

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
+ 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
+ - mlx
14
+ - mlx-my-repo
15
+ base_model: dnotitia/Llama-DNA-1.0-8B-Instruct
16
+ library_name: transformers
17
+ pipeline_tag: text-generation
18
+ ---
19
+
20
+ # KYUNGYONG/Llama-DNA-1.0-8B-Instruct-4bit
21
+
22
+ The Model [KYUNGYONG/Llama-DNA-1.0-8B-Instruct-4bit](https://huggingface.co/KYUNGYONG/Llama-DNA-1.0-8B-Instruct-4bit) was converted to MLX format from [dnotitia/Llama-DNA-1.0-8B-Instruct](https://huggingface.co/dnotitia/Llama-DNA-1.0-8B-Instruct) using mlx-lm version **0.21.5**.
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("KYUNGYONG/Llama-DNA-1.0-8B-Instruct-4bit")
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
+ ```