Downloads · 30 days
1.7K
2% of all-time downloads
nvidia/Llama-3.1-405B-Instruct-NVFP4
Llama-3.1-405B-Instruct-NVFP4 is a machine learning model from nvidia. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama3.1.
The NVIDIA Llama 3.1 405B Instruct FP4 model is the quantized version of the Meta's Llama 3.1 405B Instruct model, which is an auto-regressive language model that uses an optimized transformer architecture. For more i…
Downloads · 30 days
1.7K
2% of all-time downloads
All-time downloads
70.5K
Public
Parameters
230B
234 GB on disk
Likes
18
Trending 3
Click a slice to open those files.
.safetensors234 GB · 100%
How the weights are stored.
U8201B · 87%
From the Hugging Face model README
The NVIDIA Llama 3.1 405B Instruct FP4 model is the quantized version of the Meta's Llama 3.1 405B Instruct model, which is an auto-regressive language model that uses an optimized transformer architecture. For more information, please check here. The NVIDIA Llama 3.1 405B Instruct FP4 model is quantized with TensorRT Model Optimizer.
This model is ready for commercial/non-commercial use. <br>
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 Non-NVIDIA (Meta-Llama-3.1-405B-Instruct) Model Card.
Architecture Type: Transformers <br> Network Architecture: Llama3.1 <br>
Input Type(s): Text <br> Input Format(s): String <br> Input Parameters: 1D (One Dimensional): Sequences <br> Other Properties Related to Input: Context length up to 128K <br>
Output Type(s): Text <br> Output Format: String <br> Output Parameters: 1D (One Dimensional): Sequences <br> Other Properties Related to Output: N/A <br>
Supported Runtime Engine(s): <br>
Supported Hardware Microarchitecture Compatibility: <br>
Preferred Operating System(s): <br>
The model is quantized with nvidia-modelopt v0.23.0 <br>
Engine: Tensor(RT)-LLM <br> Test Hardware: B200 <br>
This model was obtained by quantizing the weights and activations of Meta-Llama-3.1-405B-Instruct to FP4 data type, ready for inference with TensorRT-LLM. Only the weights and activations of the linear operators within transformers blocks are quantized. This optimization reduces the number of bits per parameter from 16 to 4, reducing the disk size and GPU memory requirements by approximately 3.5x.
To deploy the quantized checkpoint with TensorRT-LLM LLM API, follow the sample codes below:
from tensorrt_llm import LLM, SamplingParams
def main():
prompts = [
"Hello, my name is",
"The president of the United States is",
"The capital of France is",
"The future of AI is",
]
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
llm = LLM(model="nvidia/Llama-3.1-405B-Instruct-FP4")
outputs = llm.generate(prompts, sampling_params)
# Print the outputs.
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
# The entry point of the program need to be protected for spawning processes.
if __name__ == '__main__':
main()
Please refer to the TensorRT-LLM llm-api documentation for more details.
The accuracy benchmark results are presented in the table below:
<table> <tr> <td><strong>Precision</strong> </td> <td><strong>MMLU</strong> </td> <td><strong>GSM8K_COT</strong> </td> <td><strong>ARC Challenge</strong> </td> <td><strong>IFEVAL</strong> </td> </tr> <tr> <td>BF16 </td> <td>87.3 </td> <td>96.8 </td> <td>96.9 </td> <td>88.6 </td> </tr> <tr> <td>FP4 </td> <td>87.2 </td> <td>96.1 </td> <td>96.6 </td> <td>89.5 </td> </tr> <tr> </table>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.