JinchuanTian commited on
Commit
0bf70f2
·
verified ·
1 Parent(s): 7dec4d6

Link completed lossless ESPnet training format and preparation helper

Browse files
Files changed (1) hide show
  1. README.md +27 -0
README.md CHANGED
@@ -38,6 +38,33 @@ The public release has exactly two configurations:
38
  The original source groups are recorded as provenance inside each row; they do
39
  not create additional public configurations.
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  ## Loading the data
42
 
43
  Named Hugging Face configurations are deferred. Load a partition with an
 
38
  The original source groups are recorded as provenance inside each row; they do
39
  not create additional public configurations.
40
 
41
+ ## Prepare for ESPnet training
42
+
43
+ The complete [ESPnet-format release](https://huggingface.co/datasets/espnet/Bagpiper_SFT_Data_ESPnet)
44
+ preserves all 2,667,017 source rows, ordered text turns, and original
45
+ encoded audio bytes. It converts this Parquet schema into three-element dialogue
46
+ messages and portable audio files. Source `row_id` becomes the globally unique
47
+ ESPnet `example_id`; repeated training examples remain present.
48
+
49
+ ```bash
50
+ python -m pip install huggingface_hub zstandard
51
+ hf download espnet/Bagpiper_SFT_Data_ESPnet prepare_espnet.py --local-dir tools
52
+ python tools/prepare_espnet.py \
53
+ --repo-id espnet/Bagpiper_SFT_Data_ESPnet --data-root /path/to/bagpiper-general-sft
54
+ ```
55
+
56
+ The helper verifies archive/audio hashes, resolves local paths, and writes
57
+ `prepared/<partition>/{all,train,valid}.json` plus `dialogues.jsonl`. Add
58
+ `--max-shards 2` for a small trial and repeat `--partition NAME` to select
59
+ applications. Audio SHA256 determines the suggested 1% validation split;
60
+ `all.json` retains the original training pool. The split is not the paper's
61
+ official split. Prepare token-length statistics with the checkpoint-compatible
62
+ configuration as shown in the converted release's README.
63
+
64
+ See its [full release validation](https://huggingface.co/datasets/espnet/Bagpiper_SFT_Data_ESPnet/blob/main/RELEASE_VALIDATION.json)
65
+ and [public download/ESPnet reader checks](https://huggingface.co/datasets/espnet/Bagpiper_SFT_Data_ESPnet/blob/main/PUBLIC_DOWNLOAD_VALIDATION.json).
66
+ This conversion preserves the original source selection and applicable terms.
67
+
68
  ## Loading the data
69
 
70
  Named Hugging Face configurations are deferred. Load a partition with an