---
title: RakutenAI-7B-instruct-MLX-4bit
canonical_url: "https://www.modelscope.cn/models/mlx-community/RakutenAI-7B-instruct-MLX-4bit"
md_url: "https://www.modelscope.cn/models/mlx-community/RakutenAI-7B-instruct-MLX-4bit.md"
repository: mlx-community/RakutenAI-7B-instruct-MLX-4bit
last_updated: 2026-03-20
license: apache-2.0
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - mistral
architectures:
  - MistralForCausalLM
base_model:
  - Rakuten/RakutenAI-7B-instruct
base_model_relation: quantized
parameters: 1.2B
tensor_type:
  - U32
  - BF16
library_name:
  - mlx
  - safetensors
  - pytorch
frameworks:
  - pytorch
language:
  - en
  - ja
inference_backends:
  - "deploy_task text/emb"
  - "lmdeploy 0.9.1"
  - "lmdeploy_turbomind 0.9.1"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 8
stars: 0
tags:
  - mlx
---

# RakutenAI-7B-instruct-MLX-4bit

> RakutenAI-7B-instruct-MLX-4bit - mlx-community 在 ModelScope 开源的模型。This model was converted to MLX format from Rakuten/RakutenAI-7B-instruct using mlx-lm version 0.31.0. Refer to the original model card for more details on the model.

mlx-community/RakutenAI-7B-instruct-MLX-4bit 是 ModelScope 魔搭社区上的 1.2B 参数text-generation模型，采用 apache-2.0 许可，基于 Rakuten/RakutenAI-7B-instruct 构建，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: mlx-community/RakutenAI-7B-instruct-MLX-4bit
- **License**: apache-2.0
- **Tasks**: text-generation
- **Parameters**: 1.2B
- **Base model**: Rakuten/RakutenAI-7B-instruct
- **Inference backends**: deploy_task text/emb, lmdeploy 0.9.1, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Tags**: mlx
- **Downloads**: 8
- **Stars**: 0
- **Last updated**: 2026-03-20

Source: https://www.modelscope.cn/models/mlx-community/RakutenAI-7B-instruct-MLX-4bit

---

This model was converted to MLX format from [`Rakuten/RakutenAI-7B-instruct`](https://huggingface.co/Rakuten/RakutenAI-7B-instruct) using mlx-lm version **0.31.0**.
Refer to the [original model card](https://huggingface.co/Rakuten/RakutenAI-7B-instruct) 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/RakutenAI-7B-instruct-MLX-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)
```

```
Inference: M3 Ultra
==========
,world!

概要

前作「君の瞳に恋してる」から約1年3ヶ月ぶりのリリースとなるシングル。
表題曲「hello,world!」は、テレビアニメ『魔法科高校の劣等生』のオープニングテーマに起用された。
販売形態は初回限定盤（LACM-34104）と通常盤（LACM-14104）の2種リリースで、初回限定盤には表題曲のPVを収録したDVDが同梱されている。

チャート成績

2014年11月17日付のオリコン週間シングルチャートで10位を獲得。同チャートにおけるトップ10入りは、前作「君の瞳に恋してる」から4作連続、通算5作目となった。初動売上は約1.1万枚を記録し、前作から約0.2万枚減少した。
2014年11月17日付のBillboard JAPAN Hot 100で10位を獲得。同チャートにおけるトップ10入りは、前作「君の瞳に恋してる」から4作連続、通算5作目となった。
==========
Prompt: 3 tokens, 37.730 tokens-per-sec
Generation: 256 tokens, 128.505 tokens-per-sec
Peak memory: 4.255 GB
```
