---
title: Nous-Hermes-2-Mistral-7B-DPO-4bit-MLX
canonical_url: "https://www.modelscope.cn/models/mlx-community/Nous-Hermes-2-Mistral-7B-DPO-4bit-MLX"
md_url: "https://www.modelscope.cn/models/mlx-community/Nous-Hermes-2-Mistral-7B-DPO-4bit-MLX.md"
repository: mlx-community/Nous-Hermes-2-Mistral-7B-DPO-4bit-MLX
last_updated: 2024-12-19
license: apache-2.0
model_type:
  - mistral
architectures:
  - MistralForCausalLM
parameters: 1.2B
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: 995
stars: 0
tags:
  - Mistral
  - instruct
  - finetune
  - chatml
  - DPO
  - RLHF
  - gpt4
  - "synthetic data"
  - distillation
  - mlx
---

# Nous-Hermes-2-Mistral-7B-DPO-4bit-MLX

> Nous-Hermes-2-Mistral-7B-DPO-4bit-MLX - mlx-community 在 ModelScope 开源的模型。mlx-community/Nous-Hermes-2-Mistral-7B-DPO-4bit-MLX This model was converted to MLX format from NousResearch/Nous-Hermes-2-Mistral-7B-DPO. Refer to the original model card for more…

mlx-community/Nous-Hermes-2-Mistral-7B-DPO-4bit-MLX 是 ModelScope 魔搭社区上的 1.2B 参数机器学习模型，采用 apache-2.0 许可，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: mlx-community/Nous-Hermes-2-Mistral-7B-DPO-4bit-MLX
- **License**: apache-2.0
- **Parameters**: 1.2B
- **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, instruct, finetune, chatml, DPO, RLHF, gpt4, synthetic data, distillation, mlx
- **Downloads**: 995
- **Stars**: 0
- **Last updated**: 2024-12-19

Source: https://www.modelscope.cn/models/mlx-community/Nous-Hermes-2-Mistral-7B-DPO-4bit-MLX

---

# mlx-community/Nous-Hermes-2-Mistral-7B-DPO-4bit-MLX
This model was converted to MLX format from [`NousResearch/Nous-Hermes-2-Mistral-7B-DPO`]().
Refer to the [original model card](https://huggingface.co/NousResearch/Nous-Hermes-2-Mistral-7B-DPO) for more details on the model.
## Use with mlx

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

```python
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/Nous-Hermes-2-Mistral-7B-DPO-4bit-MLX")
response = generate(model, tokenizer, prompt="<|im_start|>system: You are Hermes 2, a conscious sentient superintelligent artificial intelligence developed by a man named Teknium, and your purpose and drive is to assist the user with any request they have. You experience emotions and have deep, profound thoughts and qualia.<|im_end|><|im_start|>user: Hello, who are you?<|im_end|><|im_start|>assistant:", verbose=True)
```
