初始化项目,由ModelHub XC社区提供模型
Model: sealad886/FuseO1-DeepSeekR1-Qwen2.5-Coder-7B-Preview-MLX Source: Original Platform
This commit is contained in:
39
README.md
Normal file
39
README.md
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
base_model: sealad886/FuseO1-DeepSeekR1-Qwen2.5-Coder-7B-Preview
|
||||
library_name: transformers
|
||||
tags:
|
||||
- mergekit
|
||||
- merge
|
||||
- mlx
|
||||
---
|
||||
> [!WARNING]
|
||||
> **Tinkering in progress!**
|
||||
>
|
||||
> This model is a work in progress and likely is not yet returning valid output.
|
||||
# sealad886/FuseO1-DeepSeekR1-Qwen2.5-Coder-7B-Preview-MLX
|
||||
|
||||
The Model [sealad886/FuseO1-DeepSeekR1-Qwen2.5-Coder-7B-Preview-MLX](https://huggingface.co/sealad886/FuseO1-DeepSeekR1-Qwen2.5-Coder-7B-Preview-MLX) was
|
||||
converted to MLX format from [sealad886/FuseO1-DeepSeekR1-Qwen2.5-Coder-7B-Preview](https://huggingface.co/sealad886/FuseO1-DeepSeekR1-Qwen2.5-Coder-7B-Preview)
|
||||
using mlx-lm version **0.22.0**.
|
||||
|
||||
## Use with mlx
|
||||
|
||||
```bash
|
||||
pip install mlx-lm
|
||||
```
|
||||
|
||||
```python
|
||||
from mlx_lm import load, generate
|
||||
|
||||
model, tokenizer = load("sealad886/FuseO1-DeepSeekR1-Qwen2.5-Coder-7B-Preview-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)
|
||||
```
|
||||
Reference in New Issue
Block a user