File tree Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License.
14- from keras_nlp . api_export import keras_nlp_export
14+
1515from keras_nlp .backend import keras
1616from keras_nlp .layers .modeling .reversible_embedding import ReversibleEmbedding
1717from keras_nlp .models .backbone import Backbone
2020)
2121
2222
23- @keras_nlp_export ( "keras_nlp.models.FalconBackbone " )
23+ @keras . saving . register_keras_serializable ( package = "keras_nlp" )
2424class FalconBackbone (Backbone ):
2525 """The Falcon core architecure.
2626
Original file line number Diff line number Diff line change 1515import tensorflow as tf
1616from absl import logging
1717
18- from keras_nlp .api_export import keras_nlp_export
18+ from keras_nlp .backend import keras
1919from keras_nlp .backend import ops
2020from keras_nlp .models .falcon .falcon_preprocessor import FalconPreprocessor
2121from keras_nlp .utils .keras_utils import (
2424from keras_nlp .utils .keras_utils import pack_x_y_sample_weight
2525
2626
27- @keras_nlp_export ( "keras_nlp.models.FalconCausalLMPreprocessor " )
27+ @keras . saving . register_keras_serializable ( package = "keras_nlp" )
2828class FalconCausalLMPreprocessor (FalconPreprocessor ):
2929 """Falcon Causal LM preprocessor.
3030
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15-
16- from keras_nlp .api_export import keras_nlp_export
15+ from keras_nlp .backend import keras
1716from keras_nlp .layers .preprocessing .start_end_packer import StartEndPacker
1817from keras_nlp .models .falcon .falcon_tokenizer import FalconTokenizer
1918from keras_nlp .models .preprocessor import Preprocessor
2322from keras_nlp .utils .keras_utils import pack_x_y_sample_weight
2423
2524
26- @keras_nlp_export ( "keras_nlp.models.FalconPreprocessor " )
25+ @keras . saving . register_keras_serializable ( package = "keras_nlp" )
2726class FalconPreprocessor (Preprocessor ):
2827 """Falcon preprocessing layer which tokenizes and packs inputs.
2928
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15-
16- from keras_nlp .api_export import keras_nlp_export
15+ from keras_nlp .backend import keras
1716from keras_nlp .tokenizers .byte_pair_tokenizer import BytePairTokenizer
1817
1918
20- @keras_nlp_export ( "keras_nlp.models.FalconTokenizer " )
19+ @keras . saving . register_keras_serializable ( package = "keras_nlp" )
2120class FalconTokenizer (BytePairTokenizer ):
2221 """Falcon tokenizer based on BytePairTokenizer.
2322
You can’t perform that action at this time.
0 commit comments