--- pretty_name: CapySFT task_categories: - text-generation size_categories: - 100K`, reasoning, closing ``, answer or complete tool call, and closing `<|im_end|>`. Include newlines within that body. Mask the assistant role header, the newline after its end marker, all other messages, and padding. Earlier assistant messages can be context only. For example, a generated summary is supervised when first produced, then appears as masked history in a later record. Keep these earlier messages as input. The final `<|im_end|>` ends the segment. Remove only the following template newline and do not append another end token. When packing records together, keep attention and target shifting within each record. ## How the data was generated We used a small agent harness developed for our LLM course assignments, which we call MiniCapyCode. It runs the conversation loop between the model and a sandboxed Linux environment. The model may use bash, read, edit, and write tools, receive their results, and continue its response. Tool use is optional. Generation used thinking enabled, low reasoning effort, `temperature=1`, and `top_p=1`. Later user questions could be rewritten in conversation context. When a conversation approached the context limit, the harness could ask the model to summarize its history and continue from that summary. Summary requests and responses are included as separate training records. The generated responses can contain errors. Some source conversations ended before all turns completed, but their completed training segments are retained. There is no validation or test split, and the data has not been checked for overlap with every benchmark. ## Sources and terms The source prompts come from [Tulu 3 SFT Mixture](https://huggingface.co/datasets/allenai/tulu-3-sft-mixture) and [SmolTalk](https://huggingface.co/datasets/HuggingFaceTB/smoltalk). Each record retains the source and subset labels in `metadata`. Upstream terms differ by subset, and some Tulu 3 subsets restrict commercial use. Regenerating responses does not remove conditions on the source prompts. See [LICENSE.md](LICENSE.md) and the upstream dataset cards for licenses, attribution, and terms governing generated outputs. No single permissive license is asserted for the entire mixture.