Eldadalbajob commited on
Commit
3ad1ebd
·
verified ·
1 Parent(s): eed7f7b

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
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - trl
7
+ - sft
8
+ - abliterated
9
+ - uncensored
10
+ - mlx
11
+ - mlx-my-repo
12
+ base_model: huihui-ai/Huihui-Jan-v1-4B-abliterated
13
+ pipeline_tag: text-generation
14
+ library_name: transformers
15
+ ---
16
+
17
+ # Eldadalbajob/Huihui-Jan-v1-4B-abliterated-mlx-fp16
18
+
19
+ The Model [Eldadalbajob/Huihui-Jan-v1-4B-abliterated-mlx-fp16](https://huggingface.co/Eldadalbajob/Huihui-Jan-v1-4B-abliterated-mlx-fp16) was converted to MLX format from [huihui-ai/Huihui-Jan-v1-4B-abliterated](https://huggingface.co/huihui-ai/Huihui-Jan-v1-4B-abliterated) using mlx-lm version **0.26.4**.
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("Eldadalbajob/Huihui-Jan-v1-4B-abliterated-mlx-fp16")
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
+ ```