初始化项目,由ModelHub XC社区提供模型
Model: mlx-community/Meta-Llama-3.1-8B-Instruct-abliterated-bfloat16 Source: Original Platform
This commit is contained in:
26
README.md
Normal file
26
README.md
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
base_model: meta-llama/Meta-Llama-3.1-8B-Instruct
|
||||
library_name: transformers
|
||||
license: llama3.1
|
||||
tags:
|
||||
- abliterated
|
||||
- uncensored
|
||||
- mlx
|
||||
---
|
||||
|
||||
# mlx-community/Meta-Llama-3.1-8B-Instruct-abliterated-bfloat16
|
||||
|
||||
The Model [mlx-community/Meta-Llama-3.1-8B-Instruct-abliterated-bfloat16](https://huggingface.co/mlx-community/Meta-Llama-3.1-8B-Instruct-abliterated-bfloat16) was converted to MLX format from [mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated](https://huggingface.co/mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated) using mlx-lm version **0.16.1**.
|
||||
|
||||
## Use with mlx
|
||||
|
||||
```bash
|
||||
pip install mlx-lm
|
||||
```
|
||||
|
||||
```python
|
||||
from mlx_lm import load, generate
|
||||
|
||||
model, tokenizer = load("mlx-community/Meta-Llama-3.1-8B-Instruct-abliterated-bfloat16")
|
||||
response = generate(model, tokenizer, prompt="hello", verbose=True)
|
||||
```
|
||||
Reference in New Issue
Block a user