How to Build a Stable Pipeline on the Fable 5 Traces Dataset in Google Colab
The Fable 5 Traces dataset on Hugging Face contains real traces of Claude agent sessions, including tool calls, their arguments, and the model's chain-of-thought reasoning. MarkTechPost has published a detailed tutorial covering how to parse JSONL by hand in Colab without brittle dependencies, normalize tool calls, automatically redact secrets from the data, build distribution plots, and train a naive Bayes classifier in pure Python, with no heavy frameworks.
AI-processed from MarkTechPost; edited by Hamidun News
The Fable 5 Traces dataset has appeared on Hugging Face and is already drawing researchers' attention. It holds real traces of agent sessions from Claude Fable 5, an Anthropic model tuned for working with tools. MarkTechPost has published a detailed tutorial on building a stable pipeline around it in Google Colab.
What Fable 5 Traces is
Fable 5 is one of the latest models in the Claude family, specialized for agentic tasks. The trace dataset records how the model thinks when it calls functions: requests to tools, their arguments, returned results, and chains of reasoning (chain-of-thought).
Each record in the JSONL file represents a full session, from the system prompt to the final answer. The structure is nested and uneven: different traces may contain different fields, which is the main technical difficulty when working with the dataset.
- System prompt and user request
- List of tool calls with arguments and results
- The model's CoT reasoning (if enabled)
- Final answer to the user
How the Colab pipeline works
The tutorial's authors deliberately avoided high-level libraries, notably Hugging Face datasets, in favor of manual parsing with Python's standard json module. The logic is simple: Colab regularly updates library versions, and code that depends on specific versions of datasets or transformers can easily break without warning. Manual JSONL parsing is resilient to such surprises.
The pipeline runs in several stages. First comes inspection: browsing the repository's file structure, checking the number of records, and spotting anomalies. Then normalization, which maps tool calls from different traces onto a single schema so they can be handled programmatically.
A separate step is auditing the data for secrets. Agent session traces often contain API keys, tokens, or other sensitive data that entered the context through tools. The tutorial shows how to detect and redact such fragments automatically before the dataset is used for training.
After cleaning, the pipeline builds visualizations: the distribution of tool-call types, session lengths, and the frequency of specific functions. These plots help quickly assess the quality and balance of the data.
A baseline classifier instead of a neural network
The final part of the tutorial covers export and training. The authors prepare two versions of the dataset: a full one (with CoT reasoning) and a trimmed no-CoT one (only requests and answers, without reasoning chains). The second version is safer for fine-tuning: CoT reasoning may contain internal artifacts that are unsuitable for training external models.
A naive Bayes classifier written in pure Python, without PyTorch, TensorFlow, or other heavy frameworks, is trained on the prepared data. Such a baseline serves several purposes:
- Quickly check whether the data contains statistically significant patterns
- Provide a reference point for comparing neural models
- Run an experiment without a GPU and without a long wait
- Reveal class imbalance at the hypothesis-testing stage
"We parse the leaked JSONL file by hand so that Colab stays reliable and predictable" — from the MarkTechPost tutorial.
What this means
Public datasets with real agent traces are rare. Most LLM training sets contain synthetic data or web text, not records of an agent's actual reasoning during tool calls. Fable 5 Traces fills that gap and opens up ways to study the agentic behavior of Claude models.
The tutorial lowers the barrier to entry: all the code runs in the browser in a few minutes with no complex environment setup. For developers who want to fine-tune their own models on agentic tasks or study tool-use patterns, it is a ready-made starting point.
- Dec 2, 202650 AI Models Beat 62 Teams at 'Zakovat': 48.3% Correct Answers vs 39.8%
- Dec 2, 2026OpenAI Opens Dots Agent to ChatGPT Plus Subscribers With 10,000+ Plugins
- Dec 2, 2026T-Decision-1 with 9B Parameters Beats Copernicus-57B on Russian: 71.6 vs. 71.2 Points
- Dec 2, 2026A Python Prompt Test in Under 150 Lines Catches Edits That Silently Break AI Answers
Key Questions Answered
What Fable 5 Traces is?
Fable 5 is one of the latest models in the Claude family, specialized for agentic tasks. The trace dataset records how the model thinks when it calls functions: requests to tools, their arguments, returned results, and chains of reasoning (chain-of-thought). Each record in the JSONL file represents a full session, from the system prompt to the final answer. The structure is nested and uneven: different traces may contain different fields, which is the main technical difficulty when working with the dataset.
How the Colab pipeline works?
The tutorial's authors deliberately avoided high-level libraries, notably Hugging Face datasets, in favor of manual parsing with Python's standard json module. The logic is simple: Colab regularly updates library versions, and code that depends on specific versions of datasets or transformers can easily break without warning. Manual JSONL parsing is resilient to such surprises. The pipeline runs in several stages.
What are the key details on A baseline classifier instead of a neural network?
The final part of the tutorial covers export and training. The authors prepare two versions of the dataset: a full one (with CoT reasoning) and a trimmed no-CoT one (only requests and answers, without reasoning chains). The second version is safer for fine-tuning: CoT reasoning may contain internal artifacts that are unsuitable for training external models. A naive Bayes classifier written in pure Python, without PyTorch, TensorFlow, or other heavy frameworks, is trained on the prepared data.
Free 2-Day Vibecoding & AI Agents Intensive
Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
