Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
thumbnail: https://cdn-uploads.huggingface.co/production/uploads/67c10cfba43d7939d60160ff/uZgMD4PKMrZQ3oPjhb0gj.jpeg
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
license: apache-2.0
|
6 |
+
license_name: m
|
7 |
+
license_link: https://github.com/QwenLM/Qwen/blob/main/LICENSE
|
8 |
+
inference: false
|
9 |
+
tags:
|
10 |
+
- nsfw
|
11 |
+
- explicit
|
12 |
+
- roleplay
|
13 |
+
- unaligned
|
14 |
+
- dangerous
|
15 |
+
- mlx
|
16 |
+
- mlx-my-repo
|
17 |
+
base_model: Mawdistical/Lycanthropic-Thoughts-32B
|
18 |
+
---
|
19 |
+
|
20 |
+
# Cozmicalz/Lycanthropic-Thoughts-32B-mlx-2Bit
|
21 |
+
|
22 |
+
The Model [Cozmicalz/Lycanthropic-Thoughts-32B-mlx-2Bit](https://huggingface.co/Cozmicalz/Lycanthropic-Thoughts-32B-mlx-2Bit) was converted to MLX format from [Mawdistical/Lycanthropic-Thoughts-32B](https://huggingface.co/Mawdistical/Lycanthropic-Thoughts-32B) using mlx-lm version **0.22.3**.
|
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("Cozmicalz/Lycanthropic-Thoughts-32B-mlx-2Bit")
|
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 |
+
```
|