Instructions to use tminhtri1910/bartpho_summarization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tminhtri1910/bartpho_summarization with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("tminhtri1910/bartpho_summarization") model = AutoModelForSeq2SeqLM.from_pretrained("tminhtri1910/bartpho_summarization", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from tminhtri1910/bartpho_summarization: direct link, hf CLI and curl.
- Browser
- Download file 952 Bytes
-
https://huggingface.co/tminhtri1910/bartpho_summarization/resolve/main/config.json
- Command line
-
hf download hf://tminhtri1910/bartpho_summarization/config.json
-
curl -L -o config.json https://huggingface.co/tminhtri1910/bartpho_summarization/resolve/main/config.json
952 Bytes
| { | |
| "activation_dropout": 0.0, | |
| "activation_function": "gelu", | |
| "architectures": [ | |
| "MBartForConditionalGeneration" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 0, | |
| "classifier_dropout": 0.0, | |
| "d_model": 1024, | |
| "decoder_attention_heads": 16, | |
| "decoder_ffn_dim": 4096, | |
| "decoder_layerdrop": 0.0, | |
| "decoder_layers": 12, | |
| "decoder_start_token_id": 2, | |
| "dropout": 0.1, | |
| "encoder_attention_heads": 16, | |
| "encoder_ffn_dim": 4096, | |
| "encoder_layerdrop": 0.0, | |
| "encoder_layers": 12, | |
| "eos_token_id": 2, | |
| "forced_eos_token_id": 2, | |
| "gradient_checkpointing": false, | |
| "init_std": 0.02, | |
| "is_encoder_decoder": true, | |
| "max_position_embeddings": 1024, | |
| "model_type": "mbart", | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 1, | |
| "scale_embedding": false, | |
| "tokenizer_class": "PhobertTokenizer", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.53.1", | |
| "use_cache": true, | |
| "vocab_size": 64001 | |
| } | |