Instructions to use saskarkhadka/transformer_summarization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use saskarkhadka/transformer_summarization with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://saskarkhadka/transformer_summarization") - Notebooks
- Google Colab
- Kaggle
update Transformer model with gelu activation and shared encoder embedding, decoder embedding, and projection weights
1c054ee Download tokenizer_config.json from saskarkhadka/transformer_summarization: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/saskarkhadka/transformer_summarization/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://saskarkhadka/transformer_summarization/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/saskarkhadka/transformer_summarization/resolve/main/tokenizer_config.json
1.04 kB
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": true, | |
| "eos_token": "</s>", | |
| "extra_special_tokens": {}, | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": "<pad>", | |
| "special_tokens": [ | |
| "<pad>", | |
| "<s>", | |
| "</s>", | |
| "<unk>" | |
| ], | |
| "tokenizer_class": "PreTrainedTokenizer", | |
| "unk_token": "<unk>" | |
| } | |