Datasets:
Download media/usage-example.en.srt from Battam/training-data-foundation: direct link, hf CLI and curl.
- Browser
- Download file 4.07 kB
-
https://huggingface.co/datasets/Battam/training-data-foundation/resolve/refs%2Fpr%2F49/media/usage-example.en.srt
- Command line
-
hf download hf://datasets/Battam/training-data-foundation@refs/pr/49/media/usage-example.en.srt
-
curl -L -o usage-example.en.srt https://huggingface.co/datasets/Battam/training-data-foundation/resolve/refs%2Fpr%2F49/media/usage-example.en.srt
4.07 kB
| 1 | |
| 00:00:00,000 --> 00:00:02,556 | |
| To train an agent | |
| that works in a terminal, | |
| 2 | |
| 00:00:02,556 --> 00:00:06,360 | |
| we first need tasks, and tasks | |
| are built from real public files. | |
| 3 | |
| 00:00:06,360 --> 00:00:08,856 | |
| This is the data page of the public index; | |
| 4 | |
| 00:00:08,856 --> 00:00:12,897 | |
| each point is one source, | |
| layered by the training stage it can feed. | |
| 5 | |
| 00:00:12,897 --> 00:00:16,877 | |
| Under the name, the release | |
| the page reads, release-2026-11-12.13; | |
| 6 | |
| 00:00:16,877 --> 00:00:19,591 | |
| every command the page | |
| gives is pinned to it. | |
| 7 | |
| 00:00:19,591 --> 00:00:27,147 | |
| A drag turns the scene. | |
| 8 | |
| 00:00:27,147 --> 00:00:33,221 | |
| On the left, the training stages, | |
| each with what it can use. | |
| 9 | |
| 00:00:33,221 --> 00:00:37,019 | |
| We need material to build tasks from, | |
| so we pick post-training; | |
| 10 | |
| 00:00:37,019 --> 00:00:40,034 | |
| its layer comes forward, | |
| and the others step back. | |
| 11 | |
| 00:00:40,034 --> 00:00:45,146 | |
| On the right, the selection, | |
| 1,764 material sets, the largest first. | |
| 12 | |
| 00:00:45,146 --> 00:00:47,561 | |
| The index has two layers, counted apart. | |
| 13 | |
| 00:00:47,561 --> 00:00:51,607 | |
| Material sets are files picked | |
| from one source to build tasks from, | |
| 14 | |
| 00:00:51,607 --> 00:00:52,634 | |
| counted in units. | |
| 15 | |
| 00:00:52,634 --> 00:00:56,081 | |
| Corpora are whole upstreams read in bulk, | |
| counted in rows. | |
| 16 | |
| 00:00:56,081 --> 00:00:59,368 | |
| A first filter, Training, | |
| allowed for all rows, | |
| 17 | |
| 00:00:59,368 --> 00:01:02,096 | |
| so every file may be used for training. | |
| 18 | |
| 00:01:02,096 --> 00:01:06,149 | |
| The count on the right follows, | |
| 1,391 material sets. | |
| 19 | |
| 00:01:06,149 --> 00:01:07,416 | |
| A second filter, | |
| 20 | |
| 00:01:07,416 --> 00:01:13,036 | |
| a search for zenodo, a repository | |
| where researchers deposit their data. | |
| 21 | |
| 00:01:13,036 --> 00:01:17,083 | |
| 14 material sets are left. | |
| 22 | |
| 00:01:17,083 --> 00:01:21,048 | |
| A click on a source opens it, | |
| with its domain, layer, form, units, | |
| 23 | |
| 00:01:21,048 --> 00:01:23,391 | |
| size, license tier and training stages. | |
| 24 | |
| 00:01:23,391 --> 00:01:25,379 | |
| Its point is ringed in the scene, | |
| 25 | |
| 00:01:25,379 --> 00:01:28,331 | |
| and the list below the screen | |
| has its whole card. | |
| 26 | |
| 00:01:28,331 --> 00:01:33,334 | |
| The same points can be arranged by domain, | |
| 27 | |
| 00:01:33,334 --> 00:01:37,382 | |
| and back by training stage. | |
| 28 | |
| 00:01:37,382 --> 00:01:42,131 | |
| At the bottom, the one command that takes | |
| this selection, pinned to the release. | |
| 29 | |
| 00:01:42,131 --> 00:01:45,604 | |
| The index is a list of addresses, | |
| not a copy of the files; | |
| 30 | |
| 00:01:45,604 --> 00:01:49,017 | |
| the command fetches each file | |
| from where it is published. | |
| 31 | |
| 00:01:49,017 --> 00:01:51,261 | |
| We set units per source to at most 3, | |
| 32 | |
| 00:01:51,261 --> 00:01:54,656 | |
| so the command takes | |
| up to three units from each source. | |
| 33 | |
| 00:01:54,656 --> 00:01:58,667 | |
| We copy it and run it in a clean terminal. | |
| 34 | |
| 00:01:58,667 --> 00:02:01,884 | |
| We paste the command as the page gave it, | |
| and run it. | |
| 35 | |
| 00:02:01,884 --> 00:02:03,831 | |
| uv fetches the tool and runs it; | |
| 36 | |
| 00:02:03,831 --> 00:02:06,690 | |
| the tool reads the index | |
| at the pinned release. | |
| 37 | |
| 00:02:06,690 --> 00:02:10,555 | |
| Before downloading, it says | |
| what the default profile leaves out, | |
| 38 | |
| 00:02:10,555 --> 00:02:12,773 | |
| then what it takes from each source. | |
| 39 | |
| 00:02:12,773 --> 00:02:14,755 | |
| In all, this run takes 18 units. | |
| 40 | |
| 00:02:14,755 --> 00:02:18,508 | |
| Sped up: the fetch ran for 93 seconds, | |
| shown in 20 seconds. | |
| 41 | |
| 00:02:18,508 --> 00:02:22,453 | |
| Each file is checked against the size | |
| and hash the index records; | |
| 42 | |
| 00:02:22,453 --> 00:02:23,667 | |
| only a match counts. | |
| 43 | |
| 00:02:25,048 --> 00:02:29,324 | |
| The files are in data, a folder | |
| for each domain, and beside them _meta. | |
| 44 | |
| 00:02:29,324 --> 00:02:33,192 | |
| In _meta, manifest.jsonl lists | |
| each file with its size and hash; | |
| 45 | |
| 00:02:33,192 --> 00:02:35,307 | |
| fetch_manifest.jsonl logs each try. | |
| 46 | |
| 00:02:35,307 --> 00:02:39,346 | |
| fetch_run.json sums up the run, | |
| selection.json keeps the selection, | |
| 47 | |
| 00:02:39,346 --> 00:02:41,818 | |
| sizes.tsv each source's size and license. | |
| 48 | |
| 00:02:41,818 --> 00:02:46,067 | |
| From one need to checked files on disk, | |
| with the command the page gave. | |