introvoyz041 commited on
Commit
a34cc8f
·
verified ·
1 Parent(s): 4b36c8e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +68 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags:
4
+ - translation
5
+ - mlx
6
+ - mlx-my-repo
7
+ license: gemma
8
+ language:
9
+ - ar
10
+ - bg
11
+ - zh
12
+ - cs
13
+ - da
14
+ - nl
15
+ - en
16
+ - fi
17
+ - fr
18
+ - de
19
+ - el
20
+ - gu
21
+ - he
22
+ - hi
23
+ - hu
24
+ - id
25
+ - it
26
+ - ja
27
+ - ko
28
+ - fa
29
+ - pl
30
+ - pt
31
+ - ro
32
+ - ru
33
+ - sk
34
+ - es
35
+ - sv
36
+ - tl
37
+ - th
38
+ - tr
39
+ - uk
40
+ - vi
41
+ base_model: yanolja/YanoljaNEXT-Rosetta-12B-2510
42
+ ---
43
+
44
+ # introvoyz041/YanoljaNEXT-Rosetta-12B-2510-mlx-4Bit
45
+
46
+ The Model [introvoyz041/YanoljaNEXT-Rosetta-12B-2510-mlx-4Bit](https://huggingface.co/introvoyz041/YanoljaNEXT-Rosetta-12B-2510-mlx-4Bit) was converted to MLX format from [yanolja/YanoljaNEXT-Rosetta-12B-2510](https://huggingface.co/yanolja/YanoljaNEXT-Rosetta-12B-2510) using mlx-lm version **0.28.3**.
47
+
48
+ ## Use with mlx
49
+
50
+ ```bash
51
+ pip install mlx-lm
52
+ ```
53
+
54
+ ```python
55
+ from mlx_lm import load, generate
56
+
57
+ model, tokenizer = load("introvoyz041/YanoljaNEXT-Rosetta-12B-2510-mlx-4Bit")
58
+
59
+ prompt="hello"
60
+
61
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
62
+ messages = [{"role": "user", "content": prompt}]
63
+ prompt = tokenizer.apply_chat_template(
64
+ messages, tokenize=False, add_generation_prompt=True
65
+ )
66
+
67
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
68
+ ```