10
10
" \n " ,
11
11
" **Author:** [Abheesht Sharma](https://github.com/abheesht17/)<br>\n " ,
12
12
" **Date created:** 2023/07/08<br>\n " ,
13
- " **Last modified:** 2023/07/08 <br>\n " ,
13
+ " **Last modified:** 2024/03/20 <br>\n " ,
14
14
" **Description:** Use KerasNLP to fine-tune BART on the abstractive summarization task."
15
15
]
16
16
},
56
56
},
57
57
{
58
58
"cell_type" : " code" ,
59
- "execution_count" : 0 ,
59
+ "execution_count" : null ,
60
60
"metadata" : {
61
61
"colab_type" : " code"
62
62
},
71
71
"colab_type" : " text"
72
72
},
73
73
"source" : [
74
- " This examples uses [Keras Core ](https://keras.io/keras_core /) to work in any of\n " ,
75
- " `\" tensorflow\" `, `\" jax\" ` or `\" torch\" `. Support for Keras Core is baked into\n " ,
74
+ " This examples uses [Keras 3 ](https://keras.io/keras_3 /) to work in any of\n " ,
75
+ " `\" tensorflow\" `, `\" jax\" ` or `\" torch\" `. Support for Keras 3 is baked into\n " ,
76
76
" KerasNLP, simply change the `\" KERAS_BACKEND\" ` environment variable to select\n " ,
77
77
" the backend of your choice. We select the JAX backend below."
78
78
]
79
79
},
80
80
{
81
81
"cell_type" : " code" ,
82
- "execution_count" : 0 ,
82
+ "execution_count" : null ,
83
83
"metadata" : {
84
84
"colab_type" : " code"
85
85
},
101
101
},
102
102
{
103
103
"cell_type" : " code" ,
104
- "execution_count" : 0 ,
104
+ "execution_count" : null ,
105
105
"metadata" : {
106
106
"colab_type" : " code"
107
107
},
111
111
" import time\n " ,
112
112
" \n " ,
113
113
" import keras_nlp\n " ,
114
+ " import keras\n " ,
114
115
" import tensorflow as tf\n " ,
115
- " import tensorflow_datasets as tfds\n " ,
116
- " \n " ,
117
- " import keras_core as keras"
116
+ " import tensorflow_datasets as tfds"
118
117
]
119
118
},
120
119
{
128
127
},
129
128
{
130
129
"cell_type" : " code" ,
131
- "execution_count" : 0 ,
130
+ "execution_count" : null ,
132
131
"metadata" : {
133
132
"colab_type" : " code"
134
133
},
156
155
},
157
156
{
158
157
"cell_type" : " code" ,
159
- "execution_count" : 0 ,
158
+ "execution_count" : null ,
160
159
"metadata" : {
161
160
"colab_type" : " code"
162
161
},
187
186
},
188
187
{
189
188
"cell_type" : " code" ,
190
- "execution_count" : 0 ,
189
+ "execution_count" : null ,
191
190
"metadata" : {
192
191
"colab_type" : " code"
193
192
},
215
214
},
216
215
{
217
216
"cell_type" : " code" ,
218
- "execution_count" : 0 ,
217
+ "execution_count" : null ,
219
218
"metadata" : {
220
219
"colab_type" : " code"
221
220
},
255
254
},
256
255
{
257
256
"cell_type" : " code" ,
258
- "execution_count" : 0 ,
257
+ "execution_count" : null ,
259
258
"metadata" : {
260
259
"colab_type" : " code"
261
260
},
285
284
},
286
285
{
287
286
"cell_type" : " code" ,
288
- "execution_count" : 0 ,
287
+ "execution_count" : null ,
289
288
"metadata" : {
290
289
"colab_type" : " code"
291
290
},
322
321
},
323
322
{
324
323
"cell_type" : " code" ,
325
- "execution_count" : 0 ,
324
+ "execution_count" : null ,
326
325
"metadata" : {
327
326
"colab_type" : " code"
328
327
},
351
350
},
352
351
{
353
352
"cell_type" : " code" ,
354
- "execution_count" : 0 ,
353
+ "execution_count" : null ,
355
354
"metadata" : {
356
355
"colab_type" : " code"
357
356
},
399
398
},
400
399
{
401
400
"cell_type" : " code" ,
402
- "execution_count" : 0 ,
401
+ "execution_count" : null ,
403
402
"metadata" : {
404
403
"colab_type" : " code"
405
404
},
454
453
},
455
454
"nbformat" : 4 ,
456
455
"nbformat_minor" : 0
457
- }
456
+ }
0 commit comments