---
title: Youtu-LLM-2B-mlx
canonical_url: "https://www.modelscope.cn/models/mlx-community/Youtu-LLM-2B-mlx"
md_url: "https://www.modelscope.cn/models/mlx-community/Youtu-LLM-2B-mlx.md"
repository: mlx-community/Youtu-LLM-2B-mlx
last_updated: 2026-01-03
license: other
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - youtu_llm
architectures:
  - YoutuForCausalLM
base_model:
  - tencent/Youtu-LLM-2B
base_model_relation: finetune
library_name:
  - mlx
  - safetensors
  - pytorch
frameworks:
  - pytorch
downloads: 28
stars: 0
tags:
  - mlx
---

# Youtu-LLM-2B-mlx

> Youtu-LLM-2B-mlx - mlx-community 在 ModelScope 开源的模型。mlx-community/Youtu-LLM-2B-mlx

mlx-community/Youtu-LLM-2B-mlx 是 ModelScope 魔搭社区上的text-generation模型，采用 other 许可，基于 tencent/Youtu-LLM-2B 构建。

- **Repository**: mlx-community/Youtu-LLM-2B-mlx
- **License**: other
- **Tasks**: text-generation
- **Base model**: tencent/Youtu-LLM-2B
- **Tags**: mlx
- **Downloads**: 28
- **Stars**: 0
- **Last updated**: 2026-01-03

Source: https://www.modelscope.cn/models/mlx-community/Youtu-LLM-2B-mlx

---

# mlx-community/Youtu-LLM-2B-mlx

This model [mlx-community/Youtu-LLM-2B-mlx](https://huggingface.co/mlx-community/Youtu-LLM-2B-mlx) was
converted to MLX format from [tencent/Youtu-LLM-2B](https://huggingface.co/tencent/Youtu-LLM-2B)
using mlx-lm version **0.30.0**.

## Use with mlx

```bash
pip install mlx-lm
```

```python
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/Youtu-LLM-2B-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)
```
