KYUNGYONG commited on
Commit
83fa42e
·
verified ·
1 Parent(s): 88e98d4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +51 -0
README.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - fr
5
+ - de
6
+ - es
7
+ - it
8
+ - pt
9
+ - zh
10
+ - ja
11
+ - ru
12
+ - ko
13
+ license: apache-2.0
14
+ library_name: vllm
15
+ inference: false
16
+ base_model: huihui-ai/Mistral-Small-24B-Instruct-2501-abliterated
17
+ extra_gated_description: If you want to learn more about how we process your personal
18
+ data, please read our <a href="https://mistral.ai/terms/">Privacy Policy</a>.
19
+ tags:
20
+ - abliterated
21
+ - uncensored
22
+ - transformers
23
+ - mlx
24
+ - mlx-my-repo
25
+ ---
26
+
27
+ # KYUNGYONG/Mistral-Small-24B-Instruct-2501-abliterated-4bit
28
+
29
+ The Model [KYUNGYONG/Mistral-Small-24B-Instruct-2501-abliterated-4bit](https://huggingface.co/KYUNGYONG/Mistral-Small-24B-Instruct-2501-abliterated-4bit) was converted to MLX format from [huihui-ai/Mistral-Small-24B-Instruct-2501-abliterated](https://huggingface.co/huihui-ai/Mistral-Small-24B-Instruct-2501-abliterated) using mlx-lm version **0.21.5**.
30
+
31
+ ## Use with mlx
32
+
33
+ ```bash
34
+ pip install mlx-lm
35
+ ```
36
+
37
+ ```python
38
+ from mlx_lm import load, generate
39
+
40
+ model, tokenizer = load("KYUNGYONG/Mistral-Small-24B-Instruct-2501-abliterated-4bit")
41
+
42
+ prompt="hello"
43
+
44
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
45
+ messages = [{"role": "user", "content": prompt}]
46
+ prompt = tokenizer.apply_chat_template(
47
+ messages, tokenize=False, add_generation_prompt=True
48
+ )
49
+
50
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
51
+ ```