Text Classification
Transformers
PyTorch
TensorBoard
opt
Generated from Trainer
Eval Results (legacy)
Instructions to use amosc00/NLP_sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use amosc00/NLP_sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="amosc00/NLP_sentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("amosc00/NLP_sentiment") model = AutoModelForSequenceClassification.from_pretrained("amosc00/NLP_sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from amosc00/NLP_sentiment: direct link, hf CLI and curl.
- Browser
- Download file 894 Bytes
-
https://huggingface.co/amosc00/NLP_sentiment/resolve/main/config.json
- Command line
-
hf download hf://amosc00/NLP_sentiment/config.json
-
curl -L -o config.json https://huggingface.co/amosc00/NLP_sentiment/resolve/main/config.json
894 Bytes
| { | |
| "_name_or_path": "Tianyi98/opt-350m-finetuned-cola", | |
| "_remove_final_layer_norm": false, | |
| "activation_dropout": 0.0, | |
| "activation_function": "relu", | |
| "architectures": [ | |
| "OPTForSequenceClassification" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 2, | |
| "do_layer_norm_before": false, | |
| "dropout": 0.1, | |
| "enable_bias": true, | |
| "eos_token_id": 2, | |
| "ffn_dim": 4096, | |
| "hidden_size": 1024, | |
| "id2label": { | |
| "0": "Negative", | |
| "1": "Positive" | |
| }, | |
| "init_std": 0.02, | |
| "layer_norm_elementwise_affine": true, | |
| "layerdrop": 0.0, | |
| "max_position_embeddings": 2048, | |
| "model_type": "opt", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "pad_token_id": 1, | |
| "prefix": "</s>", | |
| "problem_type": "single_label_classification", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.26.0.dev0", | |
| "use_cache": true, | |
| "vocab_size": 50272, | |
| "word_embed_proj_dim": 512 | |
| } | |