Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
schema_version: string
source: struct<jsonl_line: int64, jsonl_sha256: string, raw_trajectory_count: int64, global_step: int64, bat (... 195 chars omitted)
  child 0, jsonl_line: int64
  child 1, jsonl_sha256: string
  child 2, raw_trajectory_count: int64
  child 3, global_step: int64
  child 4, batch_index: int64
  child 5, epoch: int64
  child 6, matching_sha256: string
  child 7, advantage_sha256: string
  child 8, progress_reward_sha256: string
  child 9, grpo_core_algos_sha256: string
  child 10, parser_sha256: string
  child 11, provenance_sha256: string
original_sample: string
group_uid: string
user_turn_id: int64
k_rollouts: int64
special_rollout_offset: int64
row_scope: string
offset2_state_mismatch_audit: struct<rollout_offset: int64, rollout_id: string, user_turn_id: int64, runtime_replayed: bool, user_ (... 849 chars omitted)
  child 0, rollout_offset: int64
  child 1, rollout_id: string
  child 2, user_turn_id: int64
  child 3, runtime_replayed: bool
  child 4, user_turn3_terminal_score: double
  child 5, user_turn0_actual_tool_call_names: list<item: string>
      child 0, item: string
  child 6, user_turn0_actual_get_flight_cost_arguments: struct<travel_class: string, travel_date: timestamp[s], travel_from: string, travel_to: string>
      child 0, travel_class: string
      child 1, travel_date: timestamp[s]
      child 2, travel_from: string
      child 3, travel_to: string
  child 7, user_turn0_ground_truth_call_names: list<item: string>
      child 0, item: 
...
le
  child 19, a_tw: list<item: double>
      child 0, item: double
  child 20, local_non_answer_runtime_interaction_count: int64
  child 21, runtime_depths: list<item: int64>
      child 0, item: int64
fixture_provenance: struct<source_row_count: int64, source_row_index: int64, source_parquet_sha256: string, sample_id_ma (... 140 chars omitted)
  child 0, source_row_count: int64
  child 1, source_row_index: int64
  child 2, source_parquet_sha256: string
  child 3, sample_id_matches: bool
  child 4, questions_match: bool
  child 5, ground_truth_matches: bool
  child 6, initial_config_matches: bool
  child 7, credential_like_values_classification: string
global_progress_group: struct<values: list<item: double>, mean: double, sample_std: double, epsilon: double>
  child 0, values: list<item: double>
      child 0, item: double
  child 1, mean: double
  child 2, sample_std: double
  child 3, epsilon: double
epsilon: double
individual_rollout_id_semantics: string
gamma: double
full_interaction_audit: struct<row_count_all_k: int64, row_count_excluding_special: int64, special_offset_excluded_from_read (... 41 chars omitted)
  child 0, row_count_all_k: int64
  child 1, row_count_excluding_special: int64
  child 2, special_offset_excluded_from_readme_table: int64
  child 3, artifact_schema: string
normalization_key: list<item: string>
  child 0, item: string
lambda_local: double
user_turn3_ground_truth_call_names: list<item: string>
  child 0, item: string
group_uid_semantics: string
to
{'schema_version': Value('string'), 'source': {'jsonl_line': Value('int64'), 'jsonl_sha256': Value('string'), 'raw_trajectory_count': Value('int64'), 'global_step': Value('int64'), 'batch_index': Value('int64'), 'epoch': Value('int64'), 'matching_sha256': Value('string'), 'advantage_sha256': Value('string'), 'progress_reward_sha256': Value('string'), 'grpo_core_algos_sha256': Value('string'), 'parser_sha256': Value('string'), 'provenance_sha256': Value('string')}, 'original_sample': Value('string'), 'group_uid': Value('string'), 'group_uid_semantics': Value('string'), 'individual_rollout_id_semantics': Value('string'), 'fixture_provenance': {'source_row_count': Value('int64'), 'source_row_index': Value('int64'), 'source_parquet_sha256': Value('string'), 'sample_id_matches': Value('bool'), 'questions_match': Value('bool'), 'ground_truth_matches': Value('bool'), 'initial_config_matches': Value('bool'), 'credential_like_values_classification': Value('string')}, 'k_rollouts': Value('int64'), 'target_user_turn_id': Value('int64'), 'gamma': Value('float64'), 'epsilon': Value('float64'), 'lambda_local': Value('float64'), 'normalization': Value('string'), 'answer_scope_note': Value('string'), 'questions': List(List({'content': Value('string'), 'role': Value('string')})), 'ground_truth': List(List(Value('string'))), 'ground_truth_call_counts': List(Value('int64')), 'user_turn3_ground_truth_call_names': List(Value('string')), 'global_progress_group': {'values': List(Value('float64')), 
...
coverage': Value('float64'), 'rods_matchtir_v1/fusion/A_new_mean': Value('float64'), 'rods_matchtir_v1/fusion/A_new_std': Value('float64'), 'rods_matchtir_v1/fusion/RMS_A_RODS': Value('float64'), 'rods_matchtir_v1/fusion/RMS_A_local': Value('float64'), 'rods_matchtir_v1/fusion/RMS_A_new': Value('float64'), 'rods_matchtir_v1/fusion/sign_flip_rate': Value('float64'), 'rods_matchtir_v1/missing/missing_turn_local_coverage': Value('float64'), 'rods_matchtir_v1/missing/followup_normal_turn_local_coverage': Value('float64'), 'rods_matchtir_v1/provenance/unreliable_rollout_count': Value('float64'), 'rods_matchtir_v1/provenance/invalid_gt_turn_count': Value('float64'), 'rods_matchtir_v1/provenance/unreliable_tool_turn_count': Value('float64'), 'rods_matchtir_v1/provenance/span_assignment_failure_count': Value('float64'), 'rods_matchtir_v1/normalization/local_support_depth_0': Value('float64'), 'rods_matchtir_v1/normalization/local_support_depth_1': Value('float64'), 'rods_matchtir_v1/normalization/local_support_depth_2': Value('float64'), 'rods_matchtir_v1/normalization/local_support_depth_3': Value('float64'), 'rods_matchtir_v1/normalization/local_support_depth_4': Value('float64'), 'rods_matchtir_v1/normalization/local_support_depth_5': Value('float64'), 'rods_matchtir_v1/by_type/Base/local_coverage': Value('float64')}}, 'normalization_key': List(Value('string')), 'formal_temporal_axis': {'unit': Value('string'), 'index': Value('string'), 'tool_attempt_index_role': Value('string')}}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2840, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2373, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2398, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              schema_version: string
              source: struct<jsonl_line: int64, jsonl_sha256: string, raw_trajectory_count: int64, global_step: int64, bat (... 195 chars omitted)
                child 0, jsonl_line: int64
                child 1, jsonl_sha256: string
                child 2, raw_trajectory_count: int64
                child 3, global_step: int64
                child 4, batch_index: int64
                child 5, epoch: int64
                child 6, matching_sha256: string
                child 7, advantage_sha256: string
                child 8, progress_reward_sha256: string
                child 9, grpo_core_algos_sha256: string
                child 10, parser_sha256: string
                child 11, provenance_sha256: string
              original_sample: string
              group_uid: string
              user_turn_id: int64
              k_rollouts: int64
              special_rollout_offset: int64
              row_scope: string
              offset2_state_mismatch_audit: struct<rollout_offset: int64, rollout_id: string, user_turn_id: int64, runtime_replayed: bool, user_ (... 849 chars omitted)
                child 0, rollout_offset: int64
                child 1, rollout_id: string
                child 2, user_turn_id: int64
                child 3, runtime_replayed: bool
                child 4, user_turn3_terminal_score: double
                child 5, user_turn0_actual_tool_call_names: list<item: string>
                    child 0, item: string
                child 6, user_turn0_actual_get_flight_cost_arguments: struct<travel_class: string, travel_date: timestamp[s], travel_from: string, travel_to: string>
                    child 0, travel_class: string
                    child 1, travel_date: timestamp[s]
                    child 2, travel_from: string
                    child 3, travel_to: string
                child 7, user_turn0_ground_truth_call_names: list<item: string>
                    child 0, item: 
              ...
              le
                child 19, a_tw: list<item: double>
                    child 0, item: double
                child 20, local_non_answer_runtime_interaction_count: int64
                child 21, runtime_depths: list<item: int64>
                    child 0, item: int64
              fixture_provenance: struct<source_row_count: int64, source_row_index: int64, source_parquet_sha256: string, sample_id_ma (... 140 chars omitted)
                child 0, source_row_count: int64
                child 1, source_row_index: int64
                child 2, source_parquet_sha256: string
                child 3, sample_id_matches: bool
                child 4, questions_match: bool
                child 5, ground_truth_matches: bool
                child 6, initial_config_matches: bool
                child 7, credential_like_values_classification: string
              global_progress_group: struct<values: list<item: double>, mean: double, sample_std: double, epsilon: double>
                child 0, values: list<item: double>
                    child 0, item: double
                child 1, mean: double
                child 2, sample_std: double
                child 3, epsilon: double
              epsilon: double
              individual_rollout_id_semantics: string
              gamma: double
              full_interaction_audit: struct<row_count_all_k: int64, row_count_excluding_special: int64, special_offset_excluded_from_read (... 41 chars omitted)
                child 0, row_count_all_k: int64
                child 1, row_count_excluding_special: int64
                child 2, special_offset_excluded_from_readme_table: int64
                child 3, artifact_schema: string
              normalization_key: list<item: string>
                child 0, item: string
              lambda_local: double
              user_turn3_ground_truth_call_names: list<item: string>
                child 0, item: string
              group_uid_semantics: string
              to
              {'schema_version': Value('string'), 'source': {'jsonl_line': Value('int64'), 'jsonl_sha256': Value('string'), 'raw_trajectory_count': Value('int64'), 'global_step': Value('int64'), 'batch_index': Value('int64'), 'epoch': Value('int64'), 'matching_sha256': Value('string'), 'advantage_sha256': Value('string'), 'progress_reward_sha256': Value('string'), 'grpo_core_algos_sha256': Value('string'), 'parser_sha256': Value('string'), 'provenance_sha256': Value('string')}, 'original_sample': Value('string'), 'group_uid': Value('string'), 'group_uid_semantics': Value('string'), 'individual_rollout_id_semantics': Value('string'), 'fixture_provenance': {'source_row_count': Value('int64'), 'source_row_index': Value('int64'), 'source_parquet_sha256': Value('string'), 'sample_id_matches': Value('bool'), 'questions_match': Value('bool'), 'ground_truth_matches': Value('bool'), 'initial_config_matches': Value('bool'), 'credential_like_values_classification': Value('string')}, 'k_rollouts': Value('int64'), 'target_user_turn_id': Value('int64'), 'gamma': Value('float64'), 'epsilon': Value('float64'), 'lambda_local': Value('float64'), 'normalization': Value('string'), 'answer_scope_note': Value('string'), 'questions': List(List({'content': Value('string'), 'role': Value('string')})), 'ground_truth': List(List(Value('string'))), 'ground_truth_call_counts': List(Value('int64')), 'user_turn3_ground_truth_call_names': List(Value('string')), 'global_progress_group': {'values': List(Value('float64')), 
              ...
              coverage': Value('float64'), 'rods_matchtir_v1/fusion/A_new_mean': Value('float64'), 'rods_matchtir_v1/fusion/A_new_std': Value('float64'), 'rods_matchtir_v1/fusion/RMS_A_RODS': Value('float64'), 'rods_matchtir_v1/fusion/RMS_A_local': Value('float64'), 'rods_matchtir_v1/fusion/RMS_A_new': Value('float64'), 'rods_matchtir_v1/fusion/sign_flip_rate': Value('float64'), 'rods_matchtir_v1/missing/missing_turn_local_coverage': Value('float64'), 'rods_matchtir_v1/missing/followup_normal_turn_local_coverage': Value('float64'), 'rods_matchtir_v1/provenance/unreliable_rollout_count': Value('float64'), 'rods_matchtir_v1/provenance/invalid_gt_turn_count': Value('float64'), 'rods_matchtir_v1/provenance/unreliable_tool_turn_count': Value('float64'), 'rods_matchtir_v1/provenance/span_assignment_failure_count': Value('float64'), 'rods_matchtir_v1/normalization/local_support_depth_0': Value('float64'), 'rods_matchtir_v1/normalization/local_support_depth_1': Value('float64'), 'rods_matchtir_v1/normalization/local_support_depth_2': Value('float64'), 'rods_matchtir_v1/normalization/local_support_depth_3': Value('float64'), 'rods_matchtir_v1/normalization/local_support_depth_4': Value('float64'), 'rods_matchtir_v1/normalization/local_support_depth_5': Value('float64'), 'rods_matchtir_v1/by_type/Base/local_coverage': Value('float64')}}, 'normalization_key': List(Value('string')), 'formal_temporal_axis': {'unit': Value('string'), 'index': Value('string'), 'tool_attempt_index_role': Value('string')}}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

🧡 ToolWeave BFCL Formal-Training Rollout Case Study

This dataset publishes the complete raw on-policy rollout artifact from ToolWeave formal-training update 2, together with a focused real-rollout case study and deterministic K=16 peer-group analysis for runtime-interaction credit assignment. The records contain protocol failures and self-correction; they are raw reinforcement-learning trajectories, not curated demonstrations and not benchmark results.

Project: Muradil-mamat-211/ToolWeave

🧾 Formal-Training Update 2 Raw Dataset

data/raw_trajectories_update_2_512.jsonl is the complete raw trajectory artifact produced by ToolWeave formal training at update_2.

Field Value
Training update update_2
Records 512 trajectories
Prompt groups 32 groups Γ— 16 rollouts
Format JSONL, one trajectory per line
Role Raw on-policy training artifact, not SFT data or a benchmark result

Each record preserves the runtime messages, parser/provenance metadata, reward records, questions, ground truth, and policy responses generated during the formal-training rollout.

πŸ”Ž Source identity

Field Value
Original BFCL sample multi_turn_base_156
Source JSONL line 10
Trajectory index 9
Global step / batch / epoch 2 / 1 / 0
Group/prompt UID 1b94ddc9-3612-48c4-acf2-7b755d72330f
Individual rollout ID 8516d0df-e6fb-4a67-969d-637bfd967e77
Rollout offset 9
Rollouts sharing the group UID 16
Source artifact SHA256 806b209cf7e02a1a20396fa833238fbe3bf9a2eacd794af7b3b8ed17ab6ba3e4

non_tensor.uid is the prompt/group identifier shared by the K=16 rollouts. It is not a unique trajectory ID. matchtir_provenance.rollout_id identifies the individual rollout.

πŸ—‚οΈ Complete stateful sample

The published JSON preserves the complete trajectory record: all five statefully connected BFCL user turns, runtime messages, interaction provenance, reward records, questions, ground truth, and policy responses.

User turn Ground-truth calls
0 get_flight_cost, book_flight
1 retrieve_invoice
2 contact_customer_support
3 ticket_login, create_ticket
4 edit_ticket

The ground-truth call-count structure is [2, 1, 1, 2, 1].

πŸ” Runtime-interaction recovery

ToolWeave's formal local temporal axis is the sequence of real non-answer runtime interactions within one BFCL user turn. One runtime interaction is one assistant generation followed by parser/environment handling. A valid final answer is excluded from the local sequence and receives global advantage only.

For User Turn 3, the selected rollout contains six non-answer runtime interactions:

j=0  parse_error  β†’ P_j=[] β†’ r_j=0
j=1  parse_error  β†’ P_j=[] β†’ r_j=0
j=2  parse_error  β†’ P_j=[] β†’ r_j=0
j=3  parse_error  β†’ P_j=[] β†’ r_j=0
j=4  parse_error  β†’ P_j=[] β†’ r_j=0
j=5  one valid tool-call action containing:
       β”œβ”€β”€ ticket_login
       └── create_ticket
     β†’ call rewards [1.0, 1.0]
     β†’ r_j=1.0

The parser-rejected generations remain real discount steps at immediate reward zero. Only the final successfully parsed calls enter whole-user-turn matching. The valid action contains one <tool_call> block with a JSON array of two calls, so it remains one temporal interaction and its call rewards are averaged.

πŸ“ Frozen formal-credit semantics

The active Stage-3 mode is runtime_interaction_final:

  • all successfully parsed calls in one BFCL user turn are concatenated with multiplicity preserved and matched once;
  • call rewards are scattered back to their originating runtime interaction;
  • an unparsed interaction has P_j=[] and r_j=0, but remains in the timeline;
  • discounting uses real non-answer runtime depth j, with gamma=0.9;
  • local peers share (group_uid, user_turn_id, runtime_interaction_index);
  • ragged normalization uses unbiased sample standard deviation without zero-padding;
  • singleton and zero-variance peer sets abstain with A_local=0;
  • fusion is A_TW = A_RODS + A_local, with no averaging or post-fusion normalization.

For the special rollout:

immediate rewards:  [0, 0, 0, 0, 0, 1]
discounted returns: [0.59049, 0.65610, 0.72900, 0.81000, 0.90000, 1.00000]
peer support:       [16, 16, 1, 1, 1, 1]

Its fixed-denominator progress reward is R_P=0.8, and its global normalized advantage is A_RODS=-0.4966976345. Full-precision peer means, sample standard deviations, local advantages, and fused advantages are provided in the analysis files.

The complete K=16 User Turn 3 audit contains 36 rowsβ€”one for every real non-answer runtime interaction across the group. runtime_interaction_index and runtime_depth are the formal temporal fields. The older interaction_index, tool_attempt_index, r_t, and R_t fields remain only for backward compatibility; they do not define discounting or normalization.

The same deterministic audit verifies offset 2 with the runtime state checker. Its User Turn 3 calls match locally, while an earlier User Turn 0 omitted book_flight and used SAN instead of the ground-truth SFO for get_flight_cost. The resulting TravelAPI state mismatch makes the stateful User Turn 3 terminal score zero; this is neither a User Turn 3 parser failure nor a matching failure.

βœ… Implementation and solver provenance

The values are reproduced by the current frozen ToolWeave Stage-3 formal-training implementation. The source trajectory remains unchanged; the production implementation replays its runtime/provenance records deterministically. The complete relevant pytest suite, K=16 regression, parser-error token-broadcast checks, and deterministic CPU trainer tensor-contract checks passed. No new formal training or checkpoint generation was performed for this documentation synchronization.

Solver provenance:

  • the MatchTIR paper describes maximum-weight KM/Hungarian assignment;
  • the audited MatchTIR public helper at commit 975c4535fbb86a49f21ff7d291a1fa822f827684 uses sorted positive non-conflicting edges;
  • ToolWeave uses SciPy's true linear_sum_assignment(..., maximize=True) through its production matching module.

ToolWeave is an adaptation, not a literal MatchTIR implementation.

πŸ“¦ Files

File Contents
data/raw_trajectories_update_2_512.jsonl Complete 512-trajectory raw artifact from formal-training update_2
data/multi_turn_base_156_rollout_offset_9.json Complete original rollout, including all five BFCL user turns
analysis/user_turn3_k16_credit_summary.json Full-precision K=16 matching, return, normalization, fusion, and state audit
analysis/user_turn3_k16_credit_summary.csv Compact per-rollout summary
analysis/user_turn3_k16_full_interaction_advantage.json One structured row per User Turn 3 non-answer runtime interaction
analysis/user_turn3_k16_full_interaction_advantage.csv Exact tabular production-replay export

The raw JSONL is the complete update-2 source artifact; the smaller JSON/CSV files provide focused, reproducible analyses of the selected K=16 group.

πŸ” Credential-like benchmark fixtures

Credential-like strings in the full record are synthetic BFCL benchmark fixtures, not production credentials. Questions, ground truth, and initial environment configuration were checked against the corresponding static BFCL source row. No Hugging Face token, GitHub token, SSH private key, cloud access key, or local server path is included.

πŸ™ Upstream context

The task data and execution environment derive from the public BFCL/EnvTuning infrastructure in AWorld-RL and the Berkeley Function-Calling Leaderboard. MatchTIR is referenced for the structural local-credit backbone; ToolWeave's runtime-depth and BFCL user-turn adaptations are project-specific.

Downloads last month
42