Skip to content

[Data] Add tool call capability for ChatProcessor - #5098

Merged
jinsooihm merged 1 commit into
pytorch:mainfrom
jinsooihm:chat-tool
Oct 6, 2026
Merged

jinsooihm merged 1 commit into
pytorch:mainfrom
jinsooihm:chat-tool

Conversation

@jinsooihm

Copy link
Copy Markdown
Contributor

Add tool support for multiturn SFT chat data as mentioned by #2769 (comment)

Summary

  • Add an optional tools_fn to ChatProcessor.Config.
  • Pass per-sample tool definitions to renderer-based chat processing.

Test Plan

python -m unittest tests.unit_tests.cpu.test_chat_dataset
18 tests passed.

@pytorch-bot pytorch-bot Bot added the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Oct 6, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/fake-pg Run 1-GPU Fake PG integration tests CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants