Instructions to use hf-internal-testing/tiny-random-RwkvModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-RwkvModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hf-internal-testing/tiny-random-RwkvModel")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-RwkvModel") model = AutoModel.from_pretrained("hf-internal-testing/tiny-random-RwkvModel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from hf-internal-testing/tiny-random-RwkvModel: direct link, hf CLI and curl.
- Browser
- Download file 237 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-RwkvModel/resolve/981792459cc510ed80a2f2d339422f08725aa55a/tokenizer_config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-RwkvModel@981792459cc510ed80a2f2d339422f08725aa55a/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/hf-internal-testing/tiny-random-RwkvModel/resolve/981792459cc510ed80a2f2d339422f08725aa55a/tokenizer_config.json
237 Bytes
| { | |
| "add_prefix_space": false, | |
| "bos_token": "<|endoftext|>", | |
| "clean_up_tokenization_spaces": true, | |
| "eos_token": "<|endoftext|>", | |
| "model_max_length": 1024, | |
| "tokenizer_class": "GPTNeoXTokenizer", | |
| "unk_token": "<|endoftext|>" | |
| } | |