Instructions to use mrm8488/gpt2-imdb-neutral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mrm8488/gpt2-imdb-neutral with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("mrm8488/gpt2-imdb-neutral") model = AutoModel.from_pretrained("mrm8488/gpt2-imdb-neutral", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from mrm8488/gpt2-imdb-neutral: direct link, hf CLI and curl.
- Browser
- Download file 682 Bytes
-
https://huggingface.co/mrm8488/gpt2-imdb-neutral/resolve/main/config.json
- Command line
-
hf download hf://mrm8488/gpt2-imdb-neutral/config.json
-
curl -L -o config.json https://huggingface.co/mrm8488/gpt2-imdb-neutral/resolve/main/config.json
682 Bytes
| { | |
| "_num_labels": 1, | |
| "activation_function": "gelu_new", | |
| "architectures": [ | |
| "GPT2HeadWithValueModel" | |
| ], | |
| "attn_pdrop": 0.1, | |
| "bos_token_id": 50256, | |
| "embd_pdrop": 0.1, | |
| "eos_token_id": 50256, | |
| "id2label": { | |
| "0": "LABEL_0" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "LABEL_0": 0 | |
| }, | |
| "layer_norm_epsilon": 1e-05, | |
| "model_type": "gpt2", | |
| "n_ctx": 1024, | |
| "n_embd": 768, | |
| "n_head": 12, | |
| "n_layer": 12, | |
| "n_positions": 1024, | |
| "output_past": true, | |
| "resid_pdrop": 0.1, | |
| "summary_activation": null, | |
| "summary_first_dropout": 0.1, | |
| "summary_proj_to_labels": true, | |
| "summary_type": "cls_index", | |
| "summary_use_proj": true, | |
| "vocab_size": 50257 | |
| } | |