Instructions to use amztheory/code-python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use amztheory/code-python with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("tiiuae/falcon-7b") model = PeftModel.from_pretrained(base_model, "amztheory/code-python") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from amztheory/code-python: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/amztheory/code-python/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://amztheory/code-python/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/amztheory/code-python/resolve/main/special_tokens_map.json
427 Bytes
| { | |
| "additional_special_tokens": [ | |
| ">>TITLE<<", | |
| ">>ABSTRACT<<", | |
| ">>INTRODUCTION<<", | |
| ">>SUMMARY<<", | |
| ">>COMMENT<<", | |
| ">>ANSWER<<", | |
| ">>QUESTION<<", | |
| ">>DOMAIN<<", | |
| ">>PREFIX<<", | |
| ">>SUFFIX<<", | |
| ">>MIDDLE<<" | |
| ], | |
| "eos_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": "<|endoftext|>" | |
| } | |