Eldadalbajob commited on
Commit
04b07cc
·
verified ·
1 Parent(s): 9477c28

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +36 -0
README.md ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: huihui-ai/Huihui-Hunyuan-MT-Chimera-7B-abliterated
3
+ library_name: transformers
4
+ tags:
5
+ - translation
6
+ - abliterated
7
+ - uncensored
8
+ - mlx
9
+ - mlx-my-repo
10
+ ---
11
+
12
+ # Eldadalbajob/Huihui-Hunyuan-MT-Chimera-7B-abliterated-mlx-fp16
13
+
14
+ The Model [Eldadalbajob/Huihui-Hunyuan-MT-Chimera-7B-abliterated-mlx-fp16](https://huggingface.co/Eldadalbajob/Huihui-Hunyuan-MT-Chimera-7B-abliterated-mlx-fp16) was converted to MLX format from [huihui-ai/Huihui-Hunyuan-MT-Chimera-7B-abliterated](https://huggingface.co/huihui-ai/Huihui-Hunyuan-MT-Chimera-7B-abliterated) using mlx-lm version **0.26.4**.
15
+
16
+ ## Use with mlx
17
+
18
+ ```bash
19
+ pip install mlx-lm
20
+ ```
21
+
22
+ ```python
23
+ from mlx_lm import load, generate
24
+
25
+ model, tokenizer = load("Eldadalbajob/Huihui-Hunyuan-MT-Chimera-7B-abliterated-mlx-fp16")
26
+
27
+ prompt="hello"
28
+
29
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
30
+ messages = [{"role": "user", "content": prompt}]
31
+ prompt = tokenizer.apply_chat_template(
32
+ messages, tokenize=False, add_generation_prompt=True
33
+ )
34
+
35
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
36
+ ```