Instructions to use AaronCIH/RAR_modelzoo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AaronCIH/RAR_modelzoo with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AaronCIH/RAR_modelzoo", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download RAR/checkpoints/tokenizer_config.json from AaronCIH/RAR_modelzoo: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/AaronCIH/RAR_modelzoo/resolve/main/RAR/checkpoints/tokenizer_config.json
- Command line
-
hf download hf://AaronCIH/RAR_modelzoo/RAR/checkpoints/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/AaronCIH/RAR_modelzoo/resolve/main/RAR/checkpoints/tokenizer_config.json
1.01 kB
| { | |
| "add_bos_token": true, | |
| "add_eos_token": false, | |
| "add_prefix_space": true, | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "</s>", | |
| "extra_special_tokens": {}, | |
| "legacy": false, | |
| "model_max_length": 4096, | |
| "pad_token": "</s>", | |
| "padding_side": "right", | |
| "sp_model_kwargs": {}, | |
| "spaces_between_special_tokens": false, | |
| "tokenizer_class": "LlamaTokenizer", | |
| "unk_token": "<unk>", | |
| "use_default_system_prompt": false, | |
| "use_fast": false | |
| } | |