Question Answering
Transformers
Safetensors
English
gpt2
text-generation
custom_code
text-generation-inference
Instructions to use AdnanRiaz107/SantaCoder-MBPP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdnanRiaz107/SantaCoder-MBPP with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="AdnanRiaz107/SantaCoder-MBPP", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AdnanRiaz107/SantaCoder-MBPP", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("AdnanRiaz107/SantaCoder-MBPP", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from AdnanRiaz107/SantaCoder-MBPP: direct link, hf CLI and curl.
- Browser
- Download file 1.4 kB
-
https://huggingface.co/AdnanRiaz107/SantaCoder-MBPP/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://AdnanRiaz107/SantaCoder-MBPP/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/AdnanRiaz107/SantaCoder-MBPP/resolve/main/tokenizer_config.json
1.4 kB
| { | |
| "add_eos_token": true, | |
| "add_prefix_space": false, | |
| "added_tokens_decoder": { | |
| "49152": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "49153": { | |
| "content": "<fim-prefix>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "49154": { | |
| "content": "<fim-middle>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "49155": { | |
| "content": "<fim-suffix>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "49156": { | |
| "content": "<fim-pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [ | |
| "<|endoftext|>", | |
| "<fim-prefix>", | |
| "<fim-middle>", | |
| "<fim-suffix>", | |
| "<fim-pad>" | |
| ], | |
| "bos_token": "<|endoftext|>", | |
| "clean_up_tokenization_spaces": true, | |
| "eos_token": "<|endoftext|>", | |
| "errors": "replace", | |
| "model_max_length": 1024, | |
| "pad_token": "<|endoftext|>", | |
| "padding_side": "left", | |
| "tokenizer_class": "GPT2Tokenizer", | |
| "unk_token": "<|endoftext|>" | |
| } | |