---
title: MedFound-Llama3-8B-finetuned
canonical_url: "https://www.modelscope.cn/models/mlx-community/MedFound-Llama3-8B-finetuned"
md_url: "https://www.modelscope.cn/models/mlx-community/MedFound-Llama3-8B-finetuned.md"
repository: mlx-community/MedFound-Llama3-8B-finetuned
last_updated: 2025-01-30
license: afl-3.0
model_type:
  - llama
architectures:
  - LlamaForCausalLM
parameters: 1.3B
tensor_type:
  - F16
  - U32
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: 798
stars: 1
tags:
  - medical
  - mlx
---

# MedFound-Llama3-8B-finetuned

> MedFound-Llama3-8B-finetuned - mlx-community 在 ModelScope 开源的模型。mlx-community/MedFound-Llama3-8B-finetuned

mlx-community/MedFound-Llama3-8B-finetuned 是 ModelScope 魔搭社区上的 1.3B 参数机器学习模型，采用 afl-3.0 许可，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: mlx-community/MedFound-Llama3-8B-finetuned
- **License**: afl-3.0
- **Parameters**: 1.3B
- **Inference backends**: deploy_task text/emb, lmdeploy 0.9.1, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Tags**: medical, mlx
- **Downloads**: 798
- **Stars**: 1
- **Last updated**: 2025-01-30

Source: https://www.modelscope.cn/models/mlx-community/MedFound-Llama3-8B-finetuned

---

# mlx-community/MedFound-Llama3-8B-finetuned

The Model [mlx-community/MedFound-Llama3-8B-finetuned](https://huggingface.co/mlx-community/MedFound-Llama3-8B-finetuned) was
converted to MLX format from [medicalai/MedFound-Llama3-8B-finetuned](https://huggingface.co/medicalai/MedFound-Llama3-8B-finetuned)
using mlx-lm version **0.20.1**.

## Use with mlx

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

```python
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/MedFound-Llama3-8B-finetuned")

prompt="hello"

if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, tokenize=False, add_generation_prompt=True
    )

response = generate(model, tokenizer, prompt=prompt, verbose=True)
```
