| 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 | |
| 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) | |
| ``` | |