---
title: DiscoLM_German_7b_v1-mlx
canonical_url: "https://www.modelscope.cn/models/mlx-community/DiscoLM_German_7b_v1-mlx"
md_url: "https://www.modelscope.cn/models/mlx-community/DiscoLM_German_7b_v1-mlx.md"
repository: mlx-community/DiscoLM_German_7b_v1-mlx
last_updated: 2025-03-04
license: apache-2.0
model_type:
  - mistral
architectures:
  - MistralForCausalLM
parameters: 7.2B
tensor_type:
  - F16
library_name:
  - mlx
  - safetensors
  - pytorch
frameworks:
  - pytorch
language:
  - de
  - 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: 551
stars: 0
tags:
  - Mistral
  - finetune
  - chatml
  - DPO
  - German
  - Deutsch
  - "synthetic data"
  - mlx
---

# DiscoLM_German_7b_v1-mlx

> DiscoLM_German_7b_v1-mlx - mlx-community 在 ModelScope 开源的模型。mlx-converted version of DiscoResearch/DiscoLMGerman7bv1 with convincing german capacities. Done mainly for ollama import, which was not possible with the base model (unless you pick a gguf)

mlx-community/DiscoLM_German_7b_v1-mlx 是 ModelScope 魔搭社区上的 7.2B 参数机器学习模型，采用 apache-2.0 许可，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: mlx-community/DiscoLM_German_7b_v1-mlx
- **License**: apache-2.0
- **Parameters**: 7.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, finetune, chatml, DPO, German, Deutsch, synthetic data, mlx
- **Downloads**: 551
- **Stars**: 0
- **Last updated**: 2025-03-04

Source: https://www.modelscope.cn/models/mlx-community/DiscoLM_German_7b_v1-mlx

---

# Purpose

mlx-converted version of [DiscoResearch/DiscoLM_German_7b_v1](https://huggingface.co/DiscoResearch/DiscoLM_German_7b_v1) with convincing german capacities. 
Done mainly for ollama import, which was not possible with the base model (unless you pick a gguf)

# mlx-community/DiscoLM_German_7b_v1-mlx

The Model [mlx-community/DiscoLM_German_7b_v1-mlx](https://huggingface.co/mlx-community/DiscoLM_German_7b_v1-mlx) was
converted to MLX format from [DiscoResearch/DiscoLM_German_7b_v1](https://huggingface.co/DiscoResearch/DiscoLM_German_7b_v1)
using mlx-lm version **0.21.4**.

## Use with mlx

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

```python
from mlx_lm import load, generate

model, tokenizer = load("jachermann/DiscoLM_German_7b_v1-mlx")

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