初始化项目,由ModelHub XC社区提供模型

Model: mlx-community/reader-lm-0.5b
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-09-10 09:20:13 +08:00
commit cb2d68a13b
12 changed files with 151865 additions and 0 deletions

39
README.md Normal file
View File

@@ -0,0 +1,39 @@
---
pipeline_tag: text-generation
language:
- multilingual
inference: false
license: cc-by-nc-4.0
library_name: transformers
tags:
- mlx
base_model: jinaai/reader-lm-0.5b
---
# mlx-community/reader-lm-0.5b
The Model [mlx-community/reader-lm-0.5b](https://huggingface.co/mlx-community/reader-lm-0.5b) was
converted to MLX format from [jinaai/reader-lm-0.5b](https://huggingface.co/jinaai/reader-lm-0.5b)
using mlx-lm version **0.21.0**.
## Use with mlx
```bash
pip install mlx-lm
```
```python
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/reader-lm-0.5b")
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)
```