What happened
TinyStories is described as two million short stories for young children. The example script runs unchanged on a Mac, NVIDIA GPU or CPU. (github.com) For a remote job, the wrapper copies the project folder to a private Hub storage bucket, excluding hidden files and folders, __pycache__ and out/; it installs requirements.txt and invokes the script with the same command used locally. (github.com) It links the job's out/ directory to the bucket so outputs persist after the job machine is deleted. The training script saves out/model.pt, prints loss, speed and estimated time remaining every 100 steps, and emits a generated story every 2,000 steps. (github.com) A separate sample.py script generates stories with the trained model. The job runs in the background, and the wrapper prints its ID. (github.com)
The README reports about 12 hours on an M4 Pro MacBook Pro versus about 30 minutes on an A100 through Hugging Face Jobs, and describes the A100 run as costing $1. (github.com) These are repository-reported figures, not benchmarks established here.
What the archive adds
This sits alongside earlier Hugging Face Jobs fine-tuning coverage: the focus here is a minimal path for running a training script remotely.
Why it matters
For another project, the wrapper can work without changing the training command if the script's dependencies are in requirements.txt, its outputs go to out/ (or you change the wrapper's OUT line), and its data is downloaded from the Hub or a URL. Only code is sent to the job, so local-only datasets will not arrive with it.
Limits and uncertainty
The runtime and cost numbers are stated in the repository README and are not independently measured here. (github.com)
Skill to build now
For local execution, use uv run --with-requirements requirements.txt train.py. (github.com) Remote GPU use requires a Hugging Face account with a PRO subscription or credits; log in with hf auth login. (github.com) Then launch an A100 job, with a two-hour maximum runtime, using ./run_on_hf.sh train.py a100-large. Another example is ./run_on_hf.sh train.py l4x1 4h. (github.com) There is no default GPU flavor; hf jobs hardware lists flavors and prices. (github.com) Follow progress with hf jobs logs -f <job id>. (github.com)
Reader takeaway
The useful part is the wrapper: it packages project code, installs requirements and preserves outputs in a Hub bucket while running the same script remotely. It is reusable, but data must be fetched from the Hub or a URL, and results need to land in out/ unless you edit the wrapper.