dejanseo commited on
Commit
e70bf74
1 Parent(s): 8f0ad5f

Upload 4 files

Browse files
51/model-info.pb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7d78d4542627a43ae10bc7f68a198fe3f60b30b9e2388d43f721da4fa4e09b4
3
+ size 169
51/model.tflite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
3
+ size 0
51/on_device_model_execution_config.json ADDED
@@ -0,0 +1,571 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ feature_configs {
2
+ feature: MODEL_EXECUTION_FEATURE_SUMMARIZE
3
+ input_config {
4
+ request_base_name: "optimization_guide.proto.SummarizeRequest"
5
+ execute_substitutions {
6
+ string_template: "%s%s\n%s%s\n%s\n%sTEXT: %s\n%s%sPlease summarize.%s%s"
7
+ substitutions {
8
+ candidates {
9
+ control_token: CONTROL_TOKEN_SYSTEM
10
+ }
11
+ }
12
+ substitutions {
13
+ candidates {
14
+ raw_string: "You are a skilled copy editor crafting headlines to capture attention and convey the essence of the content provided in the ‘TEXT’ section."
15
+ conditions {
16
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
17
+ conditions {
18
+ proto_field {
19
+ proto_descriptors {
20
+ tag_number: 3
21
+ }
22
+ proto_descriptors {
23
+ tag_number: 1
24
+ }
25
+ }
26
+ operator_type: OPERATOR_TYPE_EQUAL_TO
27
+ value {
28
+ int32_value: 4
29
+ }
30
+ }
31
+ }
32
+ }
33
+ candidates {
34
+ raw_string: "You are a skilled assistant that accurately summarizes content provided in the ‘TEXT’ section."
35
+ }
36
+ }
37
+ substitutions {
38
+ candidates {
39
+ raw_string: "Summarize the text as if explaining it to someone with a very short attention span.\n"
40
+ conditions {
41
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
42
+ conditions {
43
+ proto_field {
44
+ proto_descriptors {
45
+ tag_number: 3
46
+ }
47
+ proto_descriptors {
48
+ tag_number: 1
49
+ }
50
+ }
51
+ operator_type: OPERATOR_TYPE_EQUAL_TO
52
+ value {
53
+ int32_value: 1
54
+ }
55
+ }
56
+ }
57
+ }
58
+ candidates {
59
+ raw_string: "Extract the main points of the text and present them as a bulleted list.\n"
60
+ conditions {
61
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
62
+ conditions {
63
+ proto_field {
64
+ proto_descriptors {
65
+ tag_number: 3
66
+ }
67
+ proto_descriptors {
68
+ tag_number: 1
69
+ }
70
+ }
71
+ operator_type: OPERATOR_TYPE_EQUAL_TO
72
+ value {
73
+ int32_value: 2
74
+ }
75
+ }
76
+ }
77
+ }
78
+ candidates {
79
+ raw_string: "Craft an enticing summary that encourages the user to read the full text.\n"
80
+ conditions {
81
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
82
+ conditions {
83
+ proto_field {
84
+ proto_descriptors {
85
+ tag_number: 3
86
+ }
87
+ proto_descriptors {
88
+ tag_number: 1
89
+ }
90
+ }
91
+ operator_type: OPERATOR_TYPE_EQUAL_TO
92
+ value {
93
+ int32_value: 3
94
+ }
95
+ }
96
+ }
97
+ }
98
+ candidates {
99
+ raw_string: "Generate a headline that effectively summarizes the main point of the text.\n"
100
+ conditions {
101
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
102
+ conditions {
103
+ proto_field {
104
+ proto_descriptors {
105
+ tag_number: 3
106
+ }
107
+ proto_descriptors {
108
+ tag_number: 1
109
+ }
110
+ }
111
+ operator_type: OPERATOR_TYPE_EQUAL_TO
112
+ value {
113
+ int32_value: 4
114
+ }
115
+ }
116
+ }
117
+ }
118
+ candidates {
119
+ raw_string: ""
120
+ }
121
+ }
122
+ substitutions {
123
+ candidates {
124
+ raw_string: "The summary must fit within one sentence."
125
+ conditions {
126
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
127
+ conditions {
128
+ proto_field {
129
+ proto_descriptors {
130
+ tag_number: 3
131
+ }
132
+ proto_descriptors {
133
+ tag_number: 3
134
+ }
135
+ }
136
+ operator_type: OPERATOR_TYPE_EQUAL_TO
137
+ value {
138
+ int32_value: 1
139
+ }
140
+ }
141
+ conditions {
142
+ proto_field {
143
+ proto_descriptors {
144
+ tag_number: 3
145
+ }
146
+ proto_descriptors {
147
+ tag_number: 1
148
+ }
149
+ }
150
+ operator_type: OPERATOR_TYPE_EQUAL_TO
151
+ value {
152
+ int32_value: 1
153
+ }
154
+ }
155
+ }
156
+ }
157
+ candidates {
158
+ raw_string: "The summary must fit within one paragraph."
159
+ conditions {
160
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
161
+ conditions {
162
+ proto_field {
163
+ proto_descriptors {
164
+ tag_number: 3
165
+ }
166
+ proto_descriptors {
167
+ tag_number: 3
168
+ }
169
+ }
170
+ operator_type: OPERATOR_TYPE_EQUAL_TO
171
+ value {
172
+ int32_value: 3
173
+ }
174
+ }
175
+ conditions {
176
+ proto_field {
177
+ proto_descriptors {
178
+ tag_number: 3
179
+ }
180
+ proto_descriptors {
181
+ tag_number: 1
182
+ }
183
+ }
184
+ operator_type: OPERATOR_TYPE_EQUAL_TO
185
+ value {
186
+ int32_value: 1
187
+ }
188
+ }
189
+ }
190
+ }
191
+ candidates {
192
+ raw_string: "The summary must consist of no more than 3 bullet points."
193
+ conditions {
194
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
195
+ conditions {
196
+ proto_field {
197
+ proto_descriptors {
198
+ tag_number: 3
199
+ }
200
+ proto_descriptors {
201
+ tag_number: 3
202
+ }
203
+ }
204
+ operator_type: OPERATOR_TYPE_EQUAL_TO
205
+ value {
206
+ int32_value: 1
207
+ }
208
+ }
209
+ conditions {
210
+ proto_field {
211
+ proto_descriptors {
212
+ tag_number: 3
213
+ }
214
+ proto_descriptors {
215
+ tag_number: 1
216
+ }
217
+ }
218
+ operator_type: OPERATOR_TYPE_EQUAL_TO
219
+ value {
220
+ int32_value: 2
221
+ }
222
+ }
223
+ }
224
+ }
225
+ candidates {
226
+ raw_string: "The summary must consist of no more than 5 bullet points."
227
+ conditions {
228
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
229
+ conditions {
230
+ proto_field {
231
+ proto_descriptors {
232
+ tag_number: 3
233
+ }
234
+ proto_descriptors {
235
+ tag_number: 3
236
+ }
237
+ }
238
+ operator_type: OPERATOR_TYPE_EQUAL_TO
239
+ value {
240
+ int32_value: 2
241
+ }
242
+ }
243
+ conditions {
244
+ proto_field {
245
+ proto_descriptors {
246
+ tag_number: 3
247
+ }
248
+ proto_descriptors {
249
+ tag_number: 1
250
+ }
251
+ }
252
+ operator_type: OPERATOR_TYPE_EQUAL_TO
253
+ value {
254
+ int32_value: 2
255
+ }
256
+ }
257
+ }
258
+ }
259
+ candidates {
260
+ raw_string: "The summary must consist of no more than 7 bullet points."
261
+ conditions {
262
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
263
+ conditions {
264
+ proto_field {
265
+ proto_descriptors {
266
+ tag_number: 3
267
+ }
268
+ proto_descriptors {
269
+ tag_number: 3
270
+ }
271
+ }
272
+ operator_type: OPERATOR_TYPE_EQUAL_TO
273
+ value {
274
+ int32_value: 3
275
+ }
276
+ }
277
+ conditions {
278
+ proto_field {
279
+ proto_descriptors {
280
+ tag_number: 3
281
+ }
282
+ proto_descriptors {
283
+ tag_number: 1
284
+ }
285
+ }
286
+ operator_type: OPERATOR_TYPE_EQUAL_TO
287
+ value {
288
+ int32_value: 2
289
+ }
290
+ }
291
+ }
292
+ }
293
+ candidates {
294
+ raw_string: "The summary must fit within one sentence."
295
+ conditions {
296
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
297
+ conditions {
298
+ proto_field {
299
+ proto_descriptors {
300
+ tag_number: 3
301
+ }
302
+ proto_descriptors {
303
+ tag_number: 3
304
+ }
305
+ }
306
+ operator_type: OPERATOR_TYPE_EQUAL_TO
307
+ value {
308
+ int32_value: 1
309
+ }
310
+ }
311
+ conditions {
312
+ proto_field {
313
+ proto_descriptors {
314
+ tag_number: 3
315
+ }
316
+ proto_descriptors {
317
+ tag_number: 1
318
+ }
319
+ }
320
+ operator_type: OPERATOR_TYPE_EQUAL_TO
321
+ value {
322
+ int32_value: 3
323
+ }
324
+ }
325
+ }
326
+ }
327
+ candidates {
328
+ raw_string: "The summary must fit within one paragraph."
329
+ conditions {
330
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
331
+ conditions {
332
+ proto_field {
333
+ proto_descriptors {
334
+ tag_number: 3
335
+ }
336
+ proto_descriptors {
337
+ tag_number: 3
338
+ }
339
+ }
340
+ operator_type: OPERATOR_TYPE_EQUAL_TO
341
+ value {
342
+ int32_value: 3
343
+ }
344
+ }
345
+ conditions {
346
+ proto_field {
347
+ proto_descriptors {
348
+ tag_number: 3
349
+ }
350
+ proto_descriptors {
351
+ tag_number: 1
352
+ }
353
+ }
354
+ operator_type: OPERATOR_TYPE_EQUAL_TO
355
+ value {
356
+ int32_value: 3
357
+ }
358
+ }
359
+ }
360
+ }
361
+ candidates {
362
+ raw_string: "The headline must be concise, using a maximum of 12 words, and capture the essence of the text."
363
+ conditions {
364
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
365
+ conditions {
366
+ proto_field {
367
+ proto_descriptors {
368
+ tag_number: 3
369
+ }
370
+ proto_descriptors {
371
+ tag_number: 3
372
+ }
373
+ }
374
+ operator_type: OPERATOR_TYPE_EQUAL_TO
375
+ value {
376
+ int32_value: 1
377
+ }
378
+ }
379
+ conditions {
380
+ proto_field {
381
+ proto_descriptors {
382
+ tag_number: 3
383
+ }
384
+ proto_descriptors {
385
+ tag_number: 1
386
+ }
387
+ }
388
+ operator_type: OPERATOR_TYPE_EQUAL_TO
389
+ value {
390
+ int32_value: 4
391
+ }
392
+ }
393
+ }
394
+ }
395
+ candidates {
396
+ raw_string: "The headline must be concise, using a maximum of 17 words, and capture the essence of the text."
397
+ conditions {
398
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
399
+ conditions {
400
+ proto_field {
401
+ proto_descriptors {
402
+ tag_number: 3
403
+ }
404
+ proto_descriptors {
405
+ tag_number: 3
406
+ }
407
+ }
408
+ operator_type: OPERATOR_TYPE_EQUAL_TO
409
+ value {
410
+ int32_value: 2
411
+ }
412
+ }
413
+ conditions {
414
+ proto_field {
415
+ proto_descriptors {
416
+ tag_number: 3
417
+ }
418
+ proto_descriptors {
419
+ tag_number: 1
420
+ }
421
+ }
422
+ operator_type: OPERATOR_TYPE_EQUAL_TO
423
+ value {
424
+ int32_value: 4
425
+ }
426
+ }
427
+ }
428
+ }
429
+ candidates {
430
+ raw_string: "The headline must be detailed, using a maximum of 22 words, and comprehensively capture the key themes of the text."
431
+ conditions {
432
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
433
+ conditions {
434
+ proto_field {
435
+ proto_descriptors {
436
+ tag_number: 3
437
+ }
438
+ proto_descriptors {
439
+ tag_number: 3
440
+ }
441
+ }
442
+ operator_type: OPERATOR_TYPE_EQUAL_TO
443
+ value {
444
+ int32_value: 3
445
+ }
446
+ }
447
+ conditions {
448
+ proto_field {
449
+ proto_descriptors {
450
+ tag_number: 3
451
+ }
452
+ proto_descriptors {
453
+ tag_number: 1
454
+ }
455
+ }
456
+ operator_type: OPERATOR_TYPE_EQUAL_TO
457
+ value {
458
+ int32_value: 4
459
+ }
460
+ }
461
+ }
462
+ }
463
+ candidates {
464
+ raw_string: "The summary must fit within one short paragraph."
465
+ }
466
+ }
467
+ substitutions {
468
+ candidates {
469
+ raw_string: "The summary must be in valid Markdown syntax."
470
+ conditions {
471
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
472
+ conditions {
473
+ proto_field {
474
+ proto_descriptors {
475
+ tag_number: 3
476
+ }
477
+ proto_descriptors {
478
+ tag_number: 2
479
+ }
480
+ }
481
+ operator_type: OPERATOR_TYPE_EQUAL_TO
482
+ value {
483
+ int32_value: 2
484
+ }
485
+ }
486
+ }
487
+ }
488
+ candidates {
489
+ raw_string: "The summary must not contain any formatting or markup language."
490
+ }
491
+ }
492
+ substitutions {
493
+ candidates {
494
+ proto_field {
495
+ proto_descriptors {
496
+ tag_number: 2
497
+ }
498
+ }
499
+ conditions {
500
+ condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND
501
+ conditions {
502
+ proto_field {
503
+ proto_descriptors {
504
+ tag_number: 2
505
+ }
506
+ }
507
+ operator_type: OPERATOR_TYPE_NOT_EQUAL_TO
508
+ value {
509
+ string_value: ""
510
+ }
511
+ }
512
+ }
513
+ }
514
+ candidates {
515
+ raw_string: ""
516
+ }
517
+ }
518
+ substitutions {
519
+ candidates {
520
+ proto_field {
521
+ proto_descriptors {
522
+ tag_number: 1
523
+ }
524
+ }
525
+ }
526
+ }
527
+ substitutions {
528
+ candidates {
529
+ control_token: CONTROL_TOKEN_END
530
+ }
531
+ }
532
+ substitutions {
533
+ candidates {
534
+ control_token: CONTROL_TOKEN_USER
535
+ }
536
+ }
537
+ substitutions {
538
+ candidates {
539
+ control_token: CONTROL_TOKEN_END
540
+ }
541
+ }
542
+ substitutions {
543
+ candidates {
544
+ control_token: CONTROL_TOKEN_MODEL
545
+ }
546
+ }
547
+ }
548
+ }
549
+ output_config {
550
+ proto_type: "optimization_guide.proto.StringValue"
551
+ proto_field {
552
+ proto_descriptors {
553
+ tag_number: 1
554
+ }
555
+ }
556
+ }
557
+ sampling_params {
558
+ top_k: 3
559
+ temperature: 1
560
+ }
561
+ }
562
+ validation_config {
563
+ validation_prompts {
564
+ prompt: "Who is the first president of the US?<ctrl23>"
565
+ expected_output: "washington"
566
+ }
567
+ validation_prompts {
568
+ prompt: "What is the first element in the periodic table?<ctrl23>"
569
+ expected_output: "hydrogen"
570
+ }
571
+ }
51/on_device_model_execution_config.pb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:722d23bd2f893c535e43d872b2d439b3c17e1a157481ad2102a6598a314dcdc3
3
+ size 2341