52 lines
1.1 KiB
Markdown
52 lines
1.1 KiB
Markdown
|
|
---
|
|||
|
|
frameworks:
|
|||
|
|
- 其他
|
|||
|
|
license: Apache License 2.0
|
|||
|
|
tasks:
|
|||
|
|
- text-generation
|
|||
|
|
---
|
|||
|
|
###### 模型文件和权重,请浏览“模型文件”页面获取。
|
|||
|
|
###### 您可以通过如下git clone命令,或者ModelScope SDK来下载模型。
|
|||
|
|
###### Clone with HTTP
|
|||
|
|
```
|
|||
|
|
git clone https://www.modelscope.cn/davideuler/Magicoder-S-DS-6.7B-MLX.git
|
|||
|
|
```
|
|||
|
|
=======
|
|||
|
|
license: other
|
|||
|
|
library_name: transformers
|
|||
|
|
tags:
|
|||
|
|
- mlx
|
|||
|
|
datasets:
|
|||
|
|
- ise-uiuc/Magicoder-OSS-Instruct-75K
|
|||
|
|
- ise-uiuc/Magicoder-Evol-Instruct-110K
|
|||
|
|
license_name: deepseek
|
|||
|
|
pipeline_tag: text-generation
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
# mlx-community/Magicoder-S-DS-6.7B-MLX
|
|||
|
|
This model was converted to MLX format from [`ise-uiuc/Magicoder-S-DS-6.7B`]().
|
|||
|
|
Refer to the [original model card](https://huggingface.co/ise-uiuc/Magicoder-S-DS-6.7B) for more details on the model.
|
|||
|
|
## Use with mlx
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
pip install mlx-lm
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
Run the demo
|
|||
|
|
```
|
|||
|
|
python run.py
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
Run gradio demo
|
|||
|
|
```
|
|||
|
|
pip install gradio
|
|||
|
|
python server.py
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
```python
|
|||
|
|
from mlx_lm import load, generate
|
|||
|
|
|
|||
|
|
model, tokenizer = load("./")
|
|||
|
|
response = generate(model, tokenizer, prompt="hello", verbose=True)
|
|||
|
|
```
|