Intended Use Cases: Intended for commercial and research use in multiple languages. Similarly to
Llama-3.1-Nemotron-70B-Instruct-HF, this model is intended for chat between a user and AI assistant.
Out-of-scope: Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in languages other than English.
Quantized version of Llama-3.1-Nemotron-70B-Instruct-HF with the updated 8 KV-heads.
It achieves an average score of [TBD] on the OpenLLM benchmark (version 1), whereas the unquantized model achieves 86.79.
Quantized models are eco-friendly and cost-effective
FP8 quantized models require significantly less storage compared to traditional 32-bit (FP32) or even 16-bit (FP16) models.
This reduction can be seen in the total file size comparison, where the FP8 model set is nearly half the size of the higher-precision set.
This efficiency enables easier distribution, storage, and access to powerful AI models, even on devices with limited capacity.
Lower hardware requirements mean reduced costs for businesses and public institutions adopting AI solutions. Small businesses, startups, and government entities, which may lack extensive AI budgets, can leverage high-performance,
FP8 quantized models to solve problems with half the infrastructure cost.
Llama-3.1-Nemotron-70B-Instruct-HF is a large language model customized by NVIDIA to improve the helpfulness of LLM generated responses to user queries.
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.
As of Oct 24th, 2024 the model has Elo Score of 1267(+-7), rank 9 and style controlled rank of 26 on ChatBot Arena leaderboard.
See details at 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:
Let's count the "R"s in "Strawberry":
1. S
2. T
3. R
4. A
5. W
6. B
7. E
8. R
9. R
10. Y
There are **3** "R"s in the word "Strawberry".
Note: This model is a demonstration of our techniques for improving helpfulness in general-domain instruction following. It has not been tuned for performance in specialized domains such as math.
The model is designed for general-purpose instruction following and dialogue tasks
Optimized specifically for helpfulness in responses
Focuses on generating coherent, factually-correct, and customizable responses
Research and Development
Serves as a demonstration of NVIDIA's techniques for improving model helpfulness
Can be used by researchers studying instruction-following capabilities
Provides a benchmark for comparing alignment techniques
Subject to LLama 3.1 license terms and conditions
Must adhere to Meta's acceptable use policy and privacy policy
Maximum input of 128k tokens and output of 4k tokens
How to Get Started with the Model
Use the code below to get started with the model.
Use with vLLM
This model can be deployed efficiently using the vLLM backend, as shown in the example below.
python
1from vllm import LLM, SamplingParams
2from transformers import AutoTokenizer
34MODEL_ID ="mysticbeing/Llama-3.1-Nemotron-70B-Instruct-HF-FP8-DYNAMIC"5N_GPUS =86MAX_MODEL_LEN =40967MAX_TOKENS =102489sampling_params = SamplingParams(temperature=0.7, top_p=0.9, max_tokens=MAX_TOKENS)1011tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)1213messages =[14{"role":"system","content":"You are a helpful assistant."},15{"role":"user","content":"How many r in strawberry?"},16]1718prompts = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)1920llm = LLM(model=MODEL_ID, tensor_parallel_size=N_GPUS, max_model_len=MAX_MODEL_LEN)2122outputs = llm.generate(prompts, sampling_params)2324generated_text = outputs[0].outputs[0].text
25print(generated_text)
Let's count the "R"s in "Strawberry":
1. S
2. T
3. R
4. A
5. W
6. B
7. E
8. R
9. R
10. Y
There are **3** "R"s in the word "Strawberry".
vLLM also supports OpenAI-compatible serving. See the documentation for more details.
Out-of-Scope Use
Any use not complying with LLama 3.1 license
Applications violating Meta's acceptable use policy
Uses conflicting with Meta's privacy policy
Critical Safety Applications
Applications requiring high reliability or safety guarantees
Applications where errors could lead to harm or safety issues
Autonomous Decision Making
The model is designed to be helpful in responses, not to make independent decisions
Applications requiring autonomous action without human oversight