kosa8 cloud sandbox fork
Make live copies of a cloud sandbox as it is now, memory and processes included
Usage#
kosa8 cloud sandbox fork ID
Copies the sandbox as it is now, memory and processes included, -n times (up to 1000; past 100 they are made 100 at a time), all on its host. Prints each copy's ID on its own line.
For RL rollouts: --run labels every copy kosa8.run=RUN, --lease deletes each unless heartbeats extend it, --prefix names them, and --partial keeps the copies that fit when the host or the plan has no room for all (a fork past 100, or with any of these, is partial unless --partial=false).
Options#
| Flag | Type | What it does | Default |
|---|---|---|---|
-l, --label | stringArray | a label for every copy, key=value (repeatable) | [] |
--lease | duration | delete each copy this long from now unless a heartbeat extends it (1m to 24h), so a crashed trainer leaks none | 0s |
-n, --n | int | how many copies (1 to 1000) | 1 |
--partial | bool | keep what was made when some fail (default: all or nothing) | — |
--prefix | string | name them PREFIX-0001, PREFIX-0002, … | — |
--run | string | label every copy kosa8.run=RUN, the run heartbeat, drain and kosa8 cloud rl select by | — |
Example#
kosa8 cloud sandbox fork sbx_abc -n 4 kosa8 cloud sandbox fork sbx_abc -n 250 --run run_8f2k --lease 10m --prefix rollout kosa8 cloud sandbox fork sbx_abc -n 64 --label task=gsm8k --partial=false