---
title: Yi-6B-Chat-hf-4bit-mlx
canonical_url: "https://www.modelscope.cn/models/mlx-community/Yi-6B-Chat-hf-4bit-mlx"
md_url: "https://www.modelscope.cn/models/mlx-community/Yi-6B-Chat-hf-4bit-mlx.md"
repository: mlx-community/Yi-6B-Chat-hf-4bit-mlx
last_updated: 2024-12-19
license: other
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - llama
architectures:
  - LlamaForCausalLM
parameters: 1.2B
tensor_type:
  - U32
  - BF16
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: 1017
stars: 0
tags:
  - mlx
---

# Yi-6B-Chat-hf-4bit-mlx

> Yi-6B-Chat-hf-4bit-mlx - mlx-community 在 ModelScope 开源的模型。Yi-6B-Chat-hf-4bit-mlx This model was converted to MLX format from 01-ai/Yi-6B-Chat. Refer to the original model card for more details on the model. Use with mlx

mlx-community/Yi-6B-Chat-hf-4bit-mlx 是 ModelScope 魔搭社区上的 1.2B 参数text-generation模型，采用 other 许可，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: mlx-community/Yi-6B-Chat-hf-4bit-mlx
- **License**: other
- **Tasks**: text-generation
- **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**: mlx
- **Downloads**: 1017
- **Stars**: 0
- **Last updated**: 2024-12-19

Source: https://www.modelscope.cn/models/mlx-community/Yi-6B-Chat-hf-4bit-mlx

---

# Yi-6B-Chat-hf-4bit-mlx
This model was converted to MLX format from [`01-ai/Yi-6B-Chat`]().
Refer to the [original model card](https://huggingface.co/01-ai/Yi-6B-Chat) for more details on the model.
## Use with mlx
```bash
pip install mlx
git clone https://github.com/ml-explore/mlx-examples.git
cd mlx-examples/llms/hf_llm
python generate.py --model mlx-community/Yi-6B-Chat-hf-4bit-mlx --prompt "My name is"
```
