Instructions to use AnonymousNLP/pretrained-model-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AnonymousNLP/pretrained-model-1 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("AnonymousNLP/pretrained-model-1") model = AutoModel.from_pretrained("AnonymousNLP/pretrained-model-1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from AnonymousNLP/pretrained-model-1: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/AnonymousNLP/pretrained-model-1/resolve/main/config.json
- Command line
-
hf download hf://AnonymousNLP/pretrained-model-1/config.json
-
curl -L -o config.json https://huggingface.co/AnonymousNLP/pretrained-model-1/resolve/main/config.json
637 Bytes
| { | |
| "activation_function": "gelu_new", | |
| "architectures": [ | |
| "GPT2DoubleHeadsModel" | |
| ], | |
| "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, | |
| "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": 50262 | |
| } | |