---
title: DeepSeek-R1-Distill-Llama-8B
canonical_url: "https://www.modelscope.cn/models/mlx-community/DeepSeek-R1-Distill-Llama-8B"
md_url: "https://www.modelscope.cn/models/mlx-community/DeepSeek-R1-Distill-Llama-8B.md"
repository: mlx-community/DeepSeek-R1-Distill-Llama-8B
last_updated: 2025-02-16
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - llama
architectures:
  - LlamaForCausalLM
base_model:
  - deepseek-ai/DeepSeek-R1-Distill-Llama-8B
base_model_relation: finetune
parameters: 8.0B
tensor_type:
  - F16
library_name:
  - mlx
  - safetensors
  - pytorch
frameworks:
  - pytorch
inference_backends:
  - "deploy_task text/emb"
  - "lmdeploy 0.9.1"
  - "lmdeploy_turbomind 0.9.1"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 622
stars: 0
tags:
  - mlx
---

# DeepSeek-R1-Distill-Llama-8B

> DeepSeek-R1-Distill-Llama-8B - mlx-community 在 ModelScope 开源的模型。mlx-community/DeepSeek-R1-Distill-Llama-8B

mlx-community/DeepSeek-R1-Distill-Llama-8B 是 ModelScope 魔搭社区上的 8.0B 参数text-generation模型，基于 deepseek-ai/DeepSeek-R1-Distill-Llama-8B 构建，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: mlx-community/DeepSeek-R1-Distill-Llama-8B
- **Tasks**: text-generation
- **Parameters**: 8.0B
- **Base model**: deepseek-ai/DeepSeek-R1-Distill-Llama-8B
- **Inference backends**: deploy_task text/emb, lmdeploy 0.9.1, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Tags**: mlx
- **Downloads**: 622
- **Stars**: 0
- **Last updated**: 2025-02-16

Source: https://www.modelscope.cn/models/mlx-community/DeepSeek-R1-Distill-Llama-8B

---

# mlx-community/DeepSeek-R1-Distill-Llama-8B

The Model [mlx-community/DeepSeek-R1-Distill-Llama-8B](https://huggingface.co/mlx-community/DeepSeek-R1-Distill-Llama-8B) was
converted to MLX format from [deepseek-ai/DeepSeek-R1-Distill-Llama-8B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Llama-8B)
using mlx-lm version **0.21.1** by [Focused](https://focused.io).

[![Focused Logo](https://focused.io/images/header-logo.svg "Focused Logo")](https://focused.io)

## Use with mlx

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

```python
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/DeepSeek-R1-Distill-Llama-8B")

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)
```

---

Focused is a technology company at the forefront of AI-driven development, empowering organizations to unlock the full potential of artificial intelligence. From integrating innovative models into existing systems to building scalable, modern AI infrastructures, we specialize in delivering tailored, incremental solutions that meet you where you are.
Curious how we can help with your AI next project?
[Get in Touch](https://focused.io/capabilities/ai-readiness-implementation)

[![Focused Logo](https://focused.io/images/header-logo.svg "Focused Logo")](https://focused.io)
