Skip to content

Llama 3.3 Nemotron Super 49b ​

Overview ​

Llama-3.3-Nemotron-Super-49B-v1 is a large language model (LLM) which is a derivative of Meta Llama-3.3-70B-Instruct (AKA the reference model). It is a reasoning model that is post trained for reasoning, human chat preferences, and tasks, such as RAG and tool calling. The model supports a context length of 128K tokens.

Nemotron Super Benchmarks

Use Cases: Developers designing AI Agent systems, chatbots, RAG systems, and other AI-powered applications. Also suitable for typical instruction-following tasks. It is particularly effective for tasks that require reasoning, such as scientific reasoning, coding, math, and strategic planning.

Model Card: Llama 3.3 Nemotron Super 49b v1

Endpoints ​

1. Create Chat Completion ​

POST /v1/chat/completions

Description ​

Generates a reasoning response based on the input message.

Request Body ​

json
{
  "model": "nvidia/llama-3.3-nemotron-super-49b-v1",
  "messages": [
    {"role": "system", "content": "detailed thinking on"},
    {"role": "user", "content": "If a+|a|=0, try to prove that a<=0."}
  ],
  "temperature": 0.6,
  "top_p": 0.95,
  "max_completion_tokens": 100,
  "stream" : true
}
FieldTypeRequiredDescription
modelstringYesID of the model to use. Only meta/llama-3.3-70b-instruct is available.
messagesarrayYesList of messages in the conversation. Each message must include a role and content.
temperaturenumberNoSampling temperature (0-2). Higher values make output more random. Default: 1.
top_pnumberNoThe top-p sampling mass used for text generation. The top-p value determines the probability mass that is sampled at sampling time. For example, if top_p = 0.2, only the most likely tokens (summing to 0.2 cumulative probability) will be sampled.
max_completion_tokensintegerNoMaximum number of tokens to generate for the completion.
streambooleanNoIf true, the response will be streamed in chunks. Default: false.

Response (When stream is false) ​

json
{
  "id": "chat-abcdefg1234567",
  "object": "chat.completion",
  "created": 1743765837,
  "model": "nvidia/llama-3.3-nemotron-super-49b-v1",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "<think>Okay, so I need to prove ...</think>Given the equation a+∣a∣=0, ..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 17,
    "completion_tokens": 7,
    "total_tokens": 24
  }
}

INFO

Notice the <think></think> tags in the content field. It includes the chain-of-thought reasoning tokens. After the </think> tag comes the actual answer provided to the user.

FieldTypeDescription
idstringUnique identifier for the chat completion.
objectstringAlways "chat.completion".
createdintegerUnix timestamp of when the chat completion was created.
modelstringThe model used to generate the completion.
choicesarrayList of generated responses. Each choice includes the message and finish_reason.
usageobjectToken usage details, including prompt_tokens, completion_tokens, and total_tokens.

Response (When stream is true) ​

The response is streamed in chunks. Each chunk contains a part of the generated message.

First Chunk ​
json
{
  "id": "chat-abcdefg1234567",
  "object": "chat.completion.chunk",
  "created": 1743765837,
  "model": "nvidia/llama-3.3-nemotron-super-49b-v1",
  "choices": [
    {
      "index": 0,
      "delta": {
        "role": "assistant",
        "content": "<think>Okay so"
      },
      "finish_reason": null
    }
  ]
}
Subsequent Chunk ​
json
{
  "id": "chat-abcdefg1234567",
  "object": "chat.completion.chunk",
  "created": 1743765838,
  "model": "nvidia/llama-3.3-nemotron-super-49b-v1",
  "choices": [
    {
      "index": 0,
      "delta": {
        "content": " I need to prove,"
      },
      "finish_reason": null
    }
  ]
}
Final Chunk ​
json
{
  "id": "chat-abcdefg1234567",
  "object": "chat.completion.chunk",
  "created": 1743765839,
  "model": "nvidia/llama-3.3-nemotron-super-49b-v1",
  "choices": [
    {
      "index": 0,
      "delta": {},
      "finish_reason": "stop"
    }
  ]
}
FieldTypeDescription
idstringUnique identifier for the chat completion.
objectstringAlways "chat.completion.chunk" for streaming responses.
createdintegerUnix timestamp of when the chunk was created.
modelstringThe model used to generate the completion.
choicesarrayList of incremental responses. Each choice includes the delta and finish_reason.
deltaobjectContains the incremental part of the response.
finish_reasonstring/nullIndicates why the response generation stopped.

2. List Models ​

GET /v1/models

Description ​

Lists all available models and their metadata.

Response ​

json
{
  "object": "list",
  "data": [
    {
      "id": "nvidia/llama-3.3-nemotron-super-49b-v1",
      "object": "model",
      "created": 1672531200,
      "owned_by": "SwissAI"
    }
  ]
}
FieldTypeDescription
idstringModel identifier.
objectstringAlways "model".
createdintegerUnix timestamp of model creation.
owned_bystringOrganization owning the model.

Example Code Snippets ​

Note:
The production URL for this API is available in the corresponding plan for this model in the Digital Marketplace. To retrieve the URL:

  1. Navigate to the Digital Marketplace.
  2. Go to the Documentation section.
  3. Select the plan associated with the Llama 3.3 Nemotron Super 49b model.
  4. Locate the production URL provided in the plan details.
  5. Set up the environment variable API_URL to the production URL retrieved.

How to retrieve the production URL

1. Using curl ​

Reasoning ​

bash
curl -X POST $API_URL/v1/chat/completions \
-H "Authorization: Bearer  $YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "model": "nvidia/llama-3.3-nemotron-super-49b-v1",
  "messages": [
    {"role": "system", "content": "detailed thinking on"},
    {"role": "user", "content": "If a+|a|=0, try to prove that a<0."}
  ],
  "temperature": 0.6,
  "top_p": 0.95,
  "max_completion_tokens": 100
}'

List Models ​

bash
curl -X GET $API_URL/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"

2. Using Python (OpenAI Client) ​

Reasoning ​

python
import os
import openai

client = openai.OpenAI(
    api_key=os.getenv("YOUR_API_KEY"),
    base_url=os.getenv("API_URL") + "/v1",
)

response = client.chat.completions.create(
    model="nvidia/llama-3.3-nemotron-super-49b-v1",
    messages=[
        {"role": "system", "content": "detailed thinking on"},
        {"role": "user", "content": "If a+|a|=0, try to prove that a<0."}
    ],
    temperature=0.6,
    top_p=0.95,
    stream=True
)

for chunk in response:
    print(chunk)
    print(chunk.choices[0].delta)
    print("****************")

List Models ​

python
import os
import openai

client = openai.OpenAI(
    api_key=os.getenv("YOUR_API_KEY"),
    base_url=os.getenv("API_URL") + "/v1",
)

response = client.models.list()
print(response)

Replace YOUR_API_KEY with your actual API key to authenticate the requests. You can follow the procedure in Inference Endpoints Overview

Controlling costs ​

To manage costs with reasoning models, you can limit the total number of tokens the model generates (including both reasoning and completion tokens) by using the max_completion_tokens parameter.

python
response = client.chat.completions.create(
    model="nvidia/llama-3.3-nemotron-super-49b-v1",
    messages=[
        {"role": "system", "content": "detailed thinking on"},
        {"role": "user", "content": "If a+|a|=0, try to prove that a<0."}
    ],
    temperature=0.6,
    top_p=0.95,
    max_completion_tokens=5000  # Limit the number of tokens generated
)