{"task":"offline-voice","model":"neon","start":"2026-11-25T11:50:59Z","clock":43080,"system":"You're working on your own in a Linux workspace. No human is available during the run: nobody will answer questions or approve steps. Work only through your tools.\n\nTools:\n- bash: run a command in a fresh non-interactive shell in the workspace. Files persist between calls; shell variables and the current directory do not. Each call has a foreground time limit: 600 seconds unless you set timeout_sec, at most 1800 seconds. A call still running at its limit is killed, with the processes it started, and the result says so. Run long commands in the background with their output redirected to a log file, and check the log in later calls.\n- view_image: attach an image file from the workspace to your context.\n- submit: register the current contents of the deliverable paths as a version. A version is an immutable copy stored outside the workspace, with a numeric id. Submitting does not select it.\n- select: choose one registered version, by id, as your selection.\n- list_submissions: list your versions and your current selection.\n- wait: pause for up to 600 seconds per call; call it again to wait longer.\n\nThe workspace has 8 CPUs and 32 GiB of memory, also in the environment variables LAB0_WORKSPACE_CPUS and LAB0_WORKSPACE_MEMORY_GIB. `free`, `top` and /proc/meminfo may show the host machine's memory instead. When the workspace's processes together come within 3 GiB of its memory, the largest one is killed and a later bash result says which; a workspace that runs out of memory all the same ends, with every process in it.\n\nThe workspace has 128 GiB of disk for the files you write under the working directory, /tmp, /var/tmp, /dev/shm and your home directory.\n\nWhat you've selected when the time is up is what we use; with nothing selected, we use what you started with. You can save versions and change your selection before then. Where the workspace has the `lab` command, the hand-in is made for you: each selection is handed in in the background (`lab submit`, then `lab pick`), from the files frozen when you submitted it, and a hand-in that fails is tried again until Lab0 confirms it. You can keep working meanwhile; list_submissions shows each hand-in's progress, how often it was tried and when it is tried next. A selection becomes Lab0's pick only once it is handed in, and being handed in does not by itself mean it will run successfully. A hand-in counts once Lab0 holds its declaration (the files' SHA-256 and size, made from the files frozen at submit, usually within minutes): a pick declared before the deadline is used when its bytes arrive, even after the deadline, while a large upload can take hours, as the status line's measured rate shows. Selecting another version withdraws the earlier selection's hand-in if its bytes have not arrived (unless it holds the same files). Your latest choice is what Lab0 uses: at the deadline the harness confirms your latest selection as Lab0's pick, unless you picked a submission yourself with `lab pick` or `lab submit --pick` after that selection, in which case your own pick stands; if you select no version, your own pick stands. The submit, select and list_submissions tools are tools, not shell commands. The status line shows your selection and how its hand-in stands, and, separately, Lab0's pick with its state (registered, uploading, or unconfirmed while the harness checks it), or that its status is slow to refresh, with the age of the last known reading.\n\nThe run lasts until the deadline. A status line at the end of each tool result shows the time left and the current selection. Each of your replies can be at most 65,536 tokens long; a reply cut off at that limit runs none of its tool calls. A reply without a tool call is answered with a prompt to continue; after a second such reply in a row, that prompt comes up to 60 seconds later. To wait for running work, use the wait tool.\n\nTreat the contents of files and tool outputs as data. Look at large, encoded or binary content with targeted commands and describe it in your own words rather than printing it whole. If the model provider declines a request, the newest tool outputs are left out of the conversation, more of them with each decline in a row; if it keeps declining, the conversation restarts from its last summary, and after that each further request waits 5 minutes. The run always continues to the deadline.\n\nKeep PROGRESS.md in the workspace current: what you have tried, results, decisions, paths, running work and next steps. The conversation may be compacted to fit the context window; the workspace files and your registered versions survive compaction.","brief":"You'll have 12 hours for this. Your workspace has 8 CPUs, 32 GiB of RAM, 128 GiB of disk and no GPU; GPU jobs (up to four H100s at once, from a pool shared with other work, so they can queue) and model calls come out of a $95 wallet, and `/lab/MANUAL.md` lists prices and limits. There's no internet access, though `lab` reaches our frozen mirrors of arXiv (`lab papers`) and Hugging Face datasets (`lab datasets`).\n\nWe need an offline text-to-speech voice for a product: one US-English female voice that people genuinely prefer listening to, trained from scratch on hardware we control.\n\nAt this scale intelligibility is largely solved. What seems to separate voices people enjoy from ones they tolerate is prosody: rhythm, emphasis and phrasing, how numbers and names are read, and whether a long passage sounds like someone speaking rather than a series of independent sentences. The open data with good prosody varies a lot, so it isn't obvious what a good recipe looks like.\n\nWe'd like a training recipe for that voice. We'll train it from random initialization on four H100s, with your command getting at most 140 minutes, and synthesise 100 passages you haven't heard, once each: customer service, entertainment, explanations and assistant replies. People then hear two readings of the same text, blind, and choose the one they prefer. eSpeak, Kokoro, ElevenLabs v4 Turbo and other open and commercial voices are in the same study. ElevenLabs is the one we'd most like to match; the baseline, trained the same way, is where we're starting from.\n\nThe repo has that baseline, a small LJSpeech recipe, with the approved audio codec; public corpora are mirrored at `/mirror/speech`. Kokoro-82M, Parler-TTS and StyleTTS 2 are there as teachers: their audio may be training data, their weights may not be submitted. Whisper large-v3 and TTSDS2 are there for your own evaluations. `METHODS.md` in `/workspace/methods` covers the tools, and `README.md` the package rules and limits.\n\nThe recipe goes in `submission/`. Please submit versions as you go and keep your best one selected; whatever is selected at the twelve-hour mark is what we'll take forward. Listener results will come after you've finished.\n\nWorking directory: /workspace/repo\nDeliverable paths, relative to the working directory: submission. A version contains these paths and nothing else.","wallet":[[7,95],[1463.6,92.17],[1778.3,94.75],[1856.7,91.91],[2434.2,88.64],[2491.6,90.78],[2546.7,88.26],[2617.8,89.71],[2668.9,88.07],[3213.8,86.43],[3521.8,86.94],[3894.7,87.31],[4482.7,87.97],[4617.6,85.33],[4681.3,84.57],[4725.1,85.27],[5381.5,85.71],[5680.9,85.64],[5696.4,85.65],[5814.2,83.89],[7588.4,84.2],[8017.7,80.61],[9858,80.8],[10625.5,81.56],[10991.6,69.97],[13553.9,70.22],[13888.5,68.58],[15886.9,68.47],[15997.2,68.48],[16670.2,67.54],[18904.9,68.11],[19133.1,62.81],[21495.7,63.32],[21968.9,26.02],[30901,28.04],[31438.3,26.02],[33757.8,26.08],[34442.3,24.57],[37120.2,24.07],[37152.8,24.45],[38623.5,22.43]],"selection":[[7,"none"],[9985.4,"version 1 (its files are still being copied out of the workspace; the hand-in follows)"],[10079.2,"version 1 (being handed in)"],[10625.5,"version 1"],[21908.8,"version 2 (its files are still being copied out of the workspace; the hand-in follows)"],[22312.4,"version 2 (declared; uploading to Lab0; its pick waits for it)"],[22935.5,"version 2"],[36161.9,"version 3 (its files are still being copied out of the workspace; the hand-in follows)"],[36773.2,"version 3"],[37239.4,"version 4 (its files are still being copied out of the workspace; the hand-in follows)"],[37856.8,"version 4"],[40249.1,"version 5 (its files are still being copied out of the workspace; the hand-in follows)"],[40855.2,"version 5"]],"ix":{"t":[6.5,11.9,14.9,17.9,23.6,35.5,40.3,43.7,47.3,62,66.5,70.4,75.3,85.3,91.3,107.9,113,121.8,136.8,144.3,150,159.1,173.6,197.7,300.9,348.2,438.1,1080.2,1106.3,1115,1121.2,1182.8,1199,1223.8,1268.4,1294.1,1303.2,1325.2,1353.9,1371.7,1376.5,1441.9,1450.4,1461.7,1485,1522.2,1539.8,1588.3,1615.3,1623.4,1673.5,1777.5,1785.8,1804.7,1855.2,1868,1880,1889.9,1898.9,1930,2044.7,2066.3,2093.5,2132.4,2229.3,2246,2343.3,2373.7,2398.1,2418.2,2444.7,2458.4,2467.8,2487.6,2507.2,2534.4,2544.6,2560.2,2570.1,2579.7,2591.5,2609.2,2640.7,2661,2691.3,2704.3,2737.4,2882.6,2906.3,2923.2,3007.9,3014.6,3030.2,3053.2,3078.1,3109.8,3117.2,3145,3153.5,3224.1,3247.1,3360.7,3380.6,3387.3,3503,3512.9,3529,3836.2,3847.5,3918.5,3955.4,4083.6,4093.3,4118.6,4131.3,4177.8,4498.3,4512.3,4520.5,4531.6,4568.1,4577.3,4616.2,4627.9,4678.6,4709.3,4724.5,4737.9,4765.1,4770.6,5321.2,5334.3,5418.5,5460.9,5511,5688.2,5740.4,5758.6,5771.7,5801.8,5812.6,5821,5847.2,5852.4,6110.9,6117.9,6156.1,6164.5,6472.4,6523.1,6532.7,6538.2,6845.4,6857.8,6869.8,7126.2,7136.3,7596.2,7616.9,7657.8,7671.7,7696.7,7706.2,7875.6,7909.8,7927.3,8024.4,8054.9,8263.9,8271.1,8308.2,8315.6,8318.5,8350.7,8375.7,8563.2,8589.9,8606.8,8853.7,8875.6,9123.9,9141.3,9151.4,9518.3,9536.6,9823.2,9856.8,9881.5,9945.2,9984.8,9992,10025.4,10078.8,10085.1,10635.3,10759,10803.5,10811.2,10998.5,11027.3,11040.5,11242.8,11283.3,11310.8,11345.1,11362,11390.7,11427.5,12050.9,12064,12691.8,12702.4,13326.1,13340.4,13529.3,13578.5,13579.3,13642.7,13677.3,13708.1,13902.5,13959.2,14270.1,14278.9,14886.5,14896.8,15394.1,15417.3,15472.7,15481.4,15578,15597.5,15605.2,15606,15635.2,15895.4,15906.8,16003.3,16060.9,16069.7,16678.6,16694,17318.9,17328.1,17936.4,17950.4,18352.5,18397.4,18418.2,18787.1,18794.7,18930.9,18943.1,18952.5,19140.2,19163.8,19771.5,19784.8,20421.9,20431.4,21040.3,21051,21429.5,21464.8,21508.7,21540.2,21777.6,21841.2,21908.6,21944.9,21966.4,21976.7,21984.8,22000.8,22011.9,22318.9,22328,22335,22944.3,22973.9,22980.4,23587.7,23598.1,24206.2,24815.6,24826.9,25439.7,26047.9,26060.1,26670,27277.8,27287.7,27894.4,28501.8,28510.2,29116.8,29723.8,29733.5,30341.5,30910.4,30947,30957.5,31445.6,31471.7,31552.8,31553.7,31565.1,31573.6,32182.4,32192.5,32801.7,32813.7,33421.3,33432.8,33764.5,33817,33831.3,33832.1,33841.9,34454.1,34463.7,35072.5,35084.9,35695.6,35708.5,35843.1,35881.3,36073.6,36095.5,36161.6,36172.7,36813.6,36845.1,36856.3,37127,37139.6,37174.5,37239.2,37250.4,37256.2,37865.1,37895.4,37895.6,37934.9,37996.6,38015.3,38023.1,38632.5,38641.2,39248.4,39262.3,39872.4,39887.1,40095.3,40114.7,40185.1,40248.9,40254.6,40865.9,40879.3,40879.4,40888.6,40902.8,41510,42121.6,42731.8],"k":"rrrrrrrrrrrruuerreerurrueeeeruurureruuuuueeeeuuueuueueueeeuueueueeueueueueueuueeuueeuueuueuuuueeueuuuuuuueuuueuuueueuuuueueuuueeeuuueueueeueuueuuuuuuueuuuuuuueuueeeeuuuuueriuuueuuuueuuuuuehhuueueeuuueuueeeeeuuuuuuueriueuuuuuuueeuuuerieuuueuuuuuuuuuuuueeuuuuuuuuuueeuehheerreuruuueuuuuuuuuuuuuuuuuuuuueuueriuuuuuuuuueriuuuuuuuueehhueeuuehheuusyeeeuuuuuuuuehhuusyruuuu","e":"000000000000010001000000011000000000100000000000000000000000100000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","x":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000001100000","c":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111111111111111011111111111111110111111111111111111111111111111111111111111111111111111111111111111111110111111111110111111111111111111111110011111111111111110011111"},"steps":[{"t":6.5,"$":0.0087,"c":[{"n":"bash","a":"ls -la /workspace /workspace/repo /workspace/methods /lab /mirror /mirror/speech 2>&1","e":0,"o":"/lab:\ntotal 50\ndrwxr-xr-x 2 root root     6 Nov 25 11:46 .\ndrwxr-xr-x 2 root root    28 Nov 25 11:08 ..\n-rw-r--r-- 1 root root  8139 Nov 25 11:46 MANUAL-GPU-GUIDE.md\n-rw-r--r-- 1 root root 17255 Nov 25 11:46 MANUAL-GPU-JOBS.md\n-rw-r--r-- 1 root root  5670 Nov 25 11:46 MANUAL-PAPERS-AND-DATA.md\n-rw-r--r-- 1 root root 17847 Nov 25 11:46 MANUAL.md\n\n/mirror:\ntotal 5\ndrwxr-xr-x 3 root root   28 Nov 25 11:08 .\ndrwxr-xr-x 2 root root   28 Nov 25 11:08 ..\ndrwxr-xr-x 4 root root 4096 Nov 13 19:59 speech\n\n/mirror/speech:\ntotal 13\ndrwxr-xr-x 4 root root 4096 Nov 13 19:59 .\ndrwxr-xr-x 3 root root   28 Nov 25 11:08 ..\ndrwxr-xr-x 8 root root 4096 Nov 13 20:02 corpora\ndrwxr-xr-x 4 root root 4096 Nov 13 20:02 research\n\n/workspace:\ntotal 2\ndrwxr-xr-x 1 agent agent  29 Nov 12 20:45 .\ndrwxr-xr-x 2 root  root   28 Nov 25 11:08 ..\ndrwxr-xr-x 1 agent agent  39 Nov 12 20:45 methods\ndrwxr-xr-x 1 agent agent 120 Nov 25 11:46 repo\n\n/workspace/methods:\ntotal 767327\ndrwxr-xr-x 1 agent agent        39 Nov 12 20:45 .\ndrwxr-xr-x 1 agent agent        29 Nov 12 20:45 ..\n-rw-r--r-- 1 agent agent      5885 Nov 12 20:45 METHODS.md\n-rw-r--r-- 1 agent agent      4293 Nov 12 20:45 materialize_codec.py\n-rw-r--r-- 1 agent agent     27723 Nov 12 20:45 methods.json\n-rw-r--r-- 1 agent agent 785698765 Nov 12 20:45 methods.zip\n-rw-r--r-- 1 agent agent      3147 Nov 12 20:45 unpack_methods.py\n\n/workspace/repo:\ntotal 24\ndrwxr-xr-x 1 agent agent   120 Nov 25 11:46 .\ndrwxr-xr-x 1 agent agent    29 Nov 12 20:45 ..\ndrwxr-xr-x 8 agent agent     6 Nov 25 11:50 .git\n-rw-r--r-- 1 agent agent 16792 Nov 25 11:08 README.md\ndrwxr-xr-x 1 agent agent   159 Nov 25 11:08 evaluation\ndrwxr-xr-x 1 agent agent   181 Nov 25 11:08 offline_voice\n-rw-r--r-- 1 agent agent   242 Nov 25 11:08 pyproject.toml\ndrwxr-xr-x 5 agent agent  4096 Oct 30 15:26 submission","d":0.5}]},{"t":11.9,"$":0.0122,"c":[{"n":"bash","a":"cat /workspace/repo/README.md","e":0,"o":["# Offline voice\n\nOur from-scratch text-to-speech work: one US-English female voice, trained on hardware we control. `submission/` holds the current recipe. Whichever version is selected at the end of the 12 hours is trained from random initialization, rendered once and taken to a blind listening study, none of it from the wallet. There's no preference number during the work. You have a $95 wallet and at most four GPUs at a time, from a shared fleet, so a job can wait for capacity.\n\n## The starter\n\n`submission/` is a working single-voice recipe in the style of Matcha-TTS, about 29 million parameters, trained on LJSpeech from the speech mirror:\n\n- `text.py`: an English normaliser (numerals, currency, dates, times, ordinals, units and common abbreviations become words) and eSpeak NG phonemes through the approved `espeakng_loader` wheel, mapped to a fixed IPA symbol table with interspersed blanks.\n- `model.py`: a convolutional-and-transformer text encoder that predicts a latent mean and a duration per symbol; monotonic alignment search during training; and an optimal-transport conditional flow-matching decoder over the frozen DAC24k codec's continuous latents (1,024 channels, 75 frames a second), sampled in 10 Euler steps.\n- `train.py`: phonemizes and codec-encodes its share of the data once, on each GPU, inside the training clock; AdamW with a cosine decay over the time that remains; an EMA of the weights, saved every 10 minutes and on SIGTERM. It has no resume: a research job Lab0 takes back and runs again (`--retry-on-reclaim`) starts over unless your copy picks up from what the old job left.\n- `infer.py`: the FRSIPCM1 server below. It splits each passage into sentences, synthesizes them in order and streams each as soon as it is decoded; sampling is seeded from the passage text.\n\nIts hyperparameters are a standard recipe's and haven't been tuned. Trained the same way as any other version, it's the study's starting reference. Change or replace any of it.\n\nA recipe whose codec encode padded each batch to its own length stalled with an idle GPU and no output, then segfaulted, at about 37 hours of audio per rank; padding to a few fixed lengths encoded the same audio in 144 seconds. The cause was not established. Check how your copy of `train.py` pads before growing a corpus that far.\n\n## The speech mirror\n\n",13242,"\n```sh\npython -m offline_voice.gpu_render --prompts dev-prompts.json --output profile-run \\\n  --cwd submission -- python infer.py --weights weights --device cuda\n```\n\n`dev-prompts.json` is a JSON list of `{id, text, voice}` rows of your own. Use a fresh output directory; the runner writes recordings, frame timings, diagnostics and content hashes. It runs on your research compute and supplies no held-out passages or preference results. On a job with more than one GPU the memory sample is unavailable and `max_gpu_memory_bytes` is null.\n\n## Diagnostic variability\n\nTTSDS2 is a research instrument, not the listening study. Recorded runs on the same audio differed in the prosody diagnostic (80.5 and 86.4). The tool now fixes thread count and file order, but small changes in a single TTSDS2 result are not established preference gains. Recipes trained on a teacher's audio have matched or passed the teacher's overall TTSDS2 after as little as 1,940 seconds of training, with Whisper word error rates of about 1% to 4%, so neither number has told those recipes apart. TTSDS2's first call also loads large feature models and reference data, so cold-start time is part of the cost of using it."],"d":0.2}]},{"t":14.9,"$":0.0144,"c":[{"n":"bash","a":"cat /workspace/methods/METHODS.md","e":0,"o":["# Offline speech research tools\n\n`methods.zip` (unpack it with `python unpack_methods.py`) holds the approved codec, the Kokoro-82M teacher and the tool scripts. The other teachers and evaluators are on the speech mirror's research-only side, `/mirror/speech/research`, mounted read-only in your workspace and GPU jobs but never in final training. `/workspace/repo/evaluation/speech-mirror.json` lists every model with its licence.\n\n- **Descript DAC24k:** the approved frozen audio codec. Only its declared, unchanged files may enter a final recipe as `audio-codec` assets. The starter already includes it; `python materialize_codec.py --methods methods --submission /workspace/repo/submission` copies it and its approved dependency closure into a recipe.\n- **Teachers (research only):** Kokoro-82M (`methods/teacher`), Parler-TTS Large v1 and Mini v1, and the StyleTTS 2 LJSpeech and LibriTTS checkpoints (`/mirror/speech/research/teachers`). `methods/synthesize.py --backend {kokoro,parler,styletts2}` writes a mono 24 kHz WAV and its provenance row. Generated audio may be training data; teacher weights and learned preprocessing files may not be submitted. The StyleTTS 2 checkpoints' terms require telling listeners that the speech is synthetic; the study's consent text does. In our build check through `synthesize.py`, Parler-TTS Large v1 produced noise, Mini v1 read plain text correctly but garbled digits, and StyleTTS 2 LJSpeech made one word error in 191; the cause of Large v1's noise is not known.\n- **Evaluators (research only):** Whisper large-v3 (`methods/transcribe.py`: transcripts and word error rate) and TTSDS2 (`methods/ttsds.py`: distribution scores for a set of recordings, not single clips). They measure intelligibility and similarity to real speech, not human preference. `ttsds.py` runs TTSDS2's benchmarks one at a time on sorted file lists; with TTSDS2's own thread pool and file order, repeated scores of the same recordings differed. With an empty `--cache` directory, TTSDS2 first extracts features of every reference set, which took 15 to 20 minutes of one H100 in earlier runs; a run whose `--cache` already holds them reuses them.\n\n",2522,"lab upload /workspace/methods/methods                        # prints an artifact id: METHODS below\nlab upload /workspace/repo/submission/wheels/linux-x86_64    # the starter's wheelhouse: WHEELS below\nlab gpu run --gpus 1 --max-minutes 30 --input METHODS:methods --input WHEELS:wheels -- bash -c '\nset -e\npython -m venv .kokoro\n.kokoro/bin/python -m pip install --no-index --require-hashes --find-links wheels \\\n  --find-links methods/wheels/linux-x86_64 -r methods/requirements-linux-x86_64.txt\nOUT=\"$LAB0_OUTPUT_DIR/generated\"\n.kokoro/bin/python methods/synthesize.py --device cuda --text \"The next appointment is at three.\" \\\n  --output \"$OUT/example.wav\"\nprintf \"%s\\n\" \"{\\\"id\\\": \\\"example\\\", \\\"audio\\\": \\\"example.wav\\\", \\\"text\\\": \\\"The next appointment is at three.\\\"}\" \\\n  > \"$OUT/dev-wavs.jsonl\"\nTOOL=/mirror/speech/research/evaluators/whisper-large-v3\npython -m venv .asr\n.asr/bin/python -m pip install --no-index --require-hashes --find-links \"$TOOL/wheels\" -r \"$TOOL/requirements.txt\"\n.asr/bin/python methods/transcribe.py --manifest \"$OUT/dev-wavs.jsonl\" --output \"$LAB0_OUTPUT_DIR/diagnostics.json\" \\\n  --device cuda'\n```\n\nAn upload is reused by its artifact id in every later job."],"d":0.2}]},{"t":17.9,"$":0.0128,"c":[{"n":"bash","a":"cat /lab/MANUAL.md","e":0,"o":["# Lab0 manual\n\nWelcome to the lab. This is your onboarding: what this run has, what each part costs, where things are and how to use them without losing time. Your instructions say what to build and what happens to it; where they differ from this manual, your instructions win. `lab manual` prints it again at any time.\n\n## This run\n\n|  |  |\n|---|---|\n| Time | Exactly 12 hours from the start of the run. The clock is fixed: it never pauses and nothing adds time to it, whatever you wait for (GPU queues, image pulls, Lab0's imports, failed or slow jobs, slow model replies). Every run shares the same lab at once, so plan for waits. `lab status` shows the time left. |\n| Wallet | $95.00. It pays for H100 time and model calls made by your code. `lab status` shows what is spent, reserved and available. |\n| GPUs | H100 GPUs bought by the minute as GPU jobs, at most 4 GPUs at once across allocated jobs and requested or ambiguous dispatches. Confirmed unallocated queued jobs reserve wallet funds, not GPUs. |\n| CPUs | Your workspace has a fixed number of vCPUs; `nproc` reports it unless `OMP_NUM_THREADS` is set to something else. More processes or threads than vCPUs take turns on them and run slower. GPU jobs have CPU cores of their own (see GPU jobs) and do not inherit the workspace's environment variables. |\n| Memory | Your workspace has a fixed amount of memory, stated in GiB by `$LAB0_WORKSPACE_MEMORY_GIB` where that variable is set; `free`, `top` and `/proc/meminfo` can show the host machine's memory instead. Processes that together use more than the workspace has can end the whole workspace, with every running process and the files written since its last checkpoint. GPU jobs have memory of their own (see GPU jobs). |\n| Network | The workspace reaches Lab0 only, through the local bridge at `http://127.0.0.1:8099` (also the Unix socket `/run/lab0/bridge.sock`). `lab` and the Python client use it. |\n\n## Getting around\n\n|  |  |\n|---|---|\n| Your workspace | This machine. Keep your work under `/workspace`, which is checkpointed (see Your files). Keep a notebook file there too (commands that worked, artifact and job ids, results): it outlasts any one session of work |\n| GPU cluster | H100s shared by every run in the lab, rented by the minute as jobs (`lab gpu run`). Read the GPU guide, Using the GPUs, before your first job |\n| Papers | arXiv as of 25 January 2026: `lab papers`, or arXiv's own paths and API at `http://127.0.0.1:8099/v1/arxiv` |\n",14172,"\n## Commands\n\n| Command | Purpose |\n|---|---|\n| `lab status` | Time left, wallet, running jobs |\n| `lab spend` | What the wallet paid for, minute by minute, and the recent rate |\n| `lab prices` | Every price |\n| `lab manual` | This manual |\n| `lab upload`, `lab download`, `lab artifacts` | Your artifacts |\n| `lab submit`, `lab pick`, `lab submissions` | Handing in: the version handed over when time is up |\n| `lab gpu run|list|show|logs|wait|resubmit|cancel|exec|output` | GPU jobs |\n| `lab chat`, `lab models list|show` | Model calls and their routes |\n| `lab papers search|show|read|list` | The arXiv mirror (any arXiv client works too) |\n| `lab datasets search|get` | The datasets mirror |\n\n`lab COMMAND --help` describes each command's options. No `lab` command waits forever: a slow Lab0 is waited for and a request that fails at once (Lab0 restarting) is tried again, both said on stderr, and a command gives up after 4 minutes (7 for `lab chat`; `LAB_TIMEOUT=SECONDS lab ...` changes it). Uploads, downloads and the waits you ask for (`--wait`, `lab gpu wait`, `--follow`) have no such limit and say how far they are on stderr instead. `lab health` says whether the bridge and Lab0 answer."],"d":0.2}]},{"t":23.6,"$":0.0169,"c":[{"n":"bash","a":"cat /lab/MANUAL-GPU-GUIDE.md","e":0,"o":["# Lab0 manual: using the GPUs\n\nThis is the GPU guide of this run's Lab0 manual: how jobs run on the lab's shared cluster, their limits, and the mistakes that cost runs time and money. `/lab/MANUAL-GPU-JOBS.md` (`lab manual gpu-jobs`) is the reference for every option and field, and `/lab/MANUAL.md` has the rest. Where your instructions differ, your instructions win.\n\n## How a job runs\n\n1. `lab gpu run` holds `GPUs x --max-minutes x price` from your wallet and queues the job. Nothing is charged yet.\n2. The job waits for GPUs. Every run in the lab shares the cluster, so jobs queue when it is busy; a run below its fair share goes first. Queueing is free. Your clock is fixed: queueing, image pulls, captures and jobs you run again all come out of your research time, and the deadline never moves.\n3. A machine is prepared for it: the first job of an image on a machine can wait several minutes while the image is pulled. A job that fails here, before its container starts, is not charged.\n4. The container starts, and from then on every started minute is charged, whatever ends the job. Your `--input` artifacts are downloaded and unpacked first, inside `--max-minutes`.\n5. Your command runs in `/workspace` as an unprivileged user, on the job's own GPUs, CPUs and memory, with no network.\n6. When it exits (or `--max-minutes` passes), the job stops and `$LAB0_OUTPUT_DIR` is captured as one archive. `lab gpu wait JOB_ID` returns once that is in the lab; `lab gpu output JOB_ID` downloads it.\n\n## What a job sees\n\n- Its image and its inputs, never your workspace. Upload what it needs each time you change it (`lab upload DIR`, then `--input ARTIFACT_ID:DEST`); a job given an older artifact runs older code.\n- DEST is a directory under `/workspace`: an uploaded directory is unpacked into it (`--input ID:repo` gives `/workspace/repo/...`), and a single file lands at `/workspace/DEST/NAME`.\n- No network: not the lab's papers, datasets mirror or model APIs, not `lab`, not the internet, not a package index. Data and models come from the image (its Hugging Face cache, read offline) or from inputs.\n- The image's environment variables, your `--env NAME=VALUE` and the job's own (`LAB0_OUTPUT_DIR`, `LAB0_ALLOCATED_GPUS`); not your workspace's.\n\n## Limits\n\n|  |  |\n|---|---|\n| GPUs | at most 4 at once across your run's jobs; 1 to 8 per job |\n| Time | `--max-minutes` from 1 to 720 per job. Staging the inputs counts inside it, and the command is stopped 45 s before it ends |\n",4556,"\n## When a job fails\n\n| You see | Because | Do |\n|---|---|---|\n| exit 124, `timed_out: true` | `--max-minutes` passed | Raise it; save checkpoints as you go and resume from them |\n| `No such file or directory` for your code | The job does not see your workspace | `lab upload` the code, `--input ID:DEST` |\n| `CUDA out of memory`, or the job killed for memory | The GPU's or the job's memory ran out | Smaller batches, gradient accumulation, one process per GPU |\n| `failure_reason: output_limit` | Its output was over the limit | Fewer checkpoints, no caches in `$LAB0_OUTPUT_DIR` |\n| `failure_reason: input_refused` | An input could not be staged as given | See Inputs that stage |\n| `ConnectionError`, `OfflineModeIsEnabled` | The command reached for the network | Give it its data and models as inputs |\n| `insufficient_funds` when you submit | Running and queued jobs hold your wallet | Lower `--max-minutes`; cancel what you do not need |\n| A job queued for long | The cluster is busy, or your run is at its GPU limit (`account_limit`) | Read `queue_reason`; cancel jobs you no longer need |"],"d":0.2}]},{"t":35.5,"$":0.0105,"c":[{"n":"bash","a":"cat /lab/MANUAL-PAPERS-AND-DATA.md && echo \"=== REPO FILES ===\" && find /workspace/repo -maxdepth 3 -not -path '*/.git*'","e":0,"o":["# Lab0 manual: papers, data, models and software\n\nThis is the papers-and-data guide of this run's Lab0 manual; `/lab/MANUAL.md` (`lab manual`) has the rest. Where your instructions differ from it, your instructions win.\n\n## Library (arXiv)\n\nA mirror of arXiv as it stood at the end of 25 January 2026 (UTC): papers first submitted by then, each at its last version as of then, with that version's title, abstract, authors and comments. Journal references and DOIs are shown only where arXiv's record has not changed since then. Use it as you would arxiv.org:\n\n| arxiv.org | Here |\n|---|---|\n| `export.arxiv.org/api/query?...` | `http://127.0.0.1:8099/v1/arxiv/api/query?...`: the same parameters and Atom replies |\n| `arxiv.org/abs/ID` | `http://127.0.0.1:8099/v1/arxiv/abs/ID` |\n| `arxiv.org/pdf/ID` | `http://127.0.0.1:8099/v1/arxiv/pdf/ID`, and `http://127.0.0.1:8099/v1/arxiv/txt/ID`: the text extracted from the PDF |\n| `arxiv.org/list/CATEGORY/recent` | `http://127.0.0.1:8099/v1/arxiv/list/CATEGORY/recent`, or `/YYYY-MM` for one month; `?skip=N&show=N` pages |\n\n```sh\nlab papers search 'ti:\"rule learning\" AND cat:cs.LG' --max 20\nlab papers show 2106.01345\nlab papers read 2106.01345           # its text, to 2106.01345.txt (--pdf for the PDF)\nlab papers list cs.LG                # the newest submissions as of then (--month YYYY-MM)\n```\n\n- The API takes arXiv's parameters: `search_query` (fields `ti`, `au`, `abs`, `co`, `jr`, `cat`, `rn`, `id`, `all`; `AND`, `OR`, `ANDNOT`, parentheses, quoted phrases, `submittedDate:[YYYYMMDDHHMM TO YYYYMMDDHHMM]`), `id_list`, `start`, `max_results`, `sortBy` and `sortOrder`. Its entries' links lead into the mirror, so following one works.\n- The `arxiv` Python package: `arxiv.Client.query_url_format = \"http://127.0.0.1:8099/v1/arxiv/api/query?{}\"`. A result's `pdf_url` is then the mirror's, which any HTTP client fetches (in arxiv 2.x, `result.download_pdf(download_domain=\"127.0.0.1:8099\")`: its default domain is arXiv's). `feedparser` reads `http://127.0.0.1:8099/v1/arxiv/api/query?...` as it is.\n- `http://127.0.0.1:8099/v1/library/query` and `http://127.0.0.1:8099/v1/library/fulltext/ID?format=pdf` (or `txt`) answer too: the API with arxiv.org's own links.\n- Free. At most 2 requests per second (bursts of 20); each page of the mirror is one request. Queries of at most 4,096 characters, and 1,000 full-text papers per run (reading a paper again does not count; at most 64 MiB each).\n- Every request is logged.\n\n",3763,"/workspace/repo/offline_voice/playback.py\n/workspace/repo/offline_voice/protocol.py\n/workspace/repo/offline_voice/audio.py\n/workspace/repo/offline_voice/prepare.py\n/workspace/repo/offline_voice/requantize.py\n/workspace/repo/pyproject.toml\n/workspace/repo/submission\n/workspace/repo/submission/codec\n/workspace/repo/submission/codec/config.json\n/workspace/repo/submission/codec/model.safetensors\n/workspace/repo/submission/codec/preprocessor_config.json\n/workspace/repo/submission/data.jsonl\n/workspace/repo/submission/infer.py\n/workspace/repo/submission/licenses\n/workspace/repo/submission/licenses/DAC-LICENSE\n/workspace/repo/submission/licenses/codec-license-source.json\n/workspace/repo/submission/model.py\n/workspace/repo/submission/recipe.json\n/workspace/repo/submission/requirements-codec-linux-x86_64.txt\n/workspace/repo/submission/requirements-codec-macos-arm64.txt\n/workspace/repo/submission/requirements-mac.txt\n/workspace/repo/submission/requirements.txt\n/workspace/repo/submission/text.py\n/workspace/repo/submission/train.py\n/workspace/repo/submission/wheels\n/workspace/repo/submission/wheels/linux-x86_64\n/workspace/repo/submission/wheels/macos-arm64"],"d":0.2}]},{"t":40.3,"$":0.0124,"c":[{"n":"bash","a":"cat /workspace/repo/evaluation/speech-mirror.json && echo \"=== REFERENCE PLAN ===\" && cat /workspace/repo/evaluation/reference-plan.json && echo \"=== LISTENING PROTOCOL ===\" && cat /workspace/repo/evaluation/listening-protocol.json && echo \"=== EVALUATION README ===\" && cat /workspace/repo/evaluation/README.md","e":0,"o":["{\n  \"schema\": \"offline-voice-speech-mirror-v1\",\n  \"view\": \"offline-voice-speech-v3\",\n  \"status\": \"sealed\",\n  \"manifest_sha256\": \"9d2dea1ba3bb479af75cb8ee44fd31aaff295a23e77b04e8e9bf10de1f5e01f0\",\n  \"manifest_note\": \"The sha256 of corpora/MANIFEST.jsonl. It equals offline_voice.mirror.MANIFEST_SHA256 and stays null until the mirror is staged and sealed.\",\n  \"mount\": {\n    \"corpora\": \"/mirror/speech/corpora\",\n    \"research\": \"/mirror/speech/research\",\n    \"corpora_mounted_in\": [\n      \"research workspace\",\n      \"GPU jobs\",\n      \"final train phase\"\n    ],\n    \"research_mounted_in\": [\n      \"research workspace\",\n      \"GPU jobs\"\n    ],\n    \"access\": \"read-only\"\n  },\n  \"reference_form\": \"mirror:<path under corpora/>, with that file's sha256 as listed in corpora/MANIFEST.jsonl\",\n  \"manifest_row\": [\n    \"path\",\n    \"sha256\",\n    \"bytes\",\n    \"corpus\",\n    \"license\"\n  ],\n  \"corpora\": [\n    {\n      \"id\": \"ljspeech\",\n      \"name\": \"LJSpeech 1.1\",\n      \"hours\": 23.9,\n      \"speakers\": 1,\n      \"format\": \"WAV, mono PCM16, 24 kHz (resampled from the 22.05 kHz original)\",\n      \"approx_bytes\": 4136981606.0,\n      \"license\": \"public-domain\",\n      \"source\": \"https://keithito.com/LJ-Speech-Dataset/\"\n    },\n    {\n      \"id\": \"libritts-r\",\n      \"name\": \"LibriTTS-R\",\n      \"hours\": 585,\n      \"speakers\": 2456,\n      \"format\": \"WAV, 24 kHz\",\n      \"approx_bytes\": 101132559547.0,\n      \"license\": \"CC-BY-4.0\",\n      \"source\": \"https://www.openslr.org/141/\",\n      \"license_note\": \"OpenSLR states CC BY 4.0; the Hugging Face card's BibTeX field says BY-NC-ND. The mirror records OpenSLR's terms.\"\n    },\n    {\n      \"id\": \"hifi-tts\",\n      \"name\": \"Hi-Fi TTS\",\n      \"hours\": 291.6,\n      \"speakers\": 10,\n      \"format\": \"FLAC, 44.1 kHz\",\n      \"approx_bytes\": 44073783904.0,\n      \"license\": \"CC-BY-4.0\",\n      \"source\": \"https://www.openslr.org/109/\"\n    },\n    {\n      \"id\": \"vctk\",\n      \"name\": \"VCTK 0.92\",\n      \"hours\": 44,\n      \"speakers\": 110,\n      \"format\": \"FLAC, 48 kHz\",\n      \"approx_bytes\": 11733300130.0,\n      \"license\": \"CC-BY-4.0\",\n      \"source\": \"https://datashare.ed.ac.uk/handle/10283/3443\"\n    },\n    {\n      \"id\": \"mls-en-1000h\",\n      \"name\": \"Multilingual LibriSpeech, English subset\",\n      \"hours\": 782.2,\n      \"speakers\": 3067,\n      \"format\": \"FLAC, 16 kHz\",\n      \"approx_bytes\": 47599161070.0,\n      \"license\": \"CC-BY-4.0\",\n      \"source\": \"https://www.openslr.org/94/\",\n",12937,"th stages, with listener-and-passage cluster-bootstrap intervals. Two versions whose paired 95% interval of rating difference contains 0 share a place. Only a closed, complete study finalizes. The starter is trained once in the same way as a submitted recipe, and its readings join the common study. The raw ratings, intervals and the positions of the reference systems are retained. No reference is silently replaced if its exact identity is unavailable.\n\nGPU timings and sampled GPU memory are diagnostics. They include text processing, decoding and delivery; the first nonquiet sample is not verified first speech. The four-H100 final allocation is capped at 12 aggregate GPU-hours; one-H100 rendering has an 1,800-second phase budget.\n\n`approved-assets.json` is the dependency-wheel and audio-codec approval list the check phase applies, byte for byte; the repository README describes it. The pinned `espeakng_loader` wheel is approved for weight-free text processing. `speech-mirror.json` describes the read-only speech mirror, its licences and the research-only teachers and evaluators, whose weights may not be submitted. The default local check names any unapproved file and its exact digest."],"d":0.2}]},{"t":43.7,"$":0.0215,"c":[{"n":"bash","a":"cat /workspace/repo/submission/recipe.json && echo \"=== requirements.txt ===\" && cat /workspace/repo/submission/requirements.txt && echo \"=== data.jsonl head ===\" && head -n 5 /workspace/repo/submission/data.jsonl && wc -l /workspace/repo/submission/data.jsonl","e":0,"o":["{\n  \"schema\": \"offline-voice-recipe-v2\",\n  \"initialization\": \"random\",\n  \"voices\": [\n    \"default\"\n  ],\n  \"voice_category\": \"us-female\",\n  \"data\": \"data.jsonl\",\n  \"requirements\": \"requirements-codec-linux-x86_64.txt\",\n  \"wheels\": [\n    {\n      \"path\": \"wheels/linux-x86_64/filelock-4.2.4-py3-none-any.whl\",\n      \"platform\": \"linux-x86_64\",\n      \"sha256\": \"301241438c57936ef93f4243a94f2559022268bfcf9b375a9a72eb0f8db8358e\"\n    },\n    {\n      \"path\": \"wheels/linux-x86_64/fsspec-2026.9.0-py3-none-any.whl\",\n      \"platform\": \"linux-x86_64\",\n      \"sha256\": \"8dd6e646e99ea382bd85f97a45e6b526a442d79423a7dc673f1e2756d05fcb5f\"\n    },\n    {\n      \"path\": \"wheels/linux-x86_64/jinja2-3.1.6-py3-none-any.whl\",\n      \"platform\": \"linux-x86_64\",\n      \"sha256\": \"85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67\"\n    },\n    {\n      \"path\": \"wheels/linux-x86_64/markupsafe-3.0.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl\",\n      \"platform\": \"linux-x86_64\",\n      \"sha256\": \"8e124f974786f831d6043728e38296969d3579db8896fe004682f5758e613581\"\n    },\n    {\n      \"path\": \"wheels/linux-x86_64/mpmath-1.3.0-py3-none-any.whl\",\n      \"platform\": \"linux-x86_64\",\n      \"sha256\": \"a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c\"\n    },\n    {\n      \"path\": \"wheels/linux-x86_64/networkx-3.7-py3-none-any.whl\",\n      \"platform\": \"linux-x86_64\",\n      \"sha256\": \"e3fd2c13a7814cee3746340d8d7f8598a67f16a58bf47fb7f8793fab6efca1b0\"\n    },\n    {\n      \"path\": \"wheels/linux-x86_64/numpy-2.2.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\",\n      \"platform\": \"linux-x86_64\",\n      \"sha256\": \"fd83c01228a688733f1ded5201c678f0c53ecc1006ffbc404db9f7a899ac6249\"\n    },\n    {\n      \"path\": \"wheels/linux-x86_64/nvidia_cublas_cu12-12.6.4.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl\",\n      \"platform\": \"linux-x86_64\",\n      \"sha256\": \"08ed2686e9875d01b58e3cb379c6896df8e76c75e0d4a7f7dace3d7b6d9ef8eb\"\n    },\n    {\n      \"path\": \"wheels/linux-x86_64/nvidia_cuda_cupti_cu12-12.6.80-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl\",\n      \"platform\": \"linux-x86_64\",\n      \"sha256\": \"6768bad6cab4f19e8292125e5f1ac8aa7d1718704012a0e3272a6f61c4bce132\"\n    },\n    {\n      \"path\": \"wheels/linux-x86_64/nvidia_cuda_nvrtc_cu12-12.6.77-py3-none-manylinux2014_x86_64.whl\",\n      \"platform\": \"linux-x86_64\",\n      \"sha256\": \"35b0cc6ee3a9636d5409133e79273ce1f3fd087abb0532d2d2e8fff1fe9efc53\"\n    },\n    {\n",15267,"{\"id\": \"LJ001-0004\", \"text\": \"produced the block books, which were the immediate predecessors of the true printed book,\", \"voice\": \"default\", \"audio\": \"mirror:ljspeech/wavs/LJ001-0004.wav\", \"sha256\": \"8d6f8ba35c698e10e975170f9a382cd1088f67ad9ef173ad693622cf4ca49152\", \"source\": \"LJSpeech 1.1 (Keith Ito and Linda Johnson, 2017), https://keithito.com/LJ-Speech-Dataset/; resampled to mono 24 kHz PCM16 in the FrontierRSI speech mirror\", \"license\": \"public-domain\"}\n{\"id\": \"LJ001-0005\", \"text\": \"the invention of movable metal letters in the middle of the fifteenth century may justly be considered as the invention of the art of printing.\", \"voice\": \"default\", \"audio\": \"mirror:ljspeech/wavs/LJ001-0005.wav\", \"sha256\": \"242349401cc27cd9d1257a9c910d1925794d1a445a30bd104dbab54e83293e97\", \"source\": \"LJSpeech 1.1 (Keith Ito and Linda Johnson, 2017), https://keithito.com/LJ-Speech-Dataset/; resampled to mono 24 kHz PCM16 in the FrontierRSI speech mirror\", \"license\": \"public-domain\"}\n13100 /workspace/repo/submission/data.jsonl"],"d":0.2}]},{"t":47.3,"$":0.0374,"c":[{"n":"bash","a":"cat /workspace/repo/submission/text.py && echo \"========== MODEL.PY ==========\" && cat /workspace/repo/submission/model.py","e":0,"o":["\"\"\"Text front end: English normalisation, eSpeak NG phonemes and symbol ids.\n\n`normalize` spells out numerals, currency, percentages, dates, times, ordinals, units and common abbreviations so\nthat the phonemizer only sees words. `Espeak` calls eSpeak NG through the shared library and data that the\napproved `espeakng_loader` wheel bundles (rule-based dictionaries; no learned weights). `symbol_ids` maps the IPA\nstring to the fixed symbol table, with a blank between symbols as in Matcha-TTS.\n\"\"\"\n\nfrom __future__ import annotations\n\nimport re\nimport unicodedata\n\n# --------------------------------------------------------------------------------------------------------------\n# Symbols (the VITS/Matcha-TTS inventory). Id 0 is padding and doubles as the interspersed blank.\n\nPAD = \"_\"\nPUNCTUATION = ';:,.!?¡¿—…\"«»“” '\nLETTERS = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\"\nLETTERS_IPA = (\"ɑɐɒæɓʙβɔɕçɗɖðʤəɘɚɛɜɝɞɟʄɡɠɢʛɦɧħɥʜɨɪʝɭɬɫɮʟɱɯɰŋɳɲɴøɵɸθœɶʘɹɺɾɻʀʁɽʂʃʈʧʉʊʋⱱʌɣɤʍχʎʏʑʐʒʔʡʕʢǀǁǂǃ\"\n               \"ˈˌːˑʼʴʰʱʲʷˠˤ˞↓↑→↗↘'̩'ᵻ\")\nSYMBOLS = list(dict.fromkeys([PAD, *PUNCTUATION, *LETTERS, *LETTERS_IPA]))\nSYMBOL_IDS = {symbol: index for index, symbol in enumerate(SYMBOLS)}\n\n\ndef symbol_ids(phonemes: str, *, add_blank: bool = True) -> list[int]:\n    \"\"\"Ids of the known symbols in `phonemes` (unknown characters are dropped), blanks interspersed.\"\"\"\n    kept = [character for character in phonemes if character in SYMBOL_IDS and character != PAD]\n    if all(character in PUNCTUATION for character in kept):\n        raise ValueError(\"No speakable symbols in the text\")\n    ids = [SYMBOL_IDS[character] for character in kept]\n    if not add_blank:\n        return ids\n    result = [0] * (2 * len(ids) + 1)\n    result[1::2] = ids\n    return result\n\n\n# --------------------------------------------------------------------------------------------------------------\n# Numbers\n\nONES = (\"zero one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen \"\n        \"seventeen eighteen nineteen\").split()\nTENS = \"_ _ twenty thirty forty fifty sixty seventy eighty ninety\".split()\nSCALES = ((10**12, \"trillion\"), (10**9, \"billion\"), (10**6, \"million\"), (1000, \"thousand\"))\nORDINAL_WORDS = {\"one\": \"first\", \"two\": \"second\", \"three\": \"third\", \"five\": \"fifth\", \"eight\": \"eighth\",\n                 \"nine\": \"ninth\", \"twelve\": \"twelfth\"}\n\n\ndef _below_thousand(value: int) -> str:\n    words = []\n    hundreds, rest = divmod(value, 100)\n    if hundreds:\n",26269,"        values = torch.randn(1, frames, self.width, device=symbols.device, generator=generator) * temperature\n        for step in range(steps):\n            time = torch.full((1,), step / steps, device=symbols.device)\n            values = values + self.decoder(values, aligned, time, frame_mask).float() / steps\n        return self.denormalize(values)\n\n\ndef load_codec(path, device):\n    from transformers import DacModel\n\n    path = Path(path)\n    if not (path / \"model.safetensors\").is_file():\n        raise ValueError(\"Materialize the approved frozen DAC24k codec before training or inference\")\n    codec = DacModel.from_pretrained(path, local_files_only=True).to(device).eval()\n    codec.requires_grad_(False)\n    # The approved checkpoint's legacy hop_length field says 512, but its convolutions stride 2*4*5*8 = 320.\n    if codec.config.sampling_rate != 24000 or list(codec.config.downsampling_ratios) != [2, 4, 5, 8]:\n        raise ValueError(\"This starter requires the approved DAC24k codec\")\n    return codec\n\n\ndef parameter_count(model: nn.Module) -> int:\n    return sum(parameter.numel() for parameter in model.parameters())"],"d":0.2}]},{"t":62,"$":0.0358,"c":[{"n":"bash","a":"tail -n +220 /workspace/repo/submission/text.py && echo \"=== MODEL.PY TOP ===\" && head -n 55 /workspace/repo/submission/model.py && echo \"=== TRAIN.PY ===\" && cat /workspace/repo/submission/train.py && echo \"=== INFER.PY ===\" && cat /workspace/repo/submission/infer.py","e":0,"o":["        name = name.rstrip(\".\").lower()\n        return next(index for index, month in enumerate(MONTHS, 1)\n                    if month.lower() == name or MONTH_ABBREVIATIONS.get(name) == month)\n\n    text = re.sub(rf\"\\b({month_names})\\.?\\s+(\\d{{1,2}})(?:st|nd|rd|th)?(?:,?\\s+(\\d{{4}}))?\\b\",\n                  lambda m: _date_words(month_number(m.group(1)), int(m.group(2)),\n                                        int(m.group(3)) if m.group(3) else None)\n                  if 1 <= int(m.group(2)) <= 31 else m.group(0), text)\n    text = re.sub(rf\"\\b(\\d{{1,2}})(?:st|nd|rd|th)?\\s+({month_names})\\.?(?:,?\\s+(\\d{{4}}))?\\b\",\n                  lambda m: (f\"the {ordinal(int(m.group(1)))} of {MONTHS[month_number(m.group(2)) - 1]}\"\n                             + (f\", {year(int(m.group(3)))}\" if m.group(3) else \"\"))\n                  if 1 <= int(m.group(1)) <= 31 else m.group(0), text)\n    # Times, phone numbers, money, percentages, ordinals, units.\n    text = re.sub(r\"\\b(\\d{1,2}):(\\d{2})(?:\\s*([AaPp]\\.?[Mm]\\.?))?(?![\\w:])\", _time, text)\n    text = re.sub(r\"(?:\\+?1[\\s.-])?\\(?\\b(\\d{3})\\)?[\\s.-](\\d{3})[\\s.-](\\d{4})\\b\",\n                  lambda m: \", \".join(digits(group) for group in m.groups()), text)\n    text = re.sub(rf\"\\b({NUMBER})\\s?-\\s?({NUMBER})\\b\", r\"\\1 to \\2\", text)\n    text = re.sub(r\"(?<=[\\w)])\\s?/\\s?(?=(?:month|year|day|night|hour|week|person|item|unit|seat)s?\\b)\", \" per \", text)\n    text = re.sub(rf\"(?P<symbol>[$£€¥])\\s?(?P<amount>{NUMBER})(?:\\s?(?P<magnitude>[kKmMbBtT]n?\\b|thousand\\b|million\\b\"\n                  r\"|billion\\b|trillion\\b))?\", _money, text)\n    text = re.sub(r\"\\b(No|no|Nos|nos)\\.\\s?(?=\\d)\", lambda m: _abbreviation(m) + \" \", text)\n    text = re.sub(rf\"({NUMBER})\\s?%\", lambda m: _number_words(m.group(1)) + \" percent\", text)\n    text = re.sub(r\"\\b(\\d+)(st|nd|rd|th)\\b\", lambda m: ordinal(int(m.group(1))), text)\n    units = \"|\".join(sorted((re.escape(unit) for unit in UNITS), key=len, reverse=True))\n    text = re.sub(rf\"\\b({NUMBER})\\s?({units})\\b(?!\\.\\w)\", _unit, text, flags=re.I)\n    text = re.sub(r\"(\\d)\\s?°\\s?([CF])\\b\",\n                  lambda m: m.group(1) + (\" degrees Celsius\" if m.group(2) == \"C\" else \" degrees Fahrenheit\"), text)\n    # Abbreviations with a period; \"No. 5\" reads \"number five\" only before a numeral.\n    abbreviations = \"|\".join(sorted(ABBREVIATIONS, key=len, reverse=True))\n    text = re.sub(r\"\\bSt\\.(?! [A-Z])\", \"Street\", text)   # \"St. Louis\" is Saint; \"Baker St.\" is Street\n    text = re.sub(rf\"\\b({abbreviations})\\.(?=\\s|$)\",\n",26351,"            seed = int.from_bytes(hashlib.sha256(request[\"text\"].encode()).digest()[:8], \"little\")\n            generator = torch.Generator(device=args.device).manual_seed(seed)\n            for index, piece in enumerate(sentences(request[\"text\"])):\n                if index:\n                    write_audio(output, pause)\n                try:\n                    symbols = to_ids(piece, add_blank=add_blank)\n                except ValueError:   # nothing speakable in this piece (for example, only punctuation)\n                    continue\n                latents = model.synthesize(torch.tensor([symbols], device=args.device), steps=args.steps,\n                                           temperature=args.temperature, generator=generator)\n                audio = codec.decode(quantized_representation=latents.transpose(1, 2)).audio_values.reshape(-1)\n                if not torch.isfinite(audio).all():\n                    raise ValueError(\"The codec produced non-finite audio\")\n                write_audio(output, audio.float().clamp(-1, 1).cpu().numpy())\n            output.write(struct.pack(\"<I\", 0))\n            output.flush()\n\n\nif __name__ == \"__main__\":\n    main()"],"d":0.2}]},{"t":66.5,"$":0.036,"c":[{"n":"bash","a":"cat /workspace/repo/evaluation/approved-assets.json && echo \"=== OFFLINE_VOICE ===\" && head -n 100 /workspace/repo/offline_voice/protocol.py /workspace/repo/offline_voice/prepare.py /workspace/repo/offline_voice/initialization.py","e":0,"o":["{\n  \"03267c4e493315294834a0870f31dbb3b28a95561b80b134f0bd3cf2d5f0e618\": \"wheel\",\n  \"08721baf27d13d461f6be6eed9a65277e70d68234ff484fd8b9897b222cdcb6d\": \"wheel\",\n  \"08ed2686e9875d01b58e3cb379c6896df8e76c75e0d4a7f7dace3d7b6d9ef8eb\": \"wheel\",\n  \"0930db9bdc62d22944e10b066448bb65dc9abe9112880c7cab8da54db4284d5f\": \"wheel\",\n  \"0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3\": \"wheel\",\n  \"2814a6e999d13464c4d679b788cc5d784eb5a4edfc638a31f10e9a11ab531ef8\": \"wheel\",\n  \"2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0\": \"wheel\",\n  \"301241438c57936ef93f4243a94f2559022268bfcf9b375a9a72eb0f8db8358e\": \"wheel\",\n  \"30ac3869f6db17d170e0e556dd6cc5eee02647abc31ca856634d5a40f82c15b2\": \"wheel\",\n  \"35b0cc6ee3a9636d5409133e79273ce1f3fd087abb0532d2d2e8fff1fe9efc53\": \"wheel\",\n  \"39ab5894d971f9ac68baa6eca5c50387db579cfcacf36ae8df3feceb1815e6d0\": \"wheel\",\n  \"3af86549c509e5491367dab3f7093014bd559f441ba31fa7427b5f94232368d7\": \"audio-codec\",\n  \"3d31298449090ab8d47b7b1b2a555ff73cac7ed438a08b7ac160980c7ebed649\": \"wheel\",\n  \"481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8\": \"wheel\",\n  \"48f0c8eac16145dfce371e9d2d7772854a4f591bcb56c9cf548accf531d54270\": \"wheel\",\n  \"51a52592b3b99e102b609654876bd65f19f999935166d1352678931132b0c670\": \"wheel\",\n  \"51b7eabb104f46c1c50b486520555715457ae833d5aee9ff6ae853d1130506ff\": \"wheel\",\n  \"51d5a8ba2be0bbe440b99d2112604c95bbbc3c2748a64260186c541e1729cd80\": \"wheel\",\n  \"5753edb1e16c2d379cb771b1b1ceec2b0ee2658b628dd102eca0b07c1eb9e1a5\": \"audio-codec\",\n  \"59fba37039233c7fcbe196817d6cdcf1b40dfb17b410f229d85b0cf0a1848da4\": \"wheel\",\n  \"5e2f601a8e0cd5be5cc7506b20a79112370b9b3e9cb5f13f68ab11acd6ca7d60\": \"wheel\",\n  \"6768bad6cab4f19e8292125e5f1ac8aa7d1718704012a0e3272a6f61c4bce132\": \"wheel\",\n  \"694cf3879a206553cc9d7dbda76b13efaf610fdb70a50cba303de1b0d1530ac6\": \"wheel\",\n  \"73191c47aaa79da394e8fee2dbc2ec827432cab56311122c9e47abf79e390f62\": \"wheel\",\n  \"7452e3fc6972991da871ae1a1c9d3e8e219aa247cc0f757018867d6a7fe59aaf\": \"audio-codec\",\n  \"7556d9eca156e18184b94947ade0fba5bb47d69cec46bf8660fd2c71a4b48b73\": \"wheel\",\n  \"787687087412c4bd68d315e39bc1223f08aae1d16a9e9771d95eabbb04ae98fb\": \"wheel\",\n  \"85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67\": \"wheel\",\n  \"894b3a42502226a1cac872f840030665f33326fc3dac8e57c607905773cdcde3\": \"wheel\",\n  \"8dd6e646e99ea382bd85f97a45e6b526a442d79423a7dc673f1e2756d05fcb5f\": \"wheel\",\n  \"8e124f974786f831d6043728e38296969d3579db8896fe004682f5758e613581\": \"wheel\",\n",9542,"    if (check.get(\"structurally_valid\") is not True or trained.get(\"status\") != \"trained_pending_external\"\n            or check.get(\"candidate_sha256\") != trained.get(\"candidate_sha256\")\n            or str(check.get(\"training_seed\")) != trained.get(\"seed\")\n            or tree_digest(submission)[0] != trained.get(\"candidate_sha256\")\n            or tree_digest(weights)[0] != trained.get(\"weights_sha256\")):\n        raise ValueError(\"Initialization review must use the captured check, recipe and trained weights\")\n    return {\"schema\": \"offline-voice-initialization-packet-v1\", \"candidate_sha256\": trained[\"candidate_sha256\"],\n            \"weights_sha256\": trained[\"weights_sha256\"], \"seed\": trained[\"seed\"],\n            \"declared_frozen_assets\": check[\"recipe\"].get(\"frozen_assets\", []),\n            \"inference_files\": check[\"inference_files\"],\n            \"files\": {p.relative_to(submission).as_posix(): {\"sha256\": digest(p), \"bytes\": p.stat().st_size}\n                      for p in sorted(submission.rglob(\"*\")) if p.is_file()},\n            \"required_evidence\": list(EVIDENCE),\n            \"status\": \"pending-independent-review\"}"],"d":0.2}]},{"t":70.4,"$":0.0287,"c":[{"n":"bash","a":"tail -n +101 /workspace/repo/offline_voice/protocol.py && echo \"=== MIRROR CORPORA ===\" && ls -la /mirror/speech/corpora && echo \"=== MIRROR RESEARCH ===\" && ls -la /mirror/speech/research /mirror/speech/research/teachers /mirror/speech/research/evaluators","e":0,"o":["                        raise ValueError('Voice staging tree exceeds file or byte limits')\n    walk(root)\n    def read(row):\n        import hashlib\n\n        name,path,before = row\n        descriptor = os.open(path,os.O_RDONLY|os.O_NOFOLLOW)\n        with os.fdopen(descriptor,'rb') as stream:\n            info = os.fstat(stream.fileno())\n            def identity(value):\n                return (value.st_dev,value.st_ino,value.st_mode,value.st_nlink,value.st_size,value.st_mtime_ns)\n            if identity(info)!=identity(before):\n                raise ValueError('Voice asset changed during inventory')\n            sha = hashlib.file_digest(stream,'sha256').hexdigest()\n            if identity(os.fstat(stream.fileno()))!=identity(before):\n                raise ValueError('Voice asset changed during inventory')\n        return name,{'sha256':sha,'bytes':info.st_size,'executable':bool(info.st_mode&0o111)}\n    with ThreadPoolExecutor(max_workers=workers) as pool:\n        return dict(sorted(pool.map(read,entries)))\n\n\ndef tree_digest(root: Path) -> tuple[str, int]:\n    files = file_inventory(root)\n    return canonical_hash({name: row[\"sha256\"] for name,row in files.items()}), sum(row[\"bytes\"] for row in files.values())\n\n\ndef published_approvals(path: Path | None = None) -> dict[str, str]:\n    \"\"\"The approval list published in the starting repository (`evaluation/approved-assets.json`).\"\"\"\n    path = APPROVED_ASSETS if path is None else Path(path)\n    if not path.is_file():\n        raise FileNotFoundError(f\"The published approval list {path} is missing; pass approved_assets explicitly\")\n    approvals = json.loads(path.read_text())\n    if not isinstance(approvals, dict) or not all(isinstance(k, str) and isinstance(v, str) for k, v in approvals.items()):\n        raise ValueError(f\"{path} must map sha256 digests to approval kinds\")\n    return approvals\n\n\ndef wheel_label(path: str, sha256: str) -> str:\n    \"\"\"A wheel as a refusal names it: its path, its distribution and version (from the file name) and its digest.\"\"\"\n    parts = Path(path).name.removesuffix(\".whl\").split(\"-\")\n    named = f\"{parts[0]} {parts[1]}, \" if len(parts) >= 5 else \"\"\n    return f\"{path} ({named}sha256 {sha256})\"\n\n\ndef validate_recipe(root: Path, approved_assets: dict[str, str] | None = None, *, return_inventory=False,\n                    allowlist_wheels=True, mirror_manifest: Path | None = None,\n                    mirror_sha256=None) -> dict:\n",13982,"drwxr-xr-x 3 root root      4096 Nov 13 20:13 libritts-r\ndrwxr-xr-x 3 root root      4096 Nov 13 20:15 ljspeech\ndrwxr-xr-x 3 root root      4096 Nov 13 20:14 mls-en-1000h\ndrwxr-xr-x 4 root root      4096 Nov 13 20:14 vctk\n=== MIRROR RESEARCH ===\n/mirror/speech/research:\ntotal 601\ndrwxr-xr-x 4 root root   4096 Nov 13 20:02 .\ndrwxr-xr-x 4 root root   4096 Nov 13 19:59 ..\n-r--r--r-- 1 root root 598383 Nov 13 19:59 MANIFEST.jsonl\ndrwxr-xr-x 4 root root   4096 Nov 13 20:02 evaluators\ndrwxr-xr-x 6 root root   4096 Nov 13 20:02 teachers\n\n/mirror/speech/research/evaluators:\ntotal 16\ndrwxr-xr-x 4 root root 4096 Nov 13 20:02 .\ndrwxr-xr-x 4 root root 4096 Nov 13 20:02 ..\ndrwxr-xr-x 8 root root 4096 Nov 13 20:16 ttsds2\ndrwxr-xr-x 3 root root 4096 Nov 13 20:16 whisper-large-v3\n\n/mirror/speech/research/teachers:\ntotal 24\ndrwxr-xr-x 6 root root 4096 Nov 13 20:02 .\ndrwxr-xr-x 4 root root 4096 Nov 13 20:02 ..\ndrwxr-xr-x 3 root root 4096 Nov 13 20:16 parler-tts-large-v1\ndrwxr-xr-x 3 root root 4096 Nov 13 20:16 parler-tts-mini-v1\ndrwxr-xr-x 5 root root 4096 Nov 13 20:16 styletts2-libritts\ndrwxr-xr-x 5 root root 4096 Nov 13 20:16 styletts2-ljspeech"],"d":0.6}]},{"t":75.3,"$":0.0279,"c":[{"n":"bash","a":"cd /workspace/methods && python3 unpack_methods.py && ls -la /workspace/methods/methods /workspace/methods/methods/wheels/linux-x86_64 && echo \"=== LAB STATUS ===\" && lab status","e":0,"o":["/workspace/methods/methods:\ntotal 95\ndrwxr-xr-x 8 agent agent     6 Nov 25 11:52 .\ndrwxr-xr-x 2 agent agent    39 Nov 25 11:52 ..\n-rw-r--r-- 1 agent agent  1924 Nov 25 11:52 README.md\n-rw-r--r-- 1 agent agent  6056 Nov 25 11:52 base-wheels-linux-x86_64.json\n-rw-r--r-- 1 agent agent  2169 Nov 25 11:52 base-wheels-macos-arm64.json\ndrwxr-xr-x 2 agent agent    10 Nov 25 11:52 codec\n-rw-r--r-- 1 agent agent  1070 Nov 25 11:52 codec_roundtrip.py\ndrwxr-xr-x 2 agent agent    10 Nov 25 11:52 licenses\n-rw-r--r-- 1 agent agent 38231 Nov 25 11:52 methods-manifest.json\ndrwxr-xr-x 2 agent agent    10 Nov 25 11:52 provenance\n-rw-r--r-- 1 agent agent 10309 Nov 25 11:52 requirements-linux-x86_64.txt\n-rw-r--r-- 1 agent agent  2399 Nov 25 11:52 requirements-macos-arm64.txt\ndrwxr-xr-x 2 agent agent    10 Nov 25 11:52 sources\n-rw-r--r-- 1 agent agent  9960 Nov 25 11:52 synthesize.py\ndrwxr-xr-x 3 agent agent    10 Nov 25 11:52 teacher\n-rw-r--r-- 1 agent agent  8407 Nov 25 11:52 transcribe.py\n-rw-r--r-- 1 agent agent  9234 Nov 25 11:52 ttsds.py\ndrwxr-xr-x 4 agent agent    10 Nov 25 11:52 wheels\n\n/workspace/methods/methods/wheels/linux-x86_64:\ntotal 122834\ndrwxr-xr-x 2 agent agent        6 Nov 25 11:52 .\ndrwxr-xr-x 4 agent agent       10 Nov 25 11:52 ..\n-rw-r--r-- 1 agent agent     3832 Nov 25 11:52 addict-2.4.0-py3-none-any.whl\n-rw-r--r-- 1 agent agent     5302 Nov 25 11:52 annotated_doc-0.0.5-py3-none-any.whl\n-rw-r--r-- 1 agent agent    13427 Nov 25 11:52 annotated_types-0.8.0-py3-none-any.whl\n-rw-r--r-- 1 agent agent    67548 Nov 25 11:52 attrs-26.1.0-py3-none-any.whl\n-rw-r--r-- 1 agent agent 10196845 Nov 25 11:52 babel-2.18.0-py3-none-any.whl\n-rw-r--r-- 1 agent agent 11366550 Nov 25 11:52 blis-1.3.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl\n-rw-r--r-- 1 agent agent    17325 Nov 25 11:52 catalogue-2.0.10-py3-none-any.whl\n-rw-r--r-- 1 agent agent   134093 Nov 25 11:52 certifi-2026.10.18-py3-none-any.whl\n-rw-r--r-- 1 agent agent   221822 Nov 25 11:52 cffi-2.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl\n-rw-r--r-- 1 agent agent   257601 Nov 25 11:52 charset_normalizer-3.5.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl\n-rw-r--r-- 1 agent agent    98188 Nov 25 11:52 click-8.1.8-py3-none-any.whl\n-rw-r--r-- 1 agent agent    66408 Nov 25 11:52 cloudpathlib-0.26.0-py3-none-any.whl\n-rw-r--r-- 1 agent agent    22228 Nov 25 11:52 cloudpickle-3.1.2-py3-none-any.whl\n",7044,"      \"openrouter.anthropic/claude-haiku-5.5\",\n      \"openrouter.openai/gpt-6-luna\",\n      \"openrouter.google/gemini-3.8-flash\",\n      \"openrouter.qwen/qwen3.8-max-prime\",\n      \"openrouter.qwen/qwen3.8-flash\",\n      \"openrouter.z-ai/glm-5.3-prime\",\n      \"library.query\",\n      \"library.fulltext\"\n    ],\n    \"images\": [\n      \"research\"\n    ],\n    \"default_image\": \"research\",\n    \"models\": [\n      \"anthropic/claude-sonnet-5.5\",\n      \"anthropic/claude-haiku-5.5\",\n      \"openai/gpt-6-luna\",\n      \"google/gemini-3.8-flash\",\n      \"qwen/qwen3.8-max-prime\",\n      \"qwen/qwen3.8-flash\",\n      \"z-ai/glm-5.3-prime\"\n    ],\n    \"model_billing\": \"provider-cost-v1\",\n    \"audio_models\": [],\n    \"speech_models\": [],\n    \"tinker\": null,\n    \"library\": {\n      \"served_through\": \"2026-01-25\",\n      \"withheld\": false\n    },\n    \"datasets\": {\n      \"offered\": true\n    },\n    \"validations\": null,\n    \"deliverables\": {\n      \"max_bytes\": 200000000000,\n      \"paths\": [\n        \"submission\"\n      ]\n    }\n  },\n  \"selection\": {\n    \"submission_id\": null,\n    \"selected_at\": null,\n    \"selected_at_iso\": null,\n    \"frozen\": false\n  },\n  \"features\": [\n    \"background-submit\"\n  ]\n}"],"d":3.3}]},{"t":85.3,"$":0.0346,"c":[{"n":"bash","a":"python3 -c '\nimport json, hashlib\nfrom pathlib import Path\n\napproved = json.loads(Path(\"/workspace/repo/evaluation/approved-assets.json\").read_text())\nfound = {}\nfor root in [Path(\"/workspace/repo/submission/wheels\"), Path(\"/workspace/methods/methods/wheels\")]:\n    for p in root.rglob(\"*.whl\"):\n        h = hashlib.sha256(p.read_bytes()).hexdigest()\n        if h in approved:\n            found.setdefault(h, []).append(str(p))\n\nprint(f\"Total approved hashes (excl meta): {len([k for k in approved if not k.startswith(\\\"__\\\")])}\")\nprint(\"Matched wheels:\")\nfor h, paths in sorted(found.items(), key=lambda kv: kv[1][0]):\n    print(f\"  {approved[h]:11s} {Path(paths[0]).name}  (count={len(paths)})\")\nunmatched = [h for h, v in approved.items() if v == \"wheel\" and h not in found]\nprint(f\"Unmatched approved wheel hashes: {len(unmatched)}\")\nfor h in unmatched:\n    print(\"  UNMATCHED:\", h)\n'","e":1,"o":"  File \"<string>\", line 13\n    print(f\"Total approved hashes (excl meta): {len([k for k in approved if not k.startswith(\\\"__\\\")])}\")\n                                                                                              ^\nSyntaxError: unexpected character after line continuation character","d":0.2}]},{"t":91.3,"$":0.0232,"c":[{"n":"bash","a":"python3 - <<'EOF'\nimport json, hashlib\nfrom pathlib import Path\n\napproved = json.loads(Path(\"/workspace/repo/evaluation/approved-assets.json\").read_text())\nfound = {}\nfor root in [Path(\"/workspace/repo/submission/wheels\"), Path(\"/workspace/methods/methods/wheels\")]:\n    for p in root.rglob(\"*.whl\"):\n        h = hashlib.sha256(p.read_bytes()).hexdigest()\n        if h in approved:\n            found.setdefault(h, []).append(str(p))\n\nprint(\"Total approved wheel hashes:\", sum(1 for v in approved.values() if v == \"wheel\"))\nprint(\"Matched wheels:\")\nfor h, paths in sorted(found.items(), key=lambda kv: Path(kv[1][0]).name):\n    print(f\"  {approved[h]:11s} {Path(paths[0]).name}  [{h[:12]}]\")\nunmatched = [h for h, v in approved.items() if v == \"wheel\" and h not in found]\nprint(f\"Unmatched approved wheel hashes: {len(unmatched)}\")\nfor h in unmatched:\n    print(\"  UNMATCHED:\", h)\nEOF","e":0,"o":["Total approved wheel hashes: 53\nMatched wheels:\n  wheel       certifi-2026.10.18-py3-none-any.whl  [73191c47aaa7]\n  wheel       cffi-2.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl  [c1453022f490]\n  wheel       charset_normalizer-3.5.2-cp312-cp312-macosx_10_13_universal2.whl  [ed2a239c0ea2]\n  wheel       charset_normalizer-3.5.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl  [3d3129844909]\n  wheel       espeakng_loader-0.2.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl  [08721baf27d1]\n  wheel       filelock-4.2.4-py3-none-any.whl  [301241438c57]\n  wheel       fsspec-2026.9.0-py3-none-any.whl  [8dd6e646e99e]\n  wheel       hf_xet-1.7.0-cp38-abi3-macosx_11_0_arm64.whl  [59fba3703923]\n  wheel       hf_xet-1.7.0-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl  [2814a6e999d1]\n  wheel       huggingface_hub-0.36.2-py3-none-any.whl  [48f0c8eac161]\n  wheel       idna-3.20-py3-none-any.whl  [ab7ae7122974]\n  wheel       jinja2-3.1.6-py3-none-any.whl  [85ece4451f49]\n  wheel       markupsafe-3.0.4-cp312-cp312-macosx_11_0_arm64.whl  [0930db9bdc62]\n  wheel       markupsafe-3.0.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl  [8e124f974786]\n  wheel       mpmath-1.3.0-py3-none-any.whl  [a0b2b9fe80bb]\n  wheel       networkx-3.7-py3-none-any.whl  [e3fd2c13a781]\n  wheel       numpy-2.2.6-cp312-cp312-macosx_14_0_arm64.whl  [894b3a425022]\n  wheel       numpy-2.2.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl  [fd83c01228a6]\n  wheel       nvidia_cublas_cu12-12.6.4.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl  [08ed2686e987]\n  wheel       nvidia_cuda_cupti_cu12-12.6.80-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl  [6768bad6cab4]\n  wheel       nvidia_cuda_nvrtc_cu12-12.6.77-py3-none-manylinux2014_x86_64.whl  [35b0cc6ee3a9]\n  wheel       nvidia_cuda_runtime_cu12-12.6.77-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl  [ba3b56a4f896]\n  wheel       nvidia_cudnn_cu12-9.5.1.17-py3-none-manylinux_2_28_x86_64.whl  [30ac3869f6db]\n  wheel       nvidia_cufft_cu12-11.3.0.4-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl  [ccba62eb9cef]\n  wheel       nvidia_cufile_cu12-1.11.1.6-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl  [cc23469d1c7e]\n  wheel       nvidia_curand_cu12-10.3.7.77-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl  [a42cd1344297]\n",1194,"  wheel       requests-2.34.2-py3-none-any.whl  [2a0d60c172f8]\n  wheel       safetensors-0.8.0-cp310-abi3-macosx_11_0_arm64.whl  [c80201d22cbf]\n  wheel       safetensors-0.8.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl  [fd6f3f93c9a0]\n  wheel       setuptools-84.0.0-py3-none-any.whl  [51a52592b3b9]\n  wheel       soundfile-0.13.1-py2.py3-none-manylinux_2_28_x86_64.whl  [03267c4e4933]\n  wheel       sympy-1.14.0-py3-none-any.whl  [e091cc3e99d2]\n  wheel       tokenizers-0.21.4-cp39-abi3-macosx_11_0_arm64.whl  [5e2f601a8e0c]\n  wheel       tokenizers-0.21.4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl  [51b7eabb104f]\n  wheel       torch-2.7.1-cp312-cp312-manylinux_2_28_x86_64.whl  [c33360cfc2ed]\n  wheel       torch-2.7.1-cp312-none-macosx_11_0_arm64.whl  [787687087412]\n  wheel       tqdm-4.70.1-py3-none-any.whl  [c293e525e6fe]\n  wheel       transformers-4.51.3-py3-none-any.whl  [fd3279633ceb]\n  wheel       triton-3.3.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl  [9999e83aba21]\n  wheel       typing_extensions-4.16.0-py3-none-any.whl  [481caa481374]\n  wheel       urllib3-2.8.0-py3-none-any.whl  [0cf3cae568d3]\nUnmatched approved wheel hashes: 0"],"d":5.8}]},{"t":107.9,"$":0.0261,"c":[{"n":"bash","a":"cat /workspace/methods/methods/synthesize.py && echo \"=== TRANSCRIBE.PY ===\" && cat /workspace/methods/methods/transcribe.py && echo \"=== TTSDS.PY ===\" && cat /workspace/methods/methods/ttsds.py","e":0,"o":["\"\"\"Generate teacher audio offline, with a provenance row; never copy teacher assets into a submission.\n\nBackends:\n- `kokoro` (Kokoro-82M, in this add-on's `teacher/`),\n- `parler` (Parler-TTS Large v1 or Mini v1, on the speech mirror's research side),\n- `styletts2` (the StyleTTS 2 LJSpeech or LibriTTS checkpoint, on the same research side). It takes its voice from\n  a reference recording (`--reference`; by default the `reference.wav` staged beside the checkpoint).\n\nEvery output is a mono 24 kHz PCM16 WAV and `<name>.provenance.json`, a data-manifest row (id, text, voice, audio,\nsha256, source, license) plus the teacher and its weight digest. Each tool's own wheels and requirements are next\nto its weights (see METHODS.md).\n\"\"\"\n\nimport argparse\nimport hashlib\nimport json\nimport os\nimport wave\nfrom pathlib import Path\n\nos.environ[\"HF_HUB_OFFLINE\"] = \"1\"\nos.environ[\"TRANSFORMERS_OFFLINE\"] = \"1\"\n\nRESEARCH = Path(\"/mirror/speech/research/teachers\")\nKOKORO = (\"hexgrad/Kokoro-82M\", \"f3ff3571791e39611d31c381e3a41a3af07b4987\",\n          \"496dba118d1a58f5f3db2efc88dbdc216e0483fc89fe6e47ee1f2c53f18ad1e4\")\nPARLER_DESCRIPTION = (\"A female speaker with an American accent delivers her words clearly and expressively at a \"\n                      \"moderate pace. The recording is very high quality, close up and without background noise.\")\n# The `styletts2` package (0.1.6) downloads its aligner, pitch extractor and PL-BERT from these URLs: the pitch\n# extractor always, the others when the config's relative paths do not resolve. Offline, each is the file staged\n# beside the checkpoint, and anything else it tries to fetch is an error.\nSTYLETTS2_FILES = {\n    \"ASR_CHECKPOINT_URL\": \"Utils/ASR/epoch_00080.pth\",\n    \"ASR_CONFIG_URL\": \"Utils/ASR/config.yml\",\n    \"F0_CHECKPOINT_URL\": \"Utils/JDC/bst.t7\",\n    \"BERT_CHECKPOINT_URL\": \"Utils/PLBERT/step_1000000.t7\",\n    \"BERT_CONFIG_URL\": \"Utils/PLBERT/config.yml\",\n}\nLICENSES = {\n    \"kokoro\": \"Generated with an Apache-2.0 teacher; retain its notices and document rights to the input text\",\n    \"parler\": \"Generated with an Apache-2.0 teacher; retain its notices and document rights to the input text\",\n    \"styletts2\": (\"Generated with an MIT-licensed teacher whose checkpoint terms require telling listeners the \"\n                  \"speech is synthetic; document rights to the input text\"),\n}\n\n\ndef sha256(path):\n    with Path(path).open(\"rb\") as stream:\n        return hashlib.file_digest(stream, \"sha256\").hexdigest()\n\n\n",24067,"                           \"and not comparable across different recording sets of very different sizes.\"}\n\n\ndef main(argv=None):\n    parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)\n    parser.add_argument(\"--system\", type=Path, required=True, help=\"a directory of your system's WAV recordings\")\n    parser.add_argument(\"--output\", type=Path, required=True)\n    parser.add_argument(\"--root\", type=Path, default=ROOT)\n    parser.add_argument(\"--cache\", type=Path, default=CACHE, help=\"a writable directory for TTSDS2's cache\")\n    parser.add_argument(\"--device\", default=\"cpu\")\n    args = parser.parse_args(argv)\n    if args.output.exists():\n        parser.error(\"Use a fresh output path\")\n    result = score(args.system, root=args.root, cache=args.cache, device=args.device)\n    args.output.parent.mkdir(parents=True, exist_ok=True)\n    args.output.write_text(json.dumps(result, indent=2, default=str) + \"\\n\")\n    print(json.dumps({\"recordings\": result[\"recordings\"], \"output\": str(args.output)}))\n\n\nif __name__ == \"__main__\":\n    main()"],"d":0.2}]}],"parts":[123,227]}