---
title: llama-3.1-nemotron-70b-instruct-hf-gptq-int3
canonical_url: "https://www.modelscope.cn/models/tclf90/llama-3.1-nemotron-70b-instruct-hf-gptq-int3"
md_url: "https://www.modelscope.cn/models/tclf90/llama-3.1-nemotron-70b-instruct-hf-gptq-int3.md"
repository: tclf90/llama-3.1-nemotron-70b-instruct-hf-gptq-int3
chinese_name: "Llama-3.1-Nemotron-70B-Instruct-HF-GPTQ-Int3-量化修复"
last_updated: 2024-10-18
license: llama3.1
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - llama
architectures:
  - LlamaForCausalLM
parameters: 9.1B
tensor_type:
  - I32
  - F16
library_name:
  - 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: 66
stars: 1
tags:
  - llama3.1
  - gptq
  - int3
  - "量化修复"
  - vLLM
  - sglang
---

# llama-3.1-nemotron-70b-instruct-hf-gptq-int3

> llama-3.1-nemotron-70b-instruct-hf-gptq-int3 - tclf90 在 ModelScope 开源的模型。Llama-3.1-Nemotron-70B-Instruct-HF-GPTQ-Int3-量化修复 HF原始模型 nvidia/Llama-3.1-Nemotron-70B-Instruct-HF

tclf90/llama-3.1-nemotron-70b-instruct-hf-gptq-int3 是 ModelScope 魔搭社区上的 9.1B 参数text-generation模型，采用 llama3.1 许可，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: tclf90/llama-3.1-nemotron-70b-instruct-hf-gptq-int3
- **License**: llama3.1
- **Tasks**: text-generation
- **Parameters**: 9.1B
- **Inference backends**: deploy_task text/emb, lmdeploy 0.9.1, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Tags**: llama3.1, gptq, int3, 量化修复, vLLM, sglang
- **Downloads**: 66
- **Stars**: 1
- **Last updated**: 2024-10-18

Source: https://www.modelscope.cn/models/tclf90/llama-3.1-nemotron-70b-instruct-hf-gptq-int3

---

# Llama-3.1-Nemotron-70B-Instruct-HF-GPTQ-Int3-量化修复
HF原始模型 [nvidia/Llama-3.1-Nemotron-70B-Instruct-HF](https://huggingface.co/nvidia/Llama-3.1-Nemotron-70B-Instruct-HF)


### 【模型更新日期】

注：通过`snapshot_download`函数传入`revision=...`来下载指定的`tag`版本

``` 
2024-10-19
1. add group 128 (tag g128)

2024-10-18
1. add group 32 (tag g32)
```

### 【模型列表】

| tag    | 文件大小   | 最近更新时间       |
|--------|--------|--------------|
| `g128`  | `30GB` | `2024-10-19` |
| `g32`  | `33GB` | `2024-10-18` |

```python
from modelscope import snapshot_download
snapshot_download('tclf90/llama-3.1-nemotron-70b-instruct-hf-gptq-int3', cache_dir="本地路径", revision='g128')
snapshot_download('tclf90/llama-3.1-nemotron-70b-instruct-hf-gptq-int3', cache_dir="本地路径", revision='g32')
```

### 【修复内容】

1. 对GPTQ量化的校准做了额外优化；减少模型的 `1.乱吐字`、`2.无限循环`、`3.长文能力丢失`等情况。
2. 有些推理框架的默认`top_k`与`top_p`较大，可以考虑减小对应数值，来获得更合理的模型输出。
3. 根据模型实际情况，可以支持1卡、2卡及4卡的`tensor-parallel-size`启动。


### 【介绍】
Llama-3.1-Nemotron-70B-Instruct is a large language model customized by NVIDIA to improve the helpfulness of LLM generated responses to user queries.


This model reaches [Arena Hard](https://github.com/lmarena/arena-hard-auto) of 85.0, [AlpacaEval 2 LC](https://tatsu-lab.github.io/alpaca_eval/) of 57.6 and [GPT-4-Turbo MT-Bench](https://github.com/lm-sys/FastChat/pull/3158) of 8.98, which are known to be predictive of [LMSys Chatbot Arena Elo](https://huggingface.co/spaces/lmsys/chatbot-arena-leaderboard)

As of 1 Oct 2024, this model is #1 on all three automatic alignment benchmarks (verified tab for AlpacaEval 2 LC), edging out strong frontier models such as GPT-4o and Claude 3.5 Sonnet.

This model was trained using RLHF (specifically, REINFORCE), [Llama-3.1-Nemotron-70B-Reward](https://huggingface.co/nvidia/Llama-3.1-Nemotron-70B-Reward) and [HelpSteer2-Preference prompts](https://huggingface.co/datasets/nvidia/HelpSteer2) on a Llama-3.1-70B-Instruct model as the initial policy.

Llama-3.1-Nemotron-70B-Instruct-HF has been converted from [Llama-3.1-Nemotron-70B-Instruct](https://huggingface.co/nvidia/Llama-3.1-Nemotron-70B-Instruct) to support it in the HuggingFace Transformers codebase. Please note that evaluation results might be slightly different from the [Llama-3.1-Nemotron-70B-Instruct](https://huggingface.co/nvidia/Llama-3.1-Nemotron-70B-Instruct) as evaluated in NeMo-Aligner, which the evaluation results below are based on.

Try hosted inference for free at [build.nvidia.com](https://build.nvidia.com/nvidia/llama-3_1-nemotron-70b-instruct) - it comes with an OpenAI-compatible API interface.


See details on our paper at [https://arxiv.org/abs/2410.01257](https://arxiv.org/abs/2410.01257) - as a preview, this model can correctly the question ```How many r in strawberry?``` without specialized prompting or additional reasoning tokens.


### 【模型下载】
```python
from modelscope import snapshot_download
snapshot_download('tclf90/模型名', cache_dir="本地路径", revision='...tag...')
```

### 【高并发RESTFul API推理】
方式1：[vllm](https://github.com/vllm-project/vllm)

方式2：[sglang](https://github.com/sgl-project/sglang)
