@f-inverse/jammi-client 0.14.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/README.md +68 -0
- package/dist/gen/jammi/v1/audit_pb.d.ts +213 -0
- package/dist/gen/jammi/v1/audit_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/audit_pb.js +63 -0
- package/dist/gen/jammi/v1/audit_pb.js.map +1 -0
- package/dist/gen/jammi/v1/channel_pb.d.ts +158 -0
- package/dist/gen/jammi/v1/channel_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/channel_pb.js +87 -0
- package/dist/gen/jammi/v1/channel_pb.js.map +1 -0
- package/dist/gen/jammi/v1/embedding_pb.d.ts +514 -0
- package/dist/gen/jammi/v1/embedding_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/embedding_pb.js +178 -0
- package/dist/gen/jammi/v1/embedding_pb.js.map +1 -0
- package/dist/gen/jammi/v1/error_pb.d.ts +739 -0
- package/dist/gen/jammi/v1/error_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/error_pb.js +94 -0
- package/dist/gen/jammi/v1/error_pb.js.map +1 -0
- package/dist/gen/jammi/v1/eval_pb.d.ts +821 -0
- package/dist/gen/jammi/v1/eval_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/eval_pb.js +187 -0
- package/dist/gen/jammi/v1/eval_pb.js.map +1 -0
- package/dist/gen/jammi/v1/fine_tune_pb.d.ts +513 -0
- package/dist/gen/jammi/v1/fine_tune_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/fine_tune_pb.js +231 -0
- package/dist/gen/jammi/v1/fine_tune_pb.js.map +1 -0
- package/dist/gen/jammi/v1/inference_pb.d.ts +144 -0
- package/dist/gen/jammi/v1/inference_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/inference_pb.js +78 -0
- package/dist/gen/jammi/v1/inference_pb.js.map +1 -0
- package/dist/gen/jammi/v1/mutable_table_pb.d.ts +183 -0
- package/dist/gen/jammi/v1/mutable_table_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/mutable_table_pb.js +59 -0
- package/dist/gen/jammi/v1/mutable_table_pb.js.map +1 -0
- package/dist/gen/jammi/v1/session_pb.d.ts +104 -0
- package/dist/gen/jammi/v1/session_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/session_pb.js +38 -0
- package/dist/gen/jammi/v1/session_pb.js.map +1 -0
- package/dist/gen/jammi/v1/trigger_pb.d.ts +399 -0
- package/dist/gen/jammi/v1/trigger_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/trigger_pb.js +80 -0
- package/dist/gen/jammi/v1/trigger_pb.js.map +1 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +89 -0
- package/dist/index.js.map +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { ModelTask } from "./inference_pb";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file jammi/v1/fine_tune.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_jammi_v1_fine_tune: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* Embedding-loss function. Mirrors the engine's `EmbeddingLoss`; the two
|
|
10
|
+
* margin/temperature-carrying variants carry their scalar parameter.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message jammi.v1.fine_tune.EmbeddingLoss
|
|
13
|
+
*/
|
|
14
|
+
export type EmbeddingLoss = Message<"jammi.v1.fine_tune.EmbeddingLoss"> & {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from oneof jammi.v1.fine_tune.EmbeddingLoss.loss
|
|
17
|
+
*/
|
|
18
|
+
loss: {
|
|
19
|
+
/**
|
|
20
|
+
* CoSENT: cross-entropy over cosine-similarity ordering. No parameter.
|
|
21
|
+
*
|
|
22
|
+
* @generated from field: jammi.v1.fine_tune.EmbeddingLoss.CoSent co_sent = 1;
|
|
23
|
+
*/
|
|
24
|
+
value: EmbeddingLoss_CoSent;
|
|
25
|
+
case: "coSent";
|
|
26
|
+
} | {
|
|
27
|
+
/**
|
|
28
|
+
* Triplet loss with the given margin.
|
|
29
|
+
*
|
|
30
|
+
* @generated from field: jammi.v1.fine_tune.EmbeddingLoss.Triplet triplet = 2;
|
|
31
|
+
*/
|
|
32
|
+
value: EmbeddingLoss_Triplet;
|
|
33
|
+
case: "triplet";
|
|
34
|
+
} | {
|
|
35
|
+
/**
|
|
36
|
+
* InfoNCE with in-batch negatives at the given temperature.
|
|
37
|
+
*
|
|
38
|
+
* @generated from field: jammi.v1.fine_tune.EmbeddingLoss.MultipleNegativesRanking multiple_negatives_ranking = 3;
|
|
39
|
+
*/
|
|
40
|
+
value: EmbeddingLoss_MultipleNegativesRanking;
|
|
41
|
+
case: "multipleNegativesRanking";
|
|
42
|
+
} | {
|
|
43
|
+
case: undefined;
|
|
44
|
+
value?: undefined;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Describes the message jammi.v1.fine_tune.EmbeddingLoss.
|
|
49
|
+
* Use `create(EmbeddingLossSchema)` to create a new message.
|
|
50
|
+
*/
|
|
51
|
+
export declare const EmbeddingLossSchema: GenMessage<EmbeddingLoss>;
|
|
52
|
+
/**
|
|
53
|
+
* @generated from message jammi.v1.fine_tune.EmbeddingLoss.CoSent
|
|
54
|
+
*/
|
|
55
|
+
export type EmbeddingLoss_CoSent = Message<"jammi.v1.fine_tune.EmbeddingLoss.CoSent"> & {};
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message jammi.v1.fine_tune.EmbeddingLoss.CoSent.
|
|
58
|
+
* Use `create(EmbeddingLoss_CoSentSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
export declare const EmbeddingLoss_CoSentSchema: GenMessage<EmbeddingLoss_CoSent>;
|
|
61
|
+
/**
|
|
62
|
+
* @generated from message jammi.v1.fine_tune.EmbeddingLoss.Triplet
|
|
63
|
+
*/
|
|
64
|
+
export type EmbeddingLoss_Triplet = Message<"jammi.v1.fine_tune.EmbeddingLoss.Triplet"> & {
|
|
65
|
+
/**
|
|
66
|
+
* @generated from field: double margin = 1;
|
|
67
|
+
*/
|
|
68
|
+
margin: number;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Describes the message jammi.v1.fine_tune.EmbeddingLoss.Triplet.
|
|
72
|
+
* Use `create(EmbeddingLoss_TripletSchema)` to create a new message.
|
|
73
|
+
*/
|
|
74
|
+
export declare const EmbeddingLoss_TripletSchema: GenMessage<EmbeddingLoss_Triplet>;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from message jammi.v1.fine_tune.EmbeddingLoss.MultipleNegativesRanking
|
|
77
|
+
*/
|
|
78
|
+
export type EmbeddingLoss_MultipleNegativesRanking = Message<"jammi.v1.fine_tune.EmbeddingLoss.MultipleNegativesRanking"> & {
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: double temperature = 1;
|
|
81
|
+
*/
|
|
82
|
+
temperature: number;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Describes the message jammi.v1.fine_tune.EmbeddingLoss.MultipleNegativesRanking.
|
|
86
|
+
* Use `create(EmbeddingLoss_MultipleNegativesRankingSchema)` to create a new message.
|
|
87
|
+
*/
|
|
88
|
+
export declare const EmbeddingLoss_MultipleNegativesRankingSchema: GenMessage<EmbeddingLoss_MultipleNegativesRanking>;
|
|
89
|
+
/**
|
|
90
|
+
* 0-based encoder layer indices that receive LoRA adapters. Wrapper message so
|
|
91
|
+
* "no restriction" (field absent → all layers) is distinguishable from "an
|
|
92
|
+
* empty restriction"; mirrors the engine's `Option<Vec<usize>>`.
|
|
93
|
+
*
|
|
94
|
+
* @generated from message jammi.v1.fine_tune.LayersToTransform
|
|
95
|
+
*/
|
|
96
|
+
export type LayersToTransform = Message<"jammi.v1.fine_tune.LayersToTransform"> & {
|
|
97
|
+
/**
|
|
98
|
+
* @generated from field: repeated uint32 layers = 1;
|
|
99
|
+
*/
|
|
100
|
+
layers: number[];
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Describes the message jammi.v1.fine_tune.LayersToTransform.
|
|
104
|
+
* Use `create(LayersToTransformSchema)` to create a new message.
|
|
105
|
+
*/
|
|
106
|
+
export declare const LayersToTransformSchema: GenMessage<LayersToTransform>;
|
|
107
|
+
/**
|
|
108
|
+
* Configuration for a fine-tuning job. Mirrors the engine's `FineTuneConfig`
|
|
109
|
+
* field for field; every field is read by the trainer or the LoRA builder.
|
|
110
|
+
* `embedding_loss`/`classification_loss` are unset to let the engine
|
|
111
|
+
* auto-select from the data format; `layers_to_transform` is unset for "all
|
|
112
|
+
* layers". The enum-typed fields default to the engine's default variant when
|
|
113
|
+
* left UNSPECIFIED, matching `FineTuneConfig::default()`.
|
|
114
|
+
*
|
|
115
|
+
* @generated from message jammi.v1.fine_tune.FineTuneConfig
|
|
116
|
+
*/
|
|
117
|
+
export type FineTuneConfig = Message<"jammi.v1.fine_tune.FineTuneConfig"> & {
|
|
118
|
+
/**
|
|
119
|
+
* @generated from field: uint32 lora_rank = 1;
|
|
120
|
+
*/
|
|
121
|
+
loraRank: number;
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: double lora_alpha = 2;
|
|
124
|
+
*/
|
|
125
|
+
loraAlpha: number;
|
|
126
|
+
/**
|
|
127
|
+
* @generated from field: double lora_dropout = 3;
|
|
128
|
+
*/
|
|
129
|
+
loraDropout: number;
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: double learning_rate = 4;
|
|
132
|
+
*/
|
|
133
|
+
learningRate: number;
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: uint32 epochs = 5;
|
|
136
|
+
*/
|
|
137
|
+
epochs: number;
|
|
138
|
+
/**
|
|
139
|
+
* @generated from field: uint32 batch_size = 6;
|
|
140
|
+
*/
|
|
141
|
+
batchSize: number;
|
|
142
|
+
/**
|
|
143
|
+
* @generated from field: uint32 max_seq_length = 7;
|
|
144
|
+
*/
|
|
145
|
+
maxSeqLength: number;
|
|
146
|
+
/**
|
|
147
|
+
* Unset = auto-select from the data format.
|
|
148
|
+
*
|
|
149
|
+
* @generated from field: optional jammi.v1.fine_tune.EmbeddingLoss embedding_loss = 8;
|
|
150
|
+
*/
|
|
151
|
+
embeddingLoss?: EmbeddingLoss | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* Unset = auto-select from the data format.
|
|
154
|
+
*
|
|
155
|
+
* @generated from field: optional jammi.v1.fine_tune.ClassificationLoss classification_loss = 9;
|
|
156
|
+
*/
|
|
157
|
+
classificationLoss?: ClassificationLoss | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: uint32 gradient_accumulation_steps = 10;
|
|
160
|
+
*/
|
|
161
|
+
gradientAccumulationSteps: number;
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: double validation_fraction = 11;
|
|
164
|
+
*/
|
|
165
|
+
validationFraction: number;
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: uint32 early_stopping_patience = 12;
|
|
168
|
+
*/
|
|
169
|
+
earlyStoppingPatience: number;
|
|
170
|
+
/**
|
|
171
|
+
* @generated from field: uint32 warmup_steps = 13;
|
|
172
|
+
*/
|
|
173
|
+
warmupSteps: number;
|
|
174
|
+
/**
|
|
175
|
+
* @generated from field: jammi.v1.fine_tune.LrSchedule lr_schedule = 14;
|
|
176
|
+
*/
|
|
177
|
+
lrSchedule: LrSchedule;
|
|
178
|
+
/**
|
|
179
|
+
* @generated from field: jammi.v1.fine_tune.EarlyStoppingMetric early_stopping_metric = 15;
|
|
180
|
+
*/
|
|
181
|
+
earlyStoppingMetric: EarlyStoppingMetric;
|
|
182
|
+
/**
|
|
183
|
+
* Layer-name suffixes that receive LoRA adapters. Empty = projection head
|
|
184
|
+
* over the frozen base model; non-empty = LoRA inside the encoder.
|
|
185
|
+
*
|
|
186
|
+
* @generated from field: repeated string target_modules = 16;
|
|
187
|
+
*/
|
|
188
|
+
targetModules: string[];
|
|
189
|
+
/**
|
|
190
|
+
* Unset = all layers.
|
|
191
|
+
*
|
|
192
|
+
* @generated from field: optional jammi.v1.fine_tune.LayersToTransform layers_to_transform = 17;
|
|
193
|
+
*/
|
|
194
|
+
layersToTransform?: LayersToTransform | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: bool use_rslora = 18;
|
|
197
|
+
*/
|
|
198
|
+
useRslora: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Per-module rank overrides keyed by module-name substring.
|
|
201
|
+
*
|
|
202
|
+
* @generated from field: map<string, uint32> rank_pattern = 19;
|
|
203
|
+
*/
|
|
204
|
+
rankPattern: {
|
|
205
|
+
[key: string]: number;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: jammi.v1.fine_tune.LoraInitMode init_lora_weights = 20;
|
|
209
|
+
*/
|
|
210
|
+
initLoraWeights: LoraInitMode;
|
|
211
|
+
/**
|
|
212
|
+
* @generated from field: jammi.v1.fine_tune.BackboneDtype backbone_dtype = 21;
|
|
213
|
+
*/
|
|
214
|
+
backboneDtype: BackboneDtype;
|
|
215
|
+
/**
|
|
216
|
+
* @generated from field: double weight_decay = 22;
|
|
217
|
+
*/
|
|
218
|
+
weightDecay: number;
|
|
219
|
+
/**
|
|
220
|
+
* @generated from field: double max_grad_norm = 23;
|
|
221
|
+
*/
|
|
222
|
+
maxGradNorm: number;
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Describes the message jammi.v1.fine_tune.FineTuneConfig.
|
|
226
|
+
* Use `create(FineTuneConfigSchema)` to create a new message.
|
|
227
|
+
*/
|
|
228
|
+
export declare const FineTuneConfigSchema: GenMessage<FineTuneConfig>;
|
|
229
|
+
/**
|
|
230
|
+
* @generated from message jammi.v1.fine_tune.StartFineTuneRequest
|
|
231
|
+
*/
|
|
232
|
+
export type StartFineTuneRequest = Message<"jammi.v1.fine_tune.StartFineTuneRequest"> & {
|
|
233
|
+
/**
|
|
234
|
+
* Registered source carrying the training data.
|
|
235
|
+
*
|
|
236
|
+
* @generated from field: string source_id = 1;
|
|
237
|
+
*/
|
|
238
|
+
sourceId: string;
|
|
239
|
+
/**
|
|
240
|
+
* Base encoder to adapt. `local:<path>`, an HF repo id, or a fine-tuned id.
|
|
241
|
+
*
|
|
242
|
+
* @generated from field: string base_model = 2;
|
|
243
|
+
*/
|
|
244
|
+
baseModel: string;
|
|
245
|
+
/**
|
|
246
|
+
* Training-data columns read from the source (e.g. text_a/text_b/score,
|
|
247
|
+
* anchor/positive/negative, or text/label — the engine detects the format).
|
|
248
|
+
*
|
|
249
|
+
* @generated from field: repeated string columns = 3;
|
|
250
|
+
*/
|
|
251
|
+
columns: string[];
|
|
252
|
+
/**
|
|
253
|
+
* Fine-tuning method.
|
|
254
|
+
*
|
|
255
|
+
* @generated from field: jammi.v1.fine_tune.FineTuneMethod method = 4;
|
|
256
|
+
*/
|
|
257
|
+
method: FineTuneMethod;
|
|
258
|
+
/**
|
|
259
|
+
* Task the adapted model performs. Reuses InferenceService's ModelTask.
|
|
260
|
+
*
|
|
261
|
+
* @generated from field: jammi.v1.inference.ModelTask task = 5;
|
|
262
|
+
*/
|
|
263
|
+
task: ModelTask;
|
|
264
|
+
/**
|
|
265
|
+
* Optional hyperparameters; unset applies the engine's defaults.
|
|
266
|
+
*
|
|
267
|
+
* @generated from field: optional jammi.v1.fine_tune.FineTuneConfig config = 6;
|
|
268
|
+
*/
|
|
269
|
+
config?: FineTuneConfig | undefined;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Describes the message jammi.v1.fine_tune.StartFineTuneRequest.
|
|
273
|
+
* Use `create(StartFineTuneRequestSchema)` to create a new message.
|
|
274
|
+
*/
|
|
275
|
+
export declare const StartFineTuneRequestSchema: GenMessage<StartFineTuneRequest>;
|
|
276
|
+
/**
|
|
277
|
+
* @generated from message jammi.v1.fine_tune.StartFineTuneResponse
|
|
278
|
+
*/
|
|
279
|
+
export type StartFineTuneResponse = Message<"jammi.v1.fine_tune.StartFineTuneResponse"> & {
|
|
280
|
+
/**
|
|
281
|
+
* Server-assigned job id. Poll `FineTuneStatus` with it.
|
|
282
|
+
*
|
|
283
|
+
* @generated from field: string job_id = 1;
|
|
284
|
+
*/
|
|
285
|
+
jobId: string;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* Describes the message jammi.v1.fine_tune.StartFineTuneResponse.
|
|
289
|
+
* Use `create(StartFineTuneResponseSchema)` to create a new message.
|
|
290
|
+
*/
|
|
291
|
+
export declare const StartFineTuneResponseSchema: GenMessage<StartFineTuneResponse>;
|
|
292
|
+
/**
|
|
293
|
+
* @generated from message jammi.v1.fine_tune.FineTuneStatusRequest
|
|
294
|
+
*/
|
|
295
|
+
export type FineTuneStatusRequest = Message<"jammi.v1.fine_tune.FineTuneStatusRequest"> & {
|
|
296
|
+
/**
|
|
297
|
+
* Job id returned by a prior StartFineTune call.
|
|
298
|
+
*
|
|
299
|
+
* @generated from field: string job_id = 1;
|
|
300
|
+
*/
|
|
301
|
+
jobId: string;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Describes the message jammi.v1.fine_tune.FineTuneStatusRequest.
|
|
305
|
+
* Use `create(FineTuneStatusRequestSchema)` to create a new message.
|
|
306
|
+
*/
|
|
307
|
+
export declare const FineTuneStatusRequestSchema: GenMessage<FineTuneStatusRequest>;
|
|
308
|
+
/**
|
|
309
|
+
* @generated from message jammi.v1.fine_tune.FineTuneStatusResponse
|
|
310
|
+
*/
|
|
311
|
+
export type FineTuneStatusResponse = Message<"jammi.v1.fine_tune.FineTuneStatusResponse"> & {
|
|
312
|
+
/**
|
|
313
|
+
* Current lifecycle status: "queued", "running", "completed", or "failed".
|
|
314
|
+
*
|
|
315
|
+
* @generated from field: string status = 1;
|
|
316
|
+
*/
|
|
317
|
+
status: string;
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* Describes the message jammi.v1.fine_tune.FineTuneStatusResponse.
|
|
321
|
+
* Use `create(FineTuneStatusResponseSchema)` to create a new message.
|
|
322
|
+
*/
|
|
323
|
+
export declare const FineTuneStatusResponseSchema: GenMessage<FineTuneStatusResponse>;
|
|
324
|
+
/**
|
|
325
|
+
* Fine-tuning method. Mirrors the engine's `FineTuneMethod`; LoRA is the only
|
|
326
|
+
* method, trained as either an encoder-internal adapter or a projection head
|
|
327
|
+
* over a frozen base model depending on `FineTuneConfig.target_modules`.
|
|
328
|
+
*
|
|
329
|
+
* @generated from enum jammi.v1.fine_tune.FineTuneMethod
|
|
330
|
+
*/
|
|
331
|
+
export declare enum FineTuneMethod {
|
|
332
|
+
/**
|
|
333
|
+
* @generated from enum value: FINE_TUNE_METHOD_UNSPECIFIED = 0;
|
|
334
|
+
*/
|
|
335
|
+
FINE_TUNE_METHOD_UNSPECIFIED = 0,
|
|
336
|
+
/**
|
|
337
|
+
* @generated from enum value: LORA = 1;
|
|
338
|
+
*/
|
|
339
|
+
LORA = 1
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Describes the enum jammi.v1.fine_tune.FineTuneMethod.
|
|
343
|
+
*/
|
|
344
|
+
export declare const FineTuneMethodSchema: GenEnum<FineTuneMethod>;
|
|
345
|
+
/**
|
|
346
|
+
* Classification-loss function. Mirrors the engine's `ClassificationLoss`.
|
|
347
|
+
*
|
|
348
|
+
* @generated from enum jammi.v1.fine_tune.ClassificationLoss
|
|
349
|
+
*/
|
|
350
|
+
export declare enum ClassificationLoss {
|
|
351
|
+
/**
|
|
352
|
+
* @generated from enum value: CLASSIFICATION_LOSS_UNSPECIFIED = 0;
|
|
353
|
+
*/
|
|
354
|
+
CLASSIFICATION_LOSS_UNSPECIFIED = 0,
|
|
355
|
+
/**
|
|
356
|
+
* @generated from enum value: CROSS_ENTROPY = 1;
|
|
357
|
+
*/
|
|
358
|
+
CROSS_ENTROPY = 1
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Describes the enum jammi.v1.fine_tune.ClassificationLoss.
|
|
362
|
+
*/
|
|
363
|
+
export declare const ClassificationLossSchema: GenEnum<ClassificationLoss>;
|
|
364
|
+
/**
|
|
365
|
+
* Which loss signal drives early stopping. Mirrors `EarlyStoppingMetric`.
|
|
366
|
+
*
|
|
367
|
+
* @generated from enum jammi.v1.fine_tune.EarlyStoppingMetric
|
|
368
|
+
*/
|
|
369
|
+
export declare enum EarlyStoppingMetric {
|
|
370
|
+
/**
|
|
371
|
+
* @generated from enum value: EARLY_STOPPING_METRIC_UNSPECIFIED = 0;
|
|
372
|
+
*/
|
|
373
|
+
EARLY_STOPPING_METRIC_UNSPECIFIED = 0,
|
|
374
|
+
/**
|
|
375
|
+
* @generated from enum value: VAL_LOSS = 1;
|
|
376
|
+
*/
|
|
377
|
+
VAL_LOSS = 1,
|
|
378
|
+
/**
|
|
379
|
+
* @generated from enum value: TRAIN_LOSS = 2;
|
|
380
|
+
*/
|
|
381
|
+
TRAIN_LOSS = 2
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Describes the enum jammi.v1.fine_tune.EarlyStoppingMetric.
|
|
385
|
+
*/
|
|
386
|
+
export declare const EarlyStoppingMetricSchema: GenEnum<EarlyStoppingMetric>;
|
|
387
|
+
/**
|
|
388
|
+
* Learning-rate schedule after warmup. Mirrors the engine's `LrSchedule`.
|
|
389
|
+
*
|
|
390
|
+
* @generated from enum jammi.v1.fine_tune.LrSchedule
|
|
391
|
+
*/
|
|
392
|
+
export declare enum LrSchedule {
|
|
393
|
+
/**
|
|
394
|
+
* @generated from enum value: LR_SCHEDULE_UNSPECIFIED = 0;
|
|
395
|
+
*/
|
|
396
|
+
LR_SCHEDULE_UNSPECIFIED = 0,
|
|
397
|
+
/**
|
|
398
|
+
* @generated from enum value: CONSTANT = 1;
|
|
399
|
+
*/
|
|
400
|
+
CONSTANT = 1,
|
|
401
|
+
/**
|
|
402
|
+
* @generated from enum value: COSINE_DECAY = 2;
|
|
403
|
+
*/
|
|
404
|
+
COSINE_DECAY = 2,
|
|
405
|
+
/**
|
|
406
|
+
* @generated from enum value: LINEAR_DECAY = 3;
|
|
407
|
+
*/
|
|
408
|
+
LINEAR_DECAY = 3
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Describes the enum jammi.v1.fine_tune.LrSchedule.
|
|
412
|
+
*/
|
|
413
|
+
export declare const LrScheduleSchema: GenEnum<LrSchedule>;
|
|
414
|
+
/**
|
|
415
|
+
* LoRA A/B matrix initialisation. Mirrors `jammi_lora::LoraInitMode`.
|
|
416
|
+
*
|
|
417
|
+
* @generated from enum jammi.v1.fine_tune.LoraInitMode
|
|
418
|
+
*/
|
|
419
|
+
export declare enum LoraInitMode {
|
|
420
|
+
/**
|
|
421
|
+
* @generated from enum value: LORA_INIT_MODE_UNSPECIFIED = 0;
|
|
422
|
+
*/
|
|
423
|
+
LORA_INIT_MODE_UNSPECIFIED = 0,
|
|
424
|
+
/**
|
|
425
|
+
* @generated from enum value: ZEROS_B = 1;
|
|
426
|
+
*/
|
|
427
|
+
ZEROS_B = 1,
|
|
428
|
+
/**
|
|
429
|
+
* @generated from enum value: GAUSSIAN = 2;
|
|
430
|
+
*/
|
|
431
|
+
GAUSSIAN = 2
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Describes the enum jammi.v1.fine_tune.LoraInitMode.
|
|
435
|
+
*/
|
|
436
|
+
export declare const LoraInitModeSchema: GenEnum<LoraInitMode>;
|
|
437
|
+
/**
|
|
438
|
+
* Dtype for the frozen backbone weights. Mirrors `jammi_lora::BackboneDtype`.
|
|
439
|
+
*
|
|
440
|
+
* @generated from enum jammi.v1.fine_tune.BackboneDtype
|
|
441
|
+
*/
|
|
442
|
+
export declare enum BackboneDtype {
|
|
443
|
+
/**
|
|
444
|
+
* @generated from enum value: BACKBONE_DTYPE_UNSPECIFIED = 0;
|
|
445
|
+
*/
|
|
446
|
+
BACKBONE_DTYPE_UNSPECIFIED = 0,
|
|
447
|
+
/**
|
|
448
|
+
* @generated from enum value: F32 = 1;
|
|
449
|
+
*/
|
|
450
|
+
F32 = 1,
|
|
451
|
+
/**
|
|
452
|
+
* @generated from enum value: BF16 = 2;
|
|
453
|
+
*/
|
|
454
|
+
BF16 = 2,
|
|
455
|
+
/**
|
|
456
|
+
* @generated from enum value: F16 = 3;
|
|
457
|
+
*/
|
|
458
|
+
F16 = 3
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Describes the enum jammi.v1.fine_tune.BackboneDtype.
|
|
462
|
+
*/
|
|
463
|
+
export declare const BackboneDtypeSchema: GenEnum<BackboneDtype>;
|
|
464
|
+
/**
|
|
465
|
+
* FineTuneService — the wire surface for the engine's fine-tuning verb.
|
|
466
|
+
*
|
|
467
|
+
* `StartFineTune` and `FineTuneStatus` are imperative session methods, not SQL
|
|
468
|
+
* queries, so they live as typed gRPC RPCs alongside SessionService /
|
|
469
|
+
* TriggerService / EmbeddingService / InferenceService / EvalService rather
|
|
470
|
+
* than on the Flight SQL surface (which carries query/result only, per ADR-01
|
|
471
|
+
* §3.2). Fine-tuning is a substrate primitive — training a LoRA adapter over a
|
|
472
|
+
* registered source — and names no tenant-domain concept.
|
|
473
|
+
*
|
|
474
|
+
* The two verbs delegate 1:1 to the consumer-facing `Session`/`LocalSession`
|
|
475
|
+
* abstraction: `StartFineTune` mirrors `Session::fine_tune` (which returns a
|
|
476
|
+
* `FineTuneJobId`) and `FineTuneStatus` mirrors `Session::fine_tune_status`.
|
|
477
|
+
* The job runs asynchronously inside the engine; the client polls
|
|
478
|
+
* `FineTuneStatus` by id until a terminal state. There is no progress stream —
|
|
479
|
+
* the abstraction exposes none, so this surface invents none. The service
|
|
480
|
+
* reimplements no training, LoRA, or scan logic; it is purely a wire adapter.
|
|
481
|
+
*
|
|
482
|
+
* Tenant scope is read from the request's `SessionTenant` extension, set by the
|
|
483
|
+
* shared TenantInterceptor from the `jammi-session-id` header — the same
|
|
484
|
+
* mechanism every other gRPC service and Flight SQL already use.
|
|
485
|
+
*
|
|
486
|
+
* @generated from service jammi.v1.fine_tune.FineTuneService
|
|
487
|
+
*/
|
|
488
|
+
export declare const FineTuneService: GenService<{
|
|
489
|
+
/**
|
|
490
|
+
* Start a fine-tuning job over a registered source and return its id. The
|
|
491
|
+
* job trains asynchronously; poll `FineTuneStatus` with the returned id.
|
|
492
|
+
* Peer of the abstraction's `fine_tune`.
|
|
493
|
+
*
|
|
494
|
+
* @generated from rpc jammi.v1.fine_tune.FineTuneService.StartFineTune
|
|
495
|
+
*/
|
|
496
|
+
startFineTune: {
|
|
497
|
+
methodKind: "unary";
|
|
498
|
+
input: typeof StartFineTuneRequestSchema;
|
|
499
|
+
output: typeof StartFineTuneResponseSchema;
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* Read a fine-tune job's current status by id. Peer of the abstraction's
|
|
503
|
+
* `fine_tune_status`.
|
|
504
|
+
*
|
|
505
|
+
* @generated from rpc jammi.v1.fine_tune.FineTuneService.FineTuneStatus
|
|
506
|
+
*/
|
|
507
|
+
fineTuneStatus: {
|
|
508
|
+
methodKind: "unary";
|
|
509
|
+
input: typeof FineTuneStatusRequestSchema;
|
|
510
|
+
output: typeof FineTuneStatusResponseSchema;
|
|
511
|
+
};
|
|
512
|
+
}>;
|
|
513
|
+
//# sourceMappingURL=fine_tune_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fine_tune_pb.d.ts","sourceRoot":"","sources":["../../../../src/gen/jammi/v1/fine_tune_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE7F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AA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