---
title: CodeQwen1.5-7B-Chat-4bit
canonical_url: "https://www.modelscope.cn/models/QwenCollection/CodeQwen1.5-7B-Chat-4bit"
md_url: "https://www.modelscope.cn/models/QwenCollection/CodeQwen1.5-7B-Chat-4bit.md"
repository: QwenCollection/CodeQwen1.5-7B-Chat-4bit
last_updated: 2024-11-21
license: apache-2.0
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - qwen2
architectures:
  - Qwen2ForCausalLM
parameters: 1.5B
tensor_type:
  - U32
  - F16
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: 2221
stars: 0
tags:
  - mlx
---

# CodeQwen1.5-7B-Chat-4bit

> CodeQwen1.5-7B-Chat-4bit - QwenCollection 在 ModelScope 开源的模型。mlx-community/CodeQwen1.5-7B-Chat-4bit This model was converted to MLX format from Qwen/CodeQwen1.5-7B-Chat using mlx-lm version 0.9.0.

QwenCollection/CodeQwen1.5-7B-Chat-4bit 是 ModelScope 魔搭社区上的 1.5B 参数text-generation模型，采用 apache-2.0 许可，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: QwenCollection/CodeQwen1.5-7B-Chat-4bit
- **License**: apache-2.0
- **Tasks**: text-generation
- **Parameters**: 1.5B
- **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**: 2221
- **Stars**: 0
- **Last updated**: 2024-11-21

Source: https://www.modelscope.cn/models/QwenCollection/CodeQwen1.5-7B-Chat-4bit

---

# mlx-community/CodeQwen1.5-7B-Chat-4bit
This model was converted to MLX format from [`Qwen/CodeQwen1.5-7B-Chat`]() using mlx-lm version **0.9.0**.

Model added by [Prince Canuma](https://twitter.com/Prince_Canuma).

Refer to the [original model card](https://huggingface.co/Qwen/CodeQwen1.5-7B-Chat) 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/CodeQwen1.5-7B-Chat-4bit")
response = generate(model, tokenizer, prompt="hello", verbose=True)
```
