Skip to content

Commit 280edda

Browse files
authored
Remove work in progress API for 0.4.1 release (#765)
1 parent d658112 commit 280edda

File tree

3 files changed

+4
-19
lines changed

3 files changed

+4
-19
lines changed

keras_nlp/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from keras_nlp import layers
2424
from keras_nlp import metrics
2525
from keras_nlp import models
26-
from keras_nlp import samplers
2726
from keras_nlp import tokenizers
2827
from keras_nlp import utils
2928

keras_nlp/models/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
)
2121
from keras_nlp.models.albert.albert_preprocessor import AlbertPreprocessor
2222
from keras_nlp.models.albert.albert_tokenizer import AlbertTokenizer
23-
from keras_nlp.models.bart.bart_backbone import BartBackbone
24-
from keras_nlp.models.bart.bart_tokenizer import BartTokenizer
2523
from keras_nlp.models.bert.bert_backbone import BertBackbone
2624
from keras_nlp.models.bert.bert_classifier import BertClassifier
2725
from keras_nlp.models.bert.bert_preprocessor import BertPreprocessor
@@ -48,18 +46,8 @@
4846
from keras_nlp.models.f_net.f_net_classifier import FNetClassifier
4947
from keras_nlp.models.f_net.f_net_preprocessor import FNetPreprocessor
5048
from keras_nlp.models.f_net.f_net_tokenizer import FNetTokenizer
51-
from keras_nlp.models.gpt2.gpt2_backbone import GPT2Backbone
52-
from keras_nlp.models.gpt2.gpt2_causal_lm import GPT2CausalLM
53-
from keras_nlp.models.gpt2.gpt2_causal_lm_preprocessor import (
54-
GPT2CausalLMPreprocessor,
55-
)
56-
from keras_nlp.models.gpt2.gpt2_preprocessor import GPT2Preprocessor
57-
from keras_nlp.models.gpt2.gpt2_tokenizer import GPT2Tokenizer
58-
from keras_nlp.models.opt.opt_backbone import OPTBackbone
59-
from keras_nlp.models.opt.opt_tokenizer import OPTTokenizer
6049
from keras_nlp.models.roberta.roberta_backbone import RobertaBackbone
6150
from keras_nlp.models.roberta.roberta_classifier import RobertaClassifier
62-
from keras_nlp.models.roberta.roberta_masked_lm import RobertaMaskedLM
6351
from keras_nlp.models.roberta.roberta_masked_lm_preprocessor import (
6452
RobertaMaskedLMPreprocessor,
6553
)

keras_nlp/tests/doc_tests/docstring_test.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ def test_docstrings():
5252
runner = unittest.TextTestRunner()
5353
suite = unittest.TestSuite()
5454
for module in keras_nlp_modules:
55-
# Temporarily stop testing gpt2 & deberta docstrings until we are
56-
# exporting the symbols.
57-
if "gpt2" in module.__name__ or "deberta_v3" in module.__name__:
55+
# Stop testing some docstrings until we are exporting the symbols.
56+
if [name in module.__name__ for name in ["bart", "gpt2", "opt"]]:
5857
continue
5958
suite.addTest(
6059
doctest.DocTestSuite(
@@ -98,9 +97,8 @@ def test_fenced_docstrings():
9897
runner = unittest.TextTestRunner()
9998
suite = unittest.TestSuite()
10099
for module in keras_nlp_modules:
101-
# Temporarily stop testing gpt2 & deberta docstrings until we are
102-
# exporting the symbols.
103-
if "gpt2" in module.__name__ or "deberta_v3" in module.__name__:
100+
# Stop testing some docstrings until we are exporting the symbols.
101+
if [name in module.__name__ for name in ["bart", "gpt2", "opt"]]:
104102
continue
105103
# Do not test certain modules.
106104
if module.__name__ in [

0 commit comments

Comments
 (0)