ssdataanalysis commited on
Commit
e3a11f3
·
verified ·
1 Parent(s): aa419cd

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +49 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - he
4
+ - en
5
+ license: apache-2.0
6
+ tags:
7
+ - mistral
8
+ - nemo
9
+ - hebrew
10
+ - llm
11
+ - text-generation
12
+ - instruction-tuned
13
+ - chat
14
+ - mlx
15
+ - mlx-my-repo
16
+ pipeline_tag: text-generation
17
+ base_model: SicariusSicariiStuff/Hebrew_Nemo
18
+ library_name: transformers
19
+ widget:
20
+ - text: Hebrew_Nemo
21
+ output:
22
+ url: https://huggingface.co/SicariusSicariiStuff/Hebrew_Nemo/resolve/main/Images/Hebrew_Nemo.png
23
+ ---
24
+
25
+ # ssdataanalysis/Hebrew_Nemo-mlx-8Bit
26
+
27
+ The Model [ssdataanalysis/Hebrew_Nemo-mlx-8Bit](https://huggingface.co/ssdataanalysis/Hebrew_Nemo-mlx-8Bit) was converted to MLX format from [SicariusSicariiStuff/Hebrew_Nemo](https://huggingface.co/SicariusSicariiStuff/Hebrew_Nemo) using mlx-lm version **0.29.1**.
28
+
29
+ ## Use with mlx
30
+
31
+ ```bash
32
+ pip install mlx-lm
33
+ ```
34
+
35
+ ```python
36
+ from mlx_lm import load, generate
37
+
38
+ model, tokenizer = load("ssdataanalysis/Hebrew_Nemo-mlx-8Bit")
39
+
40
+ prompt="hello"
41
+
42
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
43
+ messages = [{"role": "user", "content": prompt}]
44
+ prompt = tokenizer.apply_chat_template(
45
+ messages, tokenize=False, add_generation_prompt=True
46
+ )
47
+
48
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
49
+ ```