Wwayu commited on
Commit
630b665
·
verified ·
1 Parent(s): 3502fe1

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +55 -0
README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ license_link: https://huggingface.co/microsoft/phi-4/resolve/main/LICENSE
4
+ language:
5
+ - en
6
+ pipeline_tag: text-generation
7
+ tags:
8
+ - phi
9
+ - nlp
10
+ - math
11
+ - code
12
+ - chat
13
+ - conversational
14
+ - heretic
15
+ - uncensored
16
+ - decensored
17
+ - abliterated
18
+ - mlx
19
+ - mlx-my-repo
20
+ inference:
21
+ parameters:
22
+ temperature: 0
23
+ widget:
24
+ - messages:
25
+ - role: user
26
+ content: How should I explain the Internet?
27
+ library_name: transformers
28
+ base_model: p-e-w/phi-4-heretic
29
+ ---
30
+
31
+ # Wwayu/phi-4-heretic-mlx-8Bit
32
+
33
+ The Model [Wwayu/phi-4-heretic-mlx-8Bit](https://huggingface.co/Wwayu/phi-4-heretic-mlx-8Bit) was converted to MLX format from [p-e-w/phi-4-heretic](https://huggingface.co/p-e-w/phi-4-heretic) using mlx-lm version **0.28.3**.
34
+
35
+ ## Use with mlx
36
+
37
+ ```bash
38
+ pip install mlx-lm
39
+ ```
40
+
41
+ ```python
42
+ from mlx_lm import load, generate
43
+
44
+ model, tokenizer = load("Wwayu/phi-4-heretic-mlx-8Bit")
45
+
46
+ prompt="hello"
47
+
48
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
49
+ messages = [{"role": "user", "content": prompt}]
50
+ prompt = tokenizer.apply_chat_template(
51
+ messages, tokenize=False, add_generation_prompt=True
52
+ )
53
+
54
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
55
+ ```