File size: 4,985 Bytes
2ee2442 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
---
license: other
license_name: nvidia-open-model-license
license_link: >-
https://developer.download.nvidia.com/licenses/nvidia-open-model-license-agreement-june-2024.pdf
base_model:
- meta-llama/Llama-3.2-3B-Instruct
---
# Meta Llama 3.2 3B Instruct ONNX INT4
### Model Developer: Meta
### Model Description
The NVIDIA Llama 3.2 3B Instruct ONNX INT4 model is the quantized version of the Meta Llama-3.2-3B-Instruct model, which is an auto-regressive language model that uses an optimized transformer architecture. For more information, please check [here](https://huggingface.co/meta-llama/Llama-3.2-3B). The NVIDIA Llama 3.2 3B Instruct ONNX INT4 model is quantized with [TensorRT Model Optimizer](https://github.com/NVIDIA/TensorRT-Model-Optimizer).
This model is ready for commercial and research use case.
Steps followed to generate this quantized model:
* 1. Download Meta Llama-3.2-3B-Instruct model in Pytorch bfloat16 format from HuggingFace.
* 2. Convert PyTorch model to ONNX FP16 using onnxruntime-genai model builder.
* 3. Quantize Llama-3.2-3B-Instruct ONNX FP16 model to Llama-3.2-3B ONNX INT4 AWQ model using TensorRT Model Optimizer – Windows.
### Third-Party Community Consideration
This model is not owned or developed by NVIDIA. This model has been developed and built to a third-party’s requirements for this application and use case; see link to the Non-NVIDIA [Meta-Llama-3.2-3B-Instruct Model Card](https://huggingface.co/meta-llama/Llama-3.2-3B).
### License/Terms of Use:
GOVERNING TERMS: Use of this model is governed by the NVIDIA Open Model License Agreement (found at https://developer.download.nvidia.com/licenses/nvidia-open-model-license-agreement-june-2024.pdf). ADDITIONAL INFORMATION: Llama 3.2 Community License Agreement (found at https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE). Built with Llama [Acceptable Use Policy](https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/USE_POLICY.md)
### Reference:
[The Llama 3 Herd of Models](https://ai.meta.com/research/publications/the-llama-3-herd-of-models/)
[Llama 3.2 Model Card](https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/MODEL_CARD.md)
### Model Architecture:
Llama 3.2 is an auto-regressive language model that uses an optimized transformer architecture. The tuned versions use supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF) to align with human preferences for helpfulness and safety.
**Architecture Type:** Transformer <br>
**Network Architecture:** Llama 3.2 <br>
**Input**
* Input Type: Text
* Input Format: String
* Input Parameters: Sequence (1D)
* Other Properties Related to Input: Supports English, German, French, Italian, Portuguese, Hindi, Spanish, and Thai
**Output**
* Output Type: Text
* Output Format: String
* Output Parameters: Sequence (1D)
## Software Integration:
* **Supported Hardware Microarchitecture Compatibility :** Nvidia Ampere and newer GPUs. 6GB or higher VRAM GPUs are recommended. Higher VRAM may be required for larger context length use cases.
* **Supported Operating System(s):** Windows
## Model Version(s): 1.0
## Training, Testing, and Evaluation Datasets:
Refer to [Meta-Llama-3.2-3B-Instruct Model Card](https://huggingface.co/meta-llama/Llama-3.2-3B) for the details.
### Calibration Dataset: cnn_daily mail used for calibration.
Link: https://huggingface.co/datasets/abisee/cnn_dailymail
* Data Collection Method by dataset: Automated
* Labeling Method by dataset: [Unknown]
### Evaluation Dataset:
Link: https://people.eecs.berkeley.edu/~hendrycks/data.tar
* Data Collection Method by dataset - Unknown
* Labeling Method by dataset - Not Applicable
## Evaluation Results:
**MMLU (5# shots):**
With GenAI ORT->DML backend, we got below mentioned accuracy numbers on a desktop RTX 4090 GPU system.
"overall_accuracy": 57.71
**Test configuration:**
* **GPU:** RTX 4090, RTX 3090
* **Windows 11:** 23H2
* **NVIDIA Graphics driver:** R565 or higher
## Inference:
Inference Backend: [Onnxruntime-GenAI-DirectML](https://onnxruntime.ai/docs/genai/howto/install.html#directml)
We used GenAI ORT->DML backend for inference. The instructions to use this backend are given in readme.txt file available under Files section.
## Ethical Considerations:
NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.
Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/). |