Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
inference: false
|
| 3 |
+
library_name: transformers
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
- fr
|
| 7 |
+
- de
|
| 8 |
+
- es
|
| 9 |
+
- it
|
| 10 |
+
- pt
|
| 11 |
+
- ja
|
| 12 |
+
- ko
|
| 13 |
+
- zh
|
| 14 |
+
- ar
|
| 15 |
+
- el
|
| 16 |
+
- fa
|
| 17 |
+
- pl
|
| 18 |
+
- id
|
| 19 |
+
- cs
|
| 20 |
+
- he
|
| 21 |
+
- hi
|
| 22 |
+
- nl
|
| 23 |
+
- ro
|
| 24 |
+
- ru
|
| 25 |
+
- tr
|
| 26 |
+
- uk
|
| 27 |
+
- vi
|
| 28 |
+
license: cc-by-nc-4.0
|
| 29 |
+
extra_gated_prompt: By submitting this form, you agree to the [License Agreement](https://cohere.com/c4ai-cc-by-nc-license) and
|
| 30 |
+
acknowledge that the information you provide will be collected, used, and shared
|
| 31 |
+
in accordance with Cohere’s [Privacy Policy]( https://cohere.com/privacy). You’ll
|
| 32 |
+
receive email updates about C4AI and Cohere research, events, products and services.
|
| 33 |
+
You can unsubscribe at any time.
|
| 34 |
+
extra_gated_fields:
|
| 35 |
+
Name: text
|
| 36 |
+
Affiliation: text
|
| 37 |
+
Country: country
|
| 38 |
+
I agree to use this model for non-commercial use ONLY: checkbox
|
| 39 |
+
tags:
|
| 40 |
+
- abliterated
|
| 41 |
+
- uncensored
|
| 42 |
+
- mlx
|
| 43 |
+
- mlx-my-repo
|
| 44 |
+
base_model: huihui-ai/aya-expanse-32b-abliterated
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
# KYUNGYONG/aya-expanse-32b-abliterated-mlx-3Bit
|
| 48 |
+
|
| 49 |
+
The Model [KYUNGYONG/aya-expanse-32b-abliterated-mlx-3Bit](https://huggingface.co/KYUNGYONG/aya-expanse-32b-abliterated-mlx-3Bit) was converted to MLX format from [huihui-ai/aya-expanse-32b-abliterated](https://huggingface.co/huihui-ai/aya-expanse-32b-abliterated) using mlx-lm version **0.22.1**.
|
| 50 |
+
|
| 51 |
+
## Use with mlx
|
| 52 |
+
|
| 53 |
+
```bash
|
| 54 |
+
pip install mlx-lm
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
from mlx_lm import load, generate
|
| 59 |
+
|
| 60 |
+
model, tokenizer = load("KYUNGYONG/aya-expanse-32b-abliterated-mlx-3Bit")
|
| 61 |
+
|
| 62 |
+
prompt="hello"
|
| 63 |
+
|
| 64 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
| 65 |
+
messages = [{"role": "user", "content": prompt}]
|
| 66 |
+
prompt = tokenizer.apply_chat_template(
|
| 67 |
+
messages, tokenize=False, add_generation_prompt=True
|
| 68 |
+
)
|
| 69 |
+
|
| 70 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
| 71 |
+
```
|