---
title: Llama-160M-Chat-v1-4bit-mlx
canonical_url: "https://www.modelscope.cn/models/mlx-community/Llama-160M-Chat-v1-4bit-mlx"
md_url: "https://www.modelscope.cn/models/mlx-community/Llama-160M-Chat-v1-4bit-mlx.md"
repository: mlx-community/Llama-160M-Chat-v1-4bit-mlx
last_updated: 2024-12-20
license: apache-2.0
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - llama
architectures:
  - LlamaForCausalLM
parameters: 46.1M
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: 992
stars: 0
tags:
  - text-generation
  - mlx
  - 4-bit
---

# Llama-160M-Chat-v1-4bit-mlx

> Llama-160M-Chat-v1-4bit-mlx - mlx-community 在 ModelScope 开源的模型。Llama-160M-Chat-v1-4bit-mlx This model was converted to MLX format from Felladrin/Llama-160M-Chat-v1. Refer to the original model card for more details on the model.

mlx-community/Llama-160M-Chat-v1-4bit-mlx 是 ModelScope 魔搭社区上的 46.1M 参数text-generation模型，采用 apache-2.0 许可，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: mlx-community/Llama-160M-Chat-v1-4bit-mlx
- **License**: apache-2.0
- **Tasks**: text-generation
- **Parameters**: 46.1M
- **Inference backends**: deploy_task text/emb, lmdeploy 0.9.1, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Tags**: text-generation, mlx, 4-bit
- **Downloads**: 992
- **Stars**: 0
- **Last updated**: 2024-12-20

Source: https://www.modelscope.cn/models/mlx-community/Llama-160M-Chat-v1-4bit-mlx

---

# Llama-160M-Chat-v1-4bit-mlx
This model was converted to MLX format from [`Felladrin/Llama-160M-Chat-v1`](https://huggingface.co/Felladrin/Llama-160M-Chat-v1).
Refer to the [original model card](https://huggingface.co/Felladrin/Llama-160M-Chat-v1) 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/Llama-160M-Chat-v1-4bit-mlx --prompt "<|im_start|>system\nYou are a helpful assistant who answers user's questions with details and curiosity.<|im_end|>\n<|im_start|>user\nWhat are some potential applications for quantum computing?<|im_end|>\n<|im_start|>assistant"
```
