初始化项目,由ModelHub XC社区提供模型
Model: alexgusevski/L3.2-Rogue-Creative-Instruct-Uncensored-Abliterated-7B-mlx Source: Original Platform
This commit is contained in:
37
README.md
Normal file
37
README.md
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
library_name: mlx
|
||||
tags:
|
||||
- mergekit
|
||||
- merge
|
||||
- mlx
|
||||
base_model: DavidAU/L3.2-Rogue-Creative-Instruct-Uncensored-Abliterated-7B
|
||||
pipeline_tag: text-generation
|
||||
---
|
||||
|
||||
# alexgusevski/L3.2-Rogue-Creative-Instruct-Uncensored-Abliterated-7B-mlx
|
||||
|
||||
This model [alexgusevski/L3.2-Rogue-Creative-Instruct-Uncensored-Abliterated-7B-mlx](https://huggingface.co/alexgusevski/L3.2-Rogue-Creative-Instruct-Uncensored-Abliterated-7B-mlx) was
|
||||
converted to MLX format from [DavidAU/L3.2-Rogue-Creative-Instruct-Uncensored-Abliterated-7B](https://huggingface.co/DavidAU/L3.2-Rogue-Creative-Instruct-Uncensored-Abliterated-7B)
|
||||
using mlx-lm version **0.30.2**.
|
||||
|
||||
## Use with mlx
|
||||
|
||||
```bash
|
||||
pip install mlx-lm
|
||||
```
|
||||
|
||||
```python
|
||||
from mlx_lm import load, generate
|
||||
|
||||
model, tokenizer = load("alexgusevski/L3.2-Rogue-Creative-Instruct-Uncensored-Abliterated-7B-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, return_dict=False,
|
||||
)
|
||||
|
||||
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
||||
```
|
||||
Reference in New Issue
Block a user