Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

What does "im" in "im_start" and "im_end" stands for? #2453

Unanswered
2catycm asked this question in Q&A
Discussion options

Is it "input message" or "instant message"?
It is really confusing

You must be logged in to vote

Replies: 1 comment

Comment options

Most likely, im = "input message" (not "instant message").
This aligns with OpenAI's ChatML (Chat Markup Language) conventions, where:
im_start = Start of a user or assistant input.
im_end = End of that input.
These tokens help the model parse structured conversations, especially in multi-turn chats.

Why Not "Instant Message"?
Instant message" (IM) is an older term (like in AIM or MSN Messenger), but in this context, it doesn't fit the structured role of these tokens.The tokens are more about demarcating inputs rather than describing real-time messaging.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /