Instructions to use phucleDio/2_task_v2_new2labels with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use phucleDio/2_task_v2_new2labels with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, PhoBERTExtended tokenizer = AutoTokenizer.from_pretrained("phucleDio/2_task_v2_new2labels") model = PhoBERTExtended.from_pretrained("phucleDio/2_task_v2_new2labels", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from phucleDio/2_task_v2_new2labels: direct link, hf CLI and curl.
- Browser
- Download file 885 Bytes
-
https://huggingface.co/phucleDio/2_task_v2_new2labels/resolve/main/config.json
- Command line
-
hf download hf://phucleDio/2_task_v2_new2labels/config.json
-
curl -L -o config.json https://huggingface.co/phucleDio/2_task_v2_new2labels/resolve/main/config.json
885 Bytes
| { | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "PhoBERTExtended" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "is_decoder": false, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 258, | |
| "model_type": "roberta", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "num_labels_task1": 2, | |
| "num_labels_task2": 10, | |
| "num_labels_task2_new": 2, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "tie_word_embeddings": true, | |
| "tokenizer_class": "PhobertTokenizer", | |
| "transformers_version": "5.13.1", | |
| "type_vocab_size": 1, | |
| "use_cache": false, | |
| "vocab_size": 64001 | |
| } | |