Fmuaddib commited on
Commit
7cfd84a
·
verified ·
1 Parent(s): 9deb2c0

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
+ base_model: byroneverson/Yi-1.5-34B-Chat-abliterated
3
+ license: apache-2.0
4
+ pipeline_tag: text-generation
5
+ language:
6
+ - zh
7
+ - en
8
+ tags:
9
+ - llm
10
+ - long context
11
+ - yi
12
+ - chat
13
+ - it
14
+ - abliterated
15
+ - mlx
16
+ - mlx-my-repo
17
+ library_name: transformers
18
+ ---
19
+
20
+ # Fmuaddib/Yi-1.5-34B-Chat-abliterated-mlx-4Bit
21
+
22
+ The Model [Fmuaddib/Yi-1.5-34B-Chat-abliterated-mlx-4Bit](https://huggingface.co/Fmuaddib/Yi-1.5-34B-Chat-abliterated-mlx-4Bit) was converted to MLX format from [byroneverson/Yi-1.5-34B-Chat-abliterated](https://huggingface.co/byroneverson/Yi-1.5-34B-Chat-abliterated) using mlx-lm version **0.22.1**.
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("Fmuaddib/Yi-1.5-34B-Chat-abliterated-mlx-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
+ ```