---
title: MediPhi-Instruct-bf16
canonical_url: "https://www.modelscope.cn/models/mlx-community/MediPhi-Instruct-bf16"
md_url: "https://www.modelscope.cn/models/mlx-community/MediPhi-Instruct-bf16.md"
repository: mlx-community/MediPhi-Instruct-bf16
last_updated: 2025-07-17
license: mit
pipeline_tag: text-generation
tasks:
  - text-generation
base_model:
  - microsoft/MediPhi-Instruct
base_model_relation: finetune
parameters: 3.8B
tensor_type:
  - BF16
library_name:
  - mlx
  - safetensors
  - pytorch
frameworks:
  - pytorch
language:
  - en
downloads: 209
stars: 0
tags:
  - merge
  - mergekit
  - medical
  - clinical
  - mlx
---

# MediPhi-Instruct-bf16

> MediPhi-Instruct-bf16 - mlx-community 在 ModelScope 开源的模型。mlx-community/MediPhi-Instruct-bf16

mlx-community/MediPhi-Instruct-bf16 是 ModelScope 魔搭社区上的 3.8B 参数text-generation模型，采用 mit 许可，基于 microsoft/MediPhi-Instruct 构建。

- **Repository**: mlx-community/MediPhi-Instruct-bf16
- **License**: mit
- **Tasks**: text-generation
- **Parameters**: 3.8B
- **Base model**: microsoft/MediPhi-Instruct
- **Tags**: merge, mergekit, medical, clinical, mlx
- **Downloads**: 209
- **Stars**: 0
- **Last updated**: 2025-07-17

Source: https://www.modelscope.cn/models/mlx-community/MediPhi-Instruct-bf16

---

# mlx-community/MediPhi-Instruct-bf16

This model [mlx-community/MediPhi-Instruct-bf16](https://huggingface.co/mlx-community/MediPhi-Instruct-bf16) was
converted to MLX format from [microsoft/MediPhi-Instruct](https://huggingface.co/microsoft/MediPhi-Instruct)
using mlx-lm version **0.25.3**.

## Use with mlx

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

```python
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/MediPhi-Instruct-bf16")

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