Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
529f1d5
Add NoC reasoning agent tutorial
acanaveras Feb 13, 2026
c3a7a65
Add sample synthetic incidents data file
acanaveras Feb 13, 2026
d11100c
Fix import errors, BOM encoding, and groupby column loss in recipe sc…
acanaveras Feb 19, 2026
897d390
Refactor tutorial environment setup and complete fault_category support
acanaveras Feb 19, 2026
2a19c5f
Simplify environment setup: drop __init__.py, keep only PYTHONPATH
acanaveras Feb 19, 2026
4a70b86
Address PR review feedback and refine tutorial
acanaveras Feb 23, 2026
5685e24
Remove target=_blank attributes from external links
acanaveras Feb 23, 2026
8d2ecff
Add metrics
acanaveras Feb 23, 2026
e183e9b
Verified: Filtering pipeline with distinct intermediate files
acanaveras Feb 23, 2026
14ee5ed
Fix falsy check for --examples_by_problem_code argument
acanaveras Feb 23, 2026
28699b4
Update docs/tutorials/posts/noc-reasoning-agent.md
acanaveras Feb 24, 2026
8113385
Update docs/tutorials/posts/noc-reasoning-agent.md
acanaveras Feb 24, 2026
129644b
Update docs/tutorials/posts/noc-reasoning-agent.md
acanaveras Feb 24, 2026
2aff7d0
Update docs/tutorials/posts/noc-reasoning-agent.md
acanaveras Feb 24, 2026
4e2da2e
Update docs/tutorials/posts/noc-reasoning-agent.md
acanaveras Feb 24, 2026
66cab28
Update docs/tutorials/posts/noc-reasoning-agent.md
acanaveras Feb 24, 2026
0725311
Update docs/tutorials/posts/noc-reasoning-agent.md
acanaveras Feb 24, 2026
074ba6a
Update docs/tutorials/posts/noc-reasoning-agent.md
acanaveras Feb 24, 2026
5523f12
Update noc-reasoning-agent.md
rajeshwarid179 Feb 24, 2026
cc78d27
Update noc-reasoning-agent.md
rajeshwarid179 Feb 24, 2026
45286be
Apply suggestion from @gwarmstrong
rajeshwarid179 Feb 24, 2026
ed722da
Update noc-reasoning-agent.md
rajeshwarid179 Feb 24, 2026
6ba34a3
Update noc-reasoning-agent.md
rajeshwarid179 Feb 24, 2026
a154947
Merge branch 'main' into add-noc-reasoning-tutorial
gwarmstrong Feb 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ AGENTS.md
.claude
.cursor
.idea
site/

#scripts at root level
/*.sh
605 changes: 605 additions & 0 deletions docs/tutorials/posts/noc-reasoning-agent.md

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions recipes/noc-reasoning-agent/configs/config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[download]
qwen2.5-14=/workspace/models/Qwen2.5-14B-Instruct
qwen2.5-32=/workspace/models/Qwen2.5-32B-Instruct
gpt-oss-120b=/workspace/models/gpt-oss-120b
nemotron-49b-1.5=/workspace/models/Llama-3_3-Nemotron-Super-49B-v1_5


[data_path]
original_data_path=data/anonymized-Incidents_Last_6_Months.csv
incident_json_data=outputs/input_incident.jsonl
150 changes: 150 additions & 0 deletions recipes/noc-reasoning-agent/configs/noc_reasoning_sft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
processors_to_run: all

output_path: ???
# prompt_config: null
preprocessed_dataset_files: null
input_files: null


# --- Data Keys ---
# These keys MUST match the output of your preprocessing script.
input_key: "background"
output_key: "response"

# --- SFT Formatting ---
# Define the tokenizer and the final chat format for the model.
tokenizer: "Qwen/Qwen3-32B" # EDIT THIS or override via CLI

# This uses a separate YAML file to define the chat template.
# This makes the configuration cleaner and more reusable.
prompt_config: "/workspace/data/prompt_incident.yaml" # EDIT THIS or override via CLI

# -----------------
# --- General Settings ---
# -----------------
do_shuffle: false
deduplicate: true
exclude_optional_keys: true
random_seed: 42
num_output_samples: null
add_correct: true
add_incorrect: false
add_unlabeled: true # Set to true as requested

# -----------------
# --- Quality Control Filters ---
# -----------------
# Most filters are disabled because the data is text-based reasoning, not math or code.
# This prevents the pipeline from incorrectly discarding valid data.


contamination_file: null

filters:
drop_multi_boxed: false
remove_contaminated: false # can be enabled if you have a contamination file
majority_filter: false
trim_solutions: false # Your data doesn't use the \boxed{} syntax
trim_prefix: false
drop_incorrect_arithmetic: false
split_arithmetic: false
remove_len_outlier_problems: false # Keep all data regardless of length
remove_len_outlier_solutions: false
code_text_filter: null
remove_code_errors: false
remove_verification_code: false
remove_matplotlib: false
remove_no_code: false
remove_no_think_tags: false # Enabled, as requested

# ================================================================================= #
# Processor Pipeline (Usually does not need to be changed) #
# ================================================================================= #
processors:
- _target_: nemo_skills.training.data_preparation_utils.preprocessing.ReadData
input_files: ${input_files} # This line ensures the processor gets the input file path
input_key: ${input_key}
output_key: ${output_key}
add_unlabeled: ${add_unlabeled}
deduplicate: ${deduplicate}
keys_to_keep:
- "expected_answer"
- "incident_identifier"
- "incident_classification"
- "urgency_level"
- "geographical_territory"
- "incident_subtype"
- "service_domain"
- "equipment_provider"
- "operational_zone"
- "affected_site"
- "incident_summary"
- "detection_timestamp"
- "escalation_date"
- "responsible_team"
- "fault_category"
- "action_chronicle"
- "resolution_summary"
- "resolution_method"
- "problem_code_reasoning_process"

- _target_: nemo_skills.training.data_preparation_utils.merge_processor.MergeProcessor
_recursive_: false
processor_configs:
- _target_: nemo_skills.training.data_preparation_utils.filters.RemoveContaminated
should_run: ${filters.remove_contaminated}
contamination_file: ${contamination_file}

- _target_: nemo_skills.training.data_preparation_utils.filters.DropIfRegexMatch #removing errors
should_run: ${filters.remove_code_errors}
text_key: ${output_key}
regex_patterns:
- 'Traceback (most recent call last)'
- '<output cut>'
- 'Timed out'
- 'SyntaxError'
test_cases:
- { input: { generation: "My solution:\n---Traceback (most recent call last)---\nSomething else" }, output: null }
- { input: { generation: "My solution:\nSome long output<output cut>\nSomething else" }, output: null }
- { input: { generation: "My solution:\nTimed out\nSomething else" }, output: null }
- { input: { generation: "My solution:\n[0;31mSyntaxError\u001b\nSomething else" }, output: null }
- { input: { generation: "My solution, no errors" }, output: { generation: "My solution, no errors" } }

- _target_: nemo_skills.training.data_preparation_utils.filters.DropIfRegexNotMatch # filtering out tool calling
should_run: ${filters.remove_no_code}
text_key: ${output_key}
regex_patterns:
- '<tool_call>'
- '</tool_call>'
test_cases:
- { input: { generation: "My solution:\n---<tool_call>---\nSomething else" }, output: null }
- { input: { generation: "My solution:\ncode</tool_call>\nSomething else" }, output: null }
- { input: { generation: "<tool_call>code</tool_call>" }, output: { generation: "<tool_call>code</tool_call>" } }

- _target_: nemo_skills.training.data_preparation_utils.filters.DropIfRegexNotMatch # filtering out if no think tags
should_run: ${filters.remove_no_think_tags}
text_key: ${output_key}
regex_patterns:
- '</think>'
test_cases:
- { input: { generation: "My solution:\n---</think>---\nSomething else" }, output: { generation: "My solution:\n---</think>---\nSomething else" } }
- { input: { generation: "<think>My solution:\n\nSomething else" }, output: null }
- { input: { generation: "<think>thinking</think>summary" }, output: { generation: "<think>thinking</think>summary" } }



- _target_: nemo_skills.training.data_preparation_utils.preprocessing.GroupSamples
group_key: ${input_key}

- _target_: nemo_skills.training.data_preparation_utils.preprocessing.ShuffleAndDownsampleData
num_samples: ${num_output_samples}
random_seed: ${random_seed}
do_shuffle: ${do_shuffle}

- _target_: nemo_skills.training.data_preparation_utils.preprocessing.WriteFinalSftManifest
output_manifest_file: ${output_path}
prompt_config: ${prompt_config}
tokenizer: ${tokenizer}
input_key: ${input_key}
output_key: ${output_key}
exclude_optional_keys: ${exclude_optional_keys}
Loading
Loading