KYUNGYONG commited on
Commit
a2312b7
·
verified ·
1 Parent(s): 6f9ec34

Upload README.md with huggingface_hub

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