Instructions to use MHGanainy/gpt2-xl-lora-ecthr-random-imbalanced-uniform-cluster-8-id-0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use MHGanainy/gpt2-xl-lora-ecthr-random-imbalanced-uniform-cluster-8-id-0 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("openai-community/gpt2-xl") model = PeftModel.from_pretrained(base_model, "MHGanainy/gpt2-xl-lora-ecthr-random-imbalanced-uniform-cluster-8-id-0") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from MHGanainy/gpt2-xl-lora-ecthr-random-imbalanced-uniform-cluster-8-id-0: direct link, hf CLI and curl.
- Browser
- Download file 476 Bytes
-
https://huggingface.co/MHGanainy/gpt2-xl-lora-ecthr-random-imbalanced-uniform-cluster-8-id-0/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://MHGanainy/gpt2-xl-lora-ecthr-random-imbalanced-uniform-cluster-8-id-0/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/MHGanainy/gpt2-xl-lora-ecthr-random-imbalanced-uniform-cluster-8-id-0/resolve/main/tokenizer_config.json
476 Bytes
| { | |
| "add_prefix_space": false, | |
| "added_tokens_decoder": { | |
| "50256": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<|endoftext|>", | |
| "clean_up_tokenization_spaces": true, | |
| "eos_token": "<|endoftext|>", | |
| "model_max_length": 1024, | |
| "pad_token": "<|endoftext|>", | |
| "tokenizer_class": "GPT2Tokenizer", | |
| "unk_token": "<|endoftext|>" | |
| } | |