@tuned-tensor/cli 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,7 +88,7 @@ import {
88
88
  withHuggingFaceCacheEnvironment,
89
89
  withOfflineHuggingFaceCacheEnvironment,
90
90
  writePrivateJsonAtomic
91
- } from "./chunk-U5HNS367.js";
91
+ } from "./chunk-4Q54NHKR.js";
92
92
 
93
93
  // src/local-runtime/index.ts
94
94
  import { readFileSync as readFileSync3, realpathSync } from "fs";
@@ -4,8 +4,8 @@ The foundation engine can run recoverable, single-GPU pretraining from `.txt`
4
4
  files or JSONL shards whose rows contain a string `text` field. Keep training
5
5
  and validation data in different files or directories.
6
6
 
7
- The commands below also support an [AWS GPU](aws-gpu.md) configured in the
8
- adjacent `local-runner.json`. The CLI and tokenizer still run locally; the
7
+ The commands below also support an [AWS GPU](aws-gpu.md) configured as
8
+ `runtime.gpu` in `tunedtensor.json`. The CLI and tokenizer still run locally; the
9
9
  local machine must stay awake and connected throughout the pipeline.
10
10
 
11
11
  ## Spec
@@ -13,7 +13,7 @@ not mutate the training runtime.
13
13
  serving is not supported by this runtime; CLI/package commands still work
14
14
  there. Unsupported hardware or model/adapter combinations fail rather than
15
15
  silently falling back to the old server.
16
- - `gpu` in `local-runner.json` applies to training and evaluation. It does not
16
+ - `runtime.gpu` in `tunedtensor.json` applies to training and evaluation. It does not
17
17
  move `tt serve` to AWS; returned artifacts still need a Linux/CUDA machine
18
18
  running the serving command.
19
19
  - Install `uv` and prefetch the certified model with `tt models prefetch`.
@@ -234,7 +234,7 @@
234
234
  "summary": "Validate the proposed document and bind it to the current file and workspace before approval.",
235
235
  "input": "Field changes + the hash returned by get_local_spec.",
236
236
  "output": "After /approve: atomic spec replacement and a before/after revision record.",
237
- "boundary": "Stale edits fail. Arrays replace fields; foundation and hyperparameters merge by key. Secure edits currently require Linux.",
237
+ "boundary": "Stale edits fail. add_examples appends; other arrays replace fields; foundation and hyperparameters merge by key. Secure edits currently require Linux.",
238
238
  "flow": [
239
239
  "prepareSpecUpdate",
240
240
  "diff",
@@ -37,24 +37,29 @@ for an invalid spec.
37
37
 
38
38
  ```text
39
39
  › Keep my training settings, but require a single lowercase sentiment label.
40
- [agent reads the spec and proposes a diff]
41
- › /spec diff
42
- › /approve
40
+ [agent reads the spec and shows the proposed diff]
41
+ ? Save this spec edit? y yes · n no · esc decide later
43
42
  › /spec
44
43
  › /spec history
45
44
  ```
46
45
 
47
46
  `get_local_spec` returns the document, validation diagnostics and content hash.
48
47
  `prepare_update_local_spec` requires that hash and a patch of supported fields.
49
- Arrays replace their whole field; `hyperparameters` and `foundation` merge by
48
+ `add_examples` appends examples without resending existing ones; other arrays
49
+ replace their whole field, and the diff lists only removed and added items.
50
+ `hyperparameters` and `foundation` merge by
50
51
  key. `runtime` and `evaluation` merge recursively; null removes optional settings.
51
52
  `pipeline` replaces the entire recipe (null restores the derived default). Unmentioned fields remain unchanged. Identity and engine cannot change
52
- through this edit tool. The full resulting document must pass the runtime's
53
+ through this edit tool. An adapter spec without an `id` gets one on its first
54
+ edit, pinned to the ID its earlier runs used, so later edits keep the same run
55
+ identity and evaluation split. Specs created by the agent start with an `id`. The full resulting document must pass the runtime's
53
56
  strict schema, readiness checks, nonblank content checks and distinct-example
54
57
  checks. Small example sets produce a warning; validation is not a claim of model
55
58
  quality or GPU readiness.
56
59
 
57
- Proposing an edit does not write anything. `/approve` revalidates the workspace,
60
+ Proposing an edit does not write anything. tt asks for a decision right after the
61
+ answer; pressing `Esc` leaves the edit pending, and `/spec diff` then shows it again
62
+ until you run `/approve` or `/reject`. Approval revalidates the workspace,
58
63
  parent directory, current file bytes and proposed result, acquires the spec's
59
64
  writer lock and atomically replaces the file. `/reject` leaves it unchanged.
60
65
  If the file changes after review, prepare a fresh edit. A saved edit invalidates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuned-tensor/cli",
3
- "version": "0.18.0",
3
+ "version": "0.20.0",
4
4
  "description": "Local TT agent and CUDA fine-tuning CLI for Tuned Tensor workflows",
5
5
  "repository": {
6
6
  "type": "git",