@tuned-tensor/local 0.2.9 → 0.4.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.
- package/CHANGELOG.md +86 -0
- package/README.md +110 -201
- package/dist/active-model.d.ts +16 -0
- package/dist/active-model.js +88 -0
- package/dist/active-model.js.map +1 -0
- package/dist/artifacts.d.ts +5 -4
- package/dist/artifacts.js +57 -33
- package/dist/artifacts.js.map +1 -1
- package/dist/compare.d.ts +1 -8
- package/dist/compare.js +1 -23
- package/dist/compare.js.map +1 -1
- package/dist/contracts.d.ts +234 -365
- package/dist/contracts.js +95 -224
- package/dist/contracts.js.map +1 -1
- package/dist/dataset.d.ts +11 -4
- package/dist/dataset.js +67 -125
- package/dist/dataset.js.map +1 -1
- package/dist/doctor.d.ts +2 -3
- package/dist/doctor.js +23 -161
- package/dist/doctor.js.map +1 -1
- package/dist/evaluation.d.ts +11 -71
- package/dist/evaluation.js +212 -572
- package/dist/evaluation.js.map +1 -1
- package/dist/general-regression.d.ts +10 -0
- package/dist/general-regression.js +16 -0
- package/dist/general-regression.js.map +1 -0
- package/dist/huggingface-cache.d.ts +8 -7
- package/dist/huggingface-cache.js +16 -8
- package/dist/huggingface-cache.js.map +1 -1
- package/dist/index.d.ts +2 -10
- package/dist/index.js +358 -627
- package/dist/index.js.map +1 -1
- package/dist/local-project.d.ts +1 -11
- package/dist/local-project.js +33 -61
- package/dist/local-project.js.map +1 -1
- package/dist/model-registry.d.ts +3 -16
- package/dist/model-registry.js +76 -292
- package/dist/model-registry.js.map +1 -1
- package/dist/model-server.d.ts +7 -3
- package/dist/model-server.js +34 -25
- package/dist/model-server.js.map +1 -1
- package/dist/orchestrator.d.ts +11 -25
- package/dist/orchestrator.js +393 -563
- package/dist/orchestrator.js.map +1 -1
- package/dist/prefetch.d.ts +1 -5
- package/dist/prefetch.js +14 -19
- package/dist/prefetch.js.map +1 -1
- package/dist/process-runner.d.ts +10 -29
- package/dist/process-runner.js +63 -169
- package/dist/process-runner.js.map +1 -1
- package/dist/process-training.d.ts +0 -1
- package/dist/process-training.js +10 -87
- package/dist/process-training.js.map +1 -1
- package/dist/store.d.ts +1 -3
- package/dist/store.js +92 -290
- package/dist/store.js.map +1 -1
- package/docs/architecture.md +87 -152
- package/docs/spark.md +66 -97
- package/examples/dry-runner.json +14 -0
- package/examples/general-regression.jsonl +4 -0
- package/examples/local-runner.json +13 -6
- package/examples/smoke-spec.json +41 -0
- package/package.json +6 -6
- package/training/local-runner/pyproject.toml +0 -5
- package/training/local-runner/src/evaluate.py +89 -234
- package/training/local-runner/src/model_contract.py +47 -0
- package/training/local-runner/src/prefetch.py +18 -4
- package/training/local-runner/src/serve.py +60 -117
- package/training/local-runner/src/sft_data.py +97 -0
- package/training/local-runner/src/train.py +146 -346
- package/training/local-runner/uv.lock +0 -1197
- package/dist/labeling-sanitize.d.ts +0 -31
- package/dist/labeling-sanitize.js +0 -158
- package/dist/labeling-sanitize.js.map +0 -1
- package/dist/labeling.d.ts +0 -155
- package/dist/labeling.js +0 -496
- package/dist/labeling.js.map +0 -1
- package/dist/openrouter.d.ts +0 -29
- package/dist/openrouter.js +0 -66
- package/dist/openrouter.js.map +0 -1
- package/dist/server.d.ts +0 -9
- package/dist/server.js +0 -211
- package/dist/server.js.map +0 -1
- package/docs/local-workflow-remediation-2026-07-13.md +0 -130
- package/docs/local-workflow-ux-review-2026-07-13.md +0 -458
- package/examples/dpo-preferences.jsonl +0 -2
- package/examples/dpo-run-request.json +0 -34
- package/examples/smoke-run-request.json +0 -34
- package/training/local-runner/src/train_dpo.py +0 -286
package/dist/orchestrator.d.ts
CHANGED
|
@@ -1,41 +1,27 @@
|
|
|
1
1
|
import { type FineTuneRunRequest, type LocalRunnerConfig, type RunReport } from "./contracts.js";
|
|
2
2
|
import type { LocalRunReporter } from "./run-reporter.js";
|
|
3
|
-
export type LocalRunStage = "prepare" | "baseline" | "train" | "candidate" | "score" | "report" | "all";
|
|
4
3
|
export interface LocalRunResult {
|
|
5
4
|
request: FineTuneRunRequest;
|
|
6
5
|
report: RunReport;
|
|
7
6
|
reportPath: string;
|
|
8
7
|
artifactDir: string;
|
|
9
8
|
}
|
|
10
|
-
export interface LocalStageRunResult {
|
|
11
|
-
request: FineTuneRunRequest;
|
|
12
|
-
stage: LocalRunStage;
|
|
13
|
-
report?: RunReport;
|
|
14
|
-
reportPath?: string;
|
|
15
|
-
artifactDir: string;
|
|
16
|
-
artifacts: {
|
|
17
|
-
training_jsonl: string;
|
|
18
|
-
stage_metadata: string;
|
|
19
|
-
training_report: string;
|
|
20
|
-
baseline_eval: string;
|
|
21
|
-
candidate_eval: string;
|
|
22
|
-
report: string;
|
|
23
|
-
artifact_manifest: string;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
9
|
export declare function loadJsonFile<T>(path: string): Promise<T>;
|
|
27
10
|
export declare function loadRunRequest(path: string): Promise<FineTuneRunRequest>;
|
|
28
11
|
export declare function loadLocalRunnerConfig(path?: string): Promise<LocalRunnerConfig>;
|
|
29
|
-
/**
|
|
30
|
-
|
|
31
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Parses the public contracts and fully validates every dataset before a run
|
|
14
|
+
* lock, store record, or artifact-directory claim is created.
|
|
15
|
+
*/
|
|
16
|
+
export declare function validateLocalFineTuneInput(input: {
|
|
17
|
+
request: unknown;
|
|
18
|
+
config: unknown;
|
|
19
|
+
}): Promise<{
|
|
32
20
|
request: FineTuneRunRequest;
|
|
33
21
|
config: LocalRunnerConfig;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
modelArtifact?: string;
|
|
38
|
-
}): Promise<LocalStageRunResult>;
|
|
22
|
+
}>;
|
|
23
|
+
/** Hash a local base model while permitting Hugging Face snapshot file links. */
|
|
24
|
+
export declare function fingerprintLocalBaseModel(uri: string): Promise<string>;
|
|
39
25
|
export declare function runLocalFineTune(input: {
|
|
40
26
|
request: FineTuneRunRequest;
|
|
41
27
|
config: LocalRunnerConfig;
|