Skip to content

Commit 0faac8e

Browse files
committed
Remove falcon from the release (#1554)
Still missing the generative class and more presets.
1 parent b7fa639 commit 0faac8e

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

keras_nlp/models/falcon/falcon_backbone.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
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+
1515
from keras_nlp.backend import keras
1616
from keras_nlp.layers.modeling.reversible_embedding import ReversibleEmbedding
1717
from keras_nlp.models.backbone import Backbone
@@ -20,7 +20,7 @@
2020
)
2121

2222

23-
@keras_nlp_export("keras_nlp.models.FalconBackbone")
23+
@keras.saving.register_keras_serializable(package="keras_nlp")
2424
class FalconBackbone(Backbone):
2525
"""The Falcon core architecure.
2626

keras_nlp/models/falcon/falcon_causal_lm_preprocessor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import tensorflow as tf
1616
from absl import logging
1717

18-
from keras_nlp.api_export import keras_nlp_export
18+
from keras_nlp.backend import keras
1919
from keras_nlp.backend import ops
2020
from keras_nlp.models.falcon.falcon_preprocessor import FalconPreprocessor
2121
from keras_nlp.utils.keras_utils import (
@@ -24,7 +24,7 @@
2424
from 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")
2828
class FalconCausalLMPreprocessor(FalconPreprocessor):
2929
"""Falcon Causal LM preprocessor.
3030

keras_nlp/models/falcon/falcon_preprocessor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
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
1716
from keras_nlp.layers.preprocessing.start_end_packer import StartEndPacker
1817
from keras_nlp.models.falcon.falcon_tokenizer import FalconTokenizer
1918
from keras_nlp.models.preprocessor import Preprocessor
@@ -23,7 +22,7 @@
2322
from 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")
2726
class FalconPreprocessor(Preprocessor):
2827
"""Falcon preprocessing layer which tokenizes and packs inputs.
2928

keras_nlp/models/falcon/falcon_tokenizer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
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
1716
from 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")
2120
class FalconTokenizer(BytePairTokenizer):
2221
"""Falcon tokenizer based on BytePairTokenizer.
2322

0 commit comments

Comments
 (0)