Instructions to use reciprocate/gpt-j_rm_format-oa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use reciprocate/gpt-j_rm_format-oa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="reciprocate/gpt-j_rm_format-oa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("reciprocate/gpt-j_rm_format-oa") model = AutoModelForSequenceClassification.from_pretrained("reciprocate/gpt-j_rm_format-oa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from reciprocate/gpt-j_rm_format-oa: direct link, hf CLI and curl.
- Browser
- Download file 791 Bytes
-
https://huggingface.co/reciprocate/gpt-j_rm_format-oa/resolve/main/config.json
- Command line
-
hf download hf://reciprocate/gpt-j_rm_format-oa/config.json
-
curl -L -o config.json https://huggingface.co/reciprocate/gpt-j_rm_format-oa/resolve/main/config.json
791 Bytes
| { | |
| "_name_or_path": "tclx/checkpoints/reciprocate_dahoas-gptj-rm-static_a223dc2d_reciprocate_oasst_hh_shp_hellaswag_webgpt_rm_dataset", | |
| "activation_function": "gelu_new", | |
| "architectures": [ | |
| "GPTJForSequenceClassification" | |
| ], | |
| "attn_pdrop": 0.0, | |
| "bos_token_id": 50256, | |
| "embd_pdrop": 0.0, | |
| "eos_token_id": 50256, | |
| "id2label": { | |
| "0": "LABEL_0" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "LABEL_0": 0 | |
| }, | |
| "layer_norm_epsilon": 1e-05, | |
| "model_type": "gptj", | |
| "n_embd": 4096, | |
| "n_head": 16, | |
| "n_inner": null, | |
| "n_layer": 28, | |
| "n_positions": 2048, | |
| "pad_token_id": 50263, | |
| "resid_pdrop": 0.0, | |
| "rotary_dim": 64, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.28.1", | |
| "use_cache": true, | |
| "vocab_size": 50264 | |
| } | |