Instructions to use wanyu/IteraTeR-ROBERTA-Intention-Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wanyu/IteraTeR-ROBERTA-Intention-Classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="wanyu/IteraTeR-ROBERTA-Intention-Classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("wanyu/IteraTeR-ROBERTA-Intention-Classifier") model = AutoModelForSequenceClassification.from_pretrained("wanyu/IteraTeR-ROBERTA-Intention-Classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from wanyu/IteraTeR-ROBERTA-Intention-Classifier: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/wanyu/IteraTeR-ROBERTA-Intention-Classifier/resolve/6439a90f87959c1528897394479c9fa92426fe91/config.json
- Command line
-
hf download hf://wanyu/IteraTeR-ROBERTA-Intention-Classifier@6439a90f87959c1528897394479c9fa92426fe91/config.json
-
curl -L -o config.json https://huggingface.co/wanyu/IteraTeR-ROBERTA-Intention-Classifier/resolve/6439a90f87959c1528897394479c9fa92426fe91/config.json
1.08 kB
| { | |
| "_name_or_path": "intent_classifier_given_src_tgt/2021-11-02-roberta-large-2/checkpoint-2000", | |
| "architectures": [ | |
| "RobertaForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "eos_token_id": 2, | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 1024, | |
| "id2label": { | |
| "0": "clarity", | |
| "1": "fluency", | |
| "2": "coherence", | |
| "3": "style", | |
| "4": "meaning-changed" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "label2id": { | |
| "clarity": 0, | |
| "coherence": 2, | |
| "fluency": 1, | |
| "meaning-changed": 4, | |
| "style": 3 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "roberta", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.17.0", | |
| "type_vocab_size": 1, | |
| "use_cache": true, | |
| "vocab_size": 50265 | |
| } | |