Open Models Almanac
Methods

single mention · not yet filed

harmony chat format

The harmony chat format is a chat format used to train the models, giving them special tokens and role keywords to structure messages.1 It resolves instruction conflicts through a role hierarchy and marks each message with channels indicating its intended visibility, such as analysis for CoT and final for user-facing answers.2

How this definition was written

Summarised by glm-5.3-flash from 1 source; every sentence is checked against the quote it cites.

  1. we use a custom chat format known as the harmony chat format. This format provides special tokens to delineate message boundaries and uses keyword arguments (e.g., User and Assistant) to indicate message authors and recipients — gpt-oss-120b & gpt-oss-20b Model Card
  2. the models follow a role-based information hierarchy to resolve instruction conflicts: System > Developer > User > Assistant > Tool — gpt-oss-120b & gpt-oss-20b Model Card