67 lines
1.5 KiB
Markdown
67 lines
1.5 KiB
Markdown
|
|
---
|
||
|
|
base_model: Unbabel/Tower-Plus-2B
|
||
|
|
license: cc-by-nc-sa-4.0
|
||
|
|
language:
|
||
|
|
- de
|
||
|
|
- nl
|
||
|
|
- is
|
||
|
|
- es
|
||
|
|
- fr
|
||
|
|
- pt
|
||
|
|
- uk
|
||
|
|
- hi
|
||
|
|
- zh
|
||
|
|
- ru
|
||
|
|
- cs
|
||
|
|
- ko
|
||
|
|
- ja
|
||
|
|
- it
|
||
|
|
- en
|
||
|
|
- da
|
||
|
|
- pl
|
||
|
|
- hu
|
||
|
|
- sv
|
||
|
|
- 'no'
|
||
|
|
- ro
|
||
|
|
- fi
|
||
|
|
library_name: mlx
|
||
|
|
pipeline_tag: text-generation
|
||
|
|
tags:
|
||
|
|
- mlx
|
||
|
|
---
|
||
|
|
|
||
|
|
# ethicalabs/Tower-Plus-2B-mlx
|
||
|
|
|
||
|
|
> [!WARNING]
|
||
|
|
> This repository contains experimental models designed strictly for academic evaluation and research purposes.
|
||
|
|
>
|
||
|
|
> Critical Constraints:
|
||
|
|
> * **No Production Deployment:** Experimental models must not be deployed in commercial, enterprise, or mission-critical environments under any circumstances.
|
||
|
|
> * **No Liability:** Experimental models are provided "as-is" without warranties of any kind. The developers assume zero liability for downstream consequences, system integration failures, or regulatory non-compliance resulting from unauthorized deployment.
|
||
|
|
|
||
|
|
This model [ethicalabs/Tower-Plus-2B-mlx](https://huggingface.co/ethicalabs/Tower-Plus-2B-mlx) was
|
||
|
|
converted to MLX format from [Unbabel/Tower-Plus-2B](https://huggingface.co/Unbabel/Tower-Plus-2B)
|
||
|
|
using mlx-lm version **0.28.3**.
|
||
|
|
|
||
|
|
## Use with mlx
|
||
|
|
|
||
|
|
```bash
|
||
|
|
pip install mlx-lm
|
||
|
|
```
|
||
|
|
|
||
|
|
```python
|
||
|
|
from mlx_lm import load, generate
|
||
|
|
|
||
|
|
model, tokenizer = load("ethicalabs/Tower-Plus-2B-mlx")
|
||
|
|
|
||
|
|
prompt = "hello"
|
||
|
|
|
||
|
|
if tokenizer.chat_template is not None:
|
||
|
|
messages = [{"role": "user", "content": prompt}]
|
||
|
|
prompt = tokenizer.apply_chat_template(
|
||
|
|
messages, add_generation_prompt=True
|
||
|
|
)
|
||
|
|
|
||
|
|
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
||
|
|
```
|