Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions keras_nlp/models/falcon/falcon_backbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from keras_nlp.api_export import keras_nlp_export

from keras_nlp.backend import keras
from keras_nlp.layers.modeling.reversible_embedding import ReversibleEmbedding
from keras_nlp.models.backbone import Backbone
Expand All @@ -20,7 +20,7 @@
)


@keras_nlp_export("keras_nlp.models.FalconBackbone")
@keras.saving.register_keras_serializable(package="keras_nlp")
class FalconBackbone(Backbone):
"""The Falcon core architecure.

Expand Down
4 changes: 2 additions & 2 deletions keras_nlp/models/falcon/falcon_causal_lm_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import tensorflow as tf
from absl import logging

from keras_nlp.api_export import keras_nlp_export
from keras_nlp.backend import keras
from keras_nlp.backend import ops
from keras_nlp.models.falcon.falcon_preprocessor import FalconPreprocessor
from keras_nlp.utils.keras_utils import (
Expand All @@ -24,7 +24,7 @@
from keras_nlp.utils.keras_utils import pack_x_y_sample_weight


@keras_nlp_export("keras_nlp.models.FalconCausalLMPreprocessor")
@keras.saving.register_keras_serializable(package="keras_nlp")
class FalconCausalLMPreprocessor(FalconPreprocessor):
"""Falcon Causal LM preprocessor.

Expand Down
5 changes: 2 additions & 3 deletions keras_nlp/models/falcon/falcon_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.


from keras_nlp.api_export import keras_nlp_export
from keras_nlp.backend import keras
from keras_nlp.layers.preprocessing.start_end_packer import StartEndPacker
from keras_nlp.models.falcon.falcon_tokenizer import FalconTokenizer
from keras_nlp.models.preprocessor import Preprocessor
Expand All @@ -23,7 +22,7 @@
from keras_nlp.utils.keras_utils import pack_x_y_sample_weight


@keras_nlp_export("keras_nlp.models.FalconPreprocessor")
@keras.saving.register_keras_serializable(package="keras_nlp")
class FalconPreprocessor(Preprocessor):
"""Falcon preprocessing layer which tokenizes and packs inputs.

Expand Down
5 changes: 2 additions & 3 deletions keras_nlp/models/falcon/falcon_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.


from keras_nlp.api_export import keras_nlp_export
from keras_nlp.backend import keras
from keras_nlp.tokenizers.byte_pair_tokenizer import BytePairTokenizer


@keras_nlp_export("keras_nlp.models.FalconTokenizer")
@keras.saving.register_keras_serializable(package="keras_nlp")
class FalconTokenizer(BytePairTokenizer):
"""Falcon tokenizer based on BytePairTokenizer.

Expand Down