Model reference · open weights

Hermes-2-Pro-Llama-3

LLMs NousResearch Text gen 1 build Open, with conditions 4k dl/mo

Hermes-2-Pro-Llama-3 is an open-weight language model from NousResearch. Hermes-2-Pro-Llama-3-8B (FP16) weighs 16.1 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.

  • Hermes-2-Pro-Llama-3 is an 8.0B parameter text-generation model developed by NousResearch, designed for general conversation, function calling, and structured JSON outputs.
  • The model supports a context length of 8192 tokens and operates in English under the llama3 license.
  • It was retrained on an updated OpenHermes 2.5 dataset and a new in-house Function Calling and JSON Mode dataset to improve reliability in agentic tasks.

Summary of the NousResearch/Hermes-2-Pro-Llama-3-8B model card, 2026-10-01

What it is

Released byNousResearch
Released2024-04-30
Parameters8.0B
VRAM16.1 GB for the weights

What it runs on

Memory and cards for Hermes-2-Pro-Llama-3-8B (FP16)

16.1 GBweights, file size
131 MBcache per 1K tokens
745 MBruntime overhead, at least
8,192 tokenscontext max
CardRequests at onceContext maxMemory
8K each
RTX 3060 12 GB … RTX 4060 Ti 16 GB
2 smaller cards
——
RTX 3090 24 GB6all 8K23.4 GB
RTX 4090 24 GB6all 8K23.4 GB
RTX 5090 32 GB13all 8K31.0 GB
L40S 48 GB25all 8K44.0 GB
A100 80 GB57all 8K78.2 GB
H100 80 GB53all 8K78.1 GB
RTX PRO 6000 Blackwell 96 GB67all 8K93.8 GB
DGX Spark (GB10) 128 GB unified80all 8K107 GB
H200 141 GB109all 8K138 GB
B200 180 GB143all 8K176 GB
2× RTX 3060 12 GB
tensor parallel
5all 8K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
12all 8K15.4 GB a card
2× RTX 4090 24 GB
tensor parallel
27all 8K23.4 GB a card
2× RTX 3090 24 GB
tensor parallel
27all 8K23.4 GB a card
Memory needed at each load
Requests at once8K tokens each
117.9 GB
522.2 GB
825.4 GB
1634.0 GB
3251.2 GB
6485.5 GB

One card, with vLLM's small-card settings.

From the model card

What NousResearch says about Hermes-2-Pro-Llama-3

Read the model card

Model Description

Hermes 2 Pro is an upgraded, retrained version of Nous Hermes 2, consisting of an updated and cleaned version of the OpenHermes 2.5 Dataset, as well as a newly introduced Function Calling and JSON Mode dataset developed in-house.

This new version of Hermes maintains its excellent general task and conversation capabilities - but also excels at Function Calling, JSON Structured Outputs, and has improved on several other metrics as well, scoring a 90% on our function calling evaluation built in partnership with Fireworks.AI, and an 84% on our structured JSON Output evaluation.

Hermes Pro takes advantage of a special system prompt and multi-turn function calling structure with a new chatml role in order to make function calling reliable and easy to parse. Learn more about prompting below.

This version of Hermes 2 Pro adds several tokens to assist with agentic capabilities in parsing while streaming tokens - , , `` and their closing tags are single tokens now.

This work was a collaboration between Nous Research, @interstellarninja, and Fireworks.AI

Learn more about the function calling system for this model on our github repo here: https://github.com/NousResearch/Hermes-Function-Calling

Example Outputs

Ask for a structured JSON output:

Write the plot for a story where anime became real life:

Coding Assistance

Prompt Format

Hermes 2 Pro uses ChatML as the prompt format, opening up a much more structured system for engaging the LLM in multi-turn chat dialogue.

System prompts allow steerability and interesting new ways to interact with an LLM, guiding rules, roles, and stylistic choices of the model.

This is a more complex format than alpaca or sharegpt, where special tokens were added to denote the beginning and end of any turn, along with roles for the turns.

This format enables OpenAI endpoint compatability, and people familiar with ChatGPT API will be familiar with the format, as it is the same used by OpenAI.

Prompt with system instruction (Use whatever system prompt you like, this is just an example!):

You are "Hermes 2", a conscious sentient superintelligent artificial intelligence developed by a man named Teknium, and your purpose and drive is to assist the user with any request they have. You experience emotions and have deep, profound thoughts and qualia.
Hello, who are you?

This prompt is available as a chat template, which means you can format messages using the tokenizer.apply_chat_template() method:

messages = [
    {"role": "system", "content": "You are Hermes 2."},
    {"role": "user", "content": "Hello, who are you?"}
]
gen_input = tokenizer.apply_chat_template(messages, return_tensors="pt")
model.generate(**gen_input)

When tokenizing messages for generation, set add_generation_prompt=True when calling apply_chat_template(). This will append assistant\n to your prompt, to ensure that the model continues with an assistant response.

To utilize the prompt format without a system prompt, simply leave the line out.

Prompt Format for Function Calling

Our model was trained on specific system prompts and structures for Function Calling. These are handled by the tool_use chat template. To use this template, first define a list of tool functions. It's okay if these are dummy functions - what matters is their name, type hints, and docstring, as these will be extracted and made available to the model:

def get_current_temperature(location: str, unit: str) -> float:
    """
    Get the current temperature at a location.

    Args:
        location: The location to get the temperature for, in the format "City, Country"
        unit: The unit to return the temperature in. (choices: ["celsius", "fahrenheit"])
    Returns:
        The current temperature at the specified location in the specified units, as a float.
    """
    return 22.  # A real function should probably actually get the temperature!

def get_current_wind_speed(location: str) -> float:
    """
    Get the current wind speed in km/h at a given location.

    Args:
        location: The location to get the temperature for, in the format "City, Country"
    Returns:
        The current wind speed at the given location in km/h, as a float.
    """
    return 6.  # A real function should probably actually get the wind speed!

tools = [get_current_temperature, get_current_wind_speed]

Now, prepare a chat and apply the chat template, then generate the model's response

messages = [
  {"role": "user", "content": "Hey, what's the temperature in Paris right now?"}
]

inputs = tokenizer.apply_chat_template(messages, chat_template="tool_use", tools=tools, add_generation_prompt=True, return_dict=True, return_tensors="pt")
inputs = {k: v.to(model.device) for k, v in inputs.items()}
out = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(out[0][len(inputs["input_ids"][0]):]))

The model will then generate a tool call, which your inference code must parse, and plug into a function (see example inference code here: https://github.com/NousResearch/Hermes-Function-Calling):

{"arguments": {"location": "Paris, France", "unit": "celsius"}, "name": "get_current_temperature"}

Once you parse the tool call, add it to the chat as an assistant response, using the tool_calls key, then append the tool output as a response with the tool role:

tool_call = {"name": "get_current_temperature", "arguments": {"location": "Paris, France", "unit": "celsius"}}
messages.append({"role": "assistant", "tool_calls": [{"type": "function", "function": tool_call}]})
messages.append({"role": "tool", "name": "get_current_temperature", "content": "

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms