Instructions to use hf-internal-testing/tiny-random-GPTNeoXModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-GPTNeoXModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hf-internal-testing/tiny-random-GPTNeoXModel")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-GPTNeoXModel") model = AutoModel.from_pretrained("hf-internal-testing/tiny-random-GPTNeoXModel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 422 Bytes
33114ba | 1 2 3 4 5 6 7 8 9 10 11 | {
"add_prefix_space": false,
"bos_token": "<|endoftext|>",
"eos_token": "<|endoftext|>",
"model_max_length": 512,
"name_or_path": "EleutherAI/gpt-neox-20b",
"special_tokens_map_file": "/home/huggingface/.cache/huggingface/hub/models--EleutherAI--gpt-neox-20b/snapshots/3523781c8df75f7741687a4284f6f70e1afa12f4/special_tokens_map.json",
"tokenizer_class": "GPTNeoXTokenizer",
"unk_token": "<|endoftext|>"
}
|