---
title: DeepHermes-3-Mistral-24B-Preview-4bit
canonical_url: "https://www.modelscope.cn/models/mlx-community/DeepHermes-3-Mistral-24B-Preview-4bit"
md_url: "https://www.modelscope.cn/models/mlx-community/DeepHermes-3-Mistral-24B-Preview-4bit.md"
repository: mlx-community/DeepHermes-3-Mistral-24B-Preview-4bit
last_updated: 2025-03-14
license: apache-2.0
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - mistral
architectures:
  - MistralForCausalLM
base_model:
  - NousResearch/DeepHermes-3-Mistral-24B-Preview
base_model_relation: quantized
parameters: 3.7B
tensor_type:
  - F16
  - U32
library_name:
  - mlx
  - safetensors
  - pytorch
frameworks:
  - pytorch
language:
  - en
inference_backends:
  - "deploy_task text/emb"
  - "lmdeploy 0.9.1"
  - "lmdeploy_turbomind 0.9.1"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 513
stars: 0
tags:
  - Mistral-Small
  - instruct
  - finetune
  - chatml
  - gpt4
  - "synthetic data"
  - distillation
  - "function calling"
  - "json mode"
  - axolotl
  - roleplaying
  - chat
  - reasoning
  - r1
  - vllm
  - mlx
---

# DeepHermes-3-Mistral-24B-Preview-4bit

> DeepHermes-3-Mistral-24B-Preview-4bit - mlx-community 在 ModelScope 开源的模型。mlx-community/DeepHermes-3-Mistral-24B-Preview-4bit

mlx-community/DeepHermes-3-Mistral-24B-Preview-4bit 是 ModelScope 魔搭社区上的 3.7B 参数text-generation模型，采用 apache-2.0 许可，基于 NousResearch/DeepHermes-3-Mistral-24B-Preview 构建，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: mlx-community/DeepHermes-3-Mistral-24B-Preview-4bit
- **License**: apache-2.0
- **Tasks**: text-generation
- **Parameters**: 3.7B
- **Base model**: NousResearch/DeepHermes-3-Mistral-24B-Preview
- **Inference backends**: deploy_task text/emb, lmdeploy 0.9.1, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Tags**: Mistral-Small, instruct, finetune, chatml, gpt4, synthetic data, distillation, function calling, json mode, axolotl, roleplaying, chat, reasoning, r1, vllm, mlx
- **Downloads**: 513
- **Stars**: 0
- **Last updated**: 2025-03-14

Source: https://www.modelscope.cn/models/mlx-community/DeepHermes-3-Mistral-24B-Preview-4bit

---

# mlx-community/DeepHermes-3-Mistral-24B-Preview-4bit

The Model [mlx-community/DeepHermes-3-Mistral-24B-Preview-4bit](https://huggingface.co/mlx-community/DeepHermes-3-Mistral-24B-Preview-4bit) was
converted to MLX format from [NousResearch/DeepHermes-3-Mistral-24B-Preview](https://huggingface.co/NousResearch/DeepHermes-3-Mistral-24B-Preview)
using mlx-lm version **0.21.1**.

## Use with mlx

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

```python
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/DeepHermes-3-Mistral-24B-Preview-4bit")

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