Instructions to use Grey01/bart_billsum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use Grey01/bart_billsum with KerasHub:
import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://Grey01/bart_billsum") - Keras
How to use Grey01/bart_billsum with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://Grey01/bart_billsum") - Notebooks
- Google Colab
- Kaggle
File size: 1,252 Bytes
64c5541 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | {
"module": "keras_nlp.src.models.bart.bart_seq_2_seq_lm_preprocessor",
"class_name": "BartSeq2SeqLMPreprocessor",
"config": {
"name": "bart_seq2_seq_lm_preprocessor",
"trainable": true,
"dtype": {
"module": "keras",
"class_name": "DTypePolicy",
"config": {
"name": "mixed_float16"
},
"registered_name": null
},
"tokenizer": {
"module": "keras_nlp.src.models.bart.bart_tokenizer",
"class_name": "BartTokenizer",
"config": {
"name": "bart_tokenizer",
"trainable": true,
"dtype": {
"module": "keras",
"class_name": "DTypePolicy",
"config": {
"name": "int32"
},
"registered_name": null
},
"sequence_length": null,
"add_prefix_space": false
},
"registered_name": "keras_nlp>BartTokenizer"
},
"encoder_sequence_length": 512,
"decoder_sequence_length": 128
},
"registered_name": "keras_nlp>BartSeq2SeqLMPreprocessor"
} |