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:    TypeError
Message:      Couldn't cast array of type
struct<BENIGN: int64, SUSPICIOUS: int64>
to
{'BENIGN': Value('int64')}
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 2312, in cast_table_to_schema
                  cast_array_to_feature(
                  ~~~~~~~~~~~~~~~~~~~~~^
                      table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      feature,
                      ^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1861, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                                           ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2068, in cast_array_to_feature
                  _c(array.field(name) if name in array_fields else null_array, subfeature)
                  ~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1863, in wrapper
                  return func(array, *args, **kwargs)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2158, in cast_array_to_feature
                  raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
              TypeError: Couldn't cast array of type
              struct<BENIGN: int64, SUSPICIOUS: int64>
              to
              {'BENIGN': Value('int64')}

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.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

edr-dataset — EDR-AI training dataset (v2)

ChatML training dataset for the EDR-AI verdict model (edr-ai, Qwen2.5-3B-Instruct, GGUF, served via LM Studio). 6400 records — system = runtime system prompt, user = one Sysmon event, assistant = strict JSON verdict (reasoning, classification, risk_score, tactics, techniques, confidence, evidence, recommended_actions).

Class balance: BENIGN 2200 / SUSPICIOUS 1800 / MALICIOUS 1600 / MINER 800, 264 scenario families, 8 environment contexts, all 6400 inputs unique. The set was built to fix the weak spots measured in the previous round: SUSPICIOUS hard negatives across the full 4–8 risk band, BENIGN lookalikes of suspicious shapes, and broader MALICIOUS/MINER diversity.

Evaluation history:

round holdout accuracy note
v8 — 2026-08-27 leaked into training 87.2% partially memorized, reference only
v9 — 2026-09-01 frozen, leak-checked 97.8% shipped build, see eval_reports/round_2026-09-01_v9.md

Files (public release)

File Purpose
dataset_chatml_cot.json Full dataset — 6400 records, self-validated
dataset_train.json Training export — the 320 frozen holdout records are excluded (6080 records)
test_heldout.json Frozen holdout — 320 records, 80 per class; never train on it
system_prompt.txt The system prompt; must stay byte-identical between training data and runtime
colab_train_edr.ipynb Reproducible QLoRA training (unsloth, T4) + honest holdout evaluation
run_checks.py One-shot dataset-side regression gate
make_train_set.py Refreshes dataset_train.json (holdout excluded) after dataset rebuilds
make_holdout.py Holdout freezing (do not regenerate between rounds)
split_1_4.py, inspect_dataset.py Split / inspection utilities
eval_model.py, compare_evals.py Model-side gate: evaluate a served GGUF against the holdout
thresholds.json Ship gate: accuracy ≥ 0.95, json_valid ≥ 0.98
eval_reports/ All evaluation runs + round write-ups

Notes:

  • The scenario generator is not published — the dataset ships as validated JSON only.
  • eval_model.py imports SYS_PROMPT, LM_URL and validate_verdict from edr_agent.py (runtime repo: edr-ai) — copy it next to this folder to run the gate.
  • Public release normalization: 101 legacy records carried a real Windows account/machine name captured before the generator went fully synthetic; all identity strings were replaced with a synthetic equivalent. Record counts and classifications are unchanged (see provenance in eval_reports/round_2026-09-01_v9.md).

Usage

python run_checks.py          # dataset-side regression gate
python make_train_set.py      # refresh training export after rebuilds
# train in Colab on dataset_train.json (NOT dataset_chatml_cot.json)
# evaluate a served build:
python eval_model.py --workers 8 --model <lm-studio-model-id>
python compare_evals.py       # round-over-round table

Metrics from rounds before v9 are not comparable: the old holdout was sampled from the same file training used (partial memorization). Since v9 the holdout is frozen and excluded from training.

Export rule (QLoRA → GGUF) — mandatory

Export GGUF only from the training composite: load lora_adapters with unsloth on the bnb-4bit base and call save_pretrained_gguf directly. The adapter compensates the 4-bit quantization error of its training base — merging it onto a full-precision base (plain peft merge_and_unload, or save_pretrained_merged / merged_16bit artifacts) silently destroys MALICIOUS escalation while the output still looks perfectly formatted and confident. Full write-up: eval_reports/round_2026-09-01_v9.md.

Contract

  • System prompt byte-identical between training data and runtime.
  • Assistant output: one JSON object, fixed key order reasoning, classification, risk_score, tactics, techniques, confidence, evidence, recommended_actions; risk bands BENIGN 1–3, SUSPICIOUS 4–8, MALICIOUS 9–10, MINER 8–10; class-derived action sets.
  • Validator enforces: JSON shape/key order, risk bands, ATT&CK technique→tactic mapping, explicit miner evidence, prompt byte-match, no duplicates, no Cyrillic, EventID/EventType consistency, truncation acknowledgement, reasoning template.
Downloads last month
-