Instructions to use VictorDCh/granite-8b-code-instruct-spider with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use VictorDCh/granite-8b-code-instruct-spider with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("ibm-granite/granite-8b-code-instruct") model = PeftModel.from_pretrained(base_model, "VictorDCh/granite-8b-code-instruct-spider") - Notebooks
- Google Colab
- Kaggle
| { | |
| "additional_special_tokens": [ | |
| { | |
| "content": "<|im_start|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| ], | |
| "bos_token": "<|im_start|>", | |
| "eos_token": "<|im_end|>", | |
| "pad_token": "<|im_end|>", | |
| "unk_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |