Instructions to use Tanneru/CodeLlama-7b-Python-hf-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Tanneru/CodeLlama-7b-Python-hf-ft with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("codellama/CodeLlama-7b-Python-hf") model = PeftModel.from_pretrained(base_model, "Tanneru/CodeLlama-7b-Python-hf-ft") - Notebooks
- Google Colab
- Kaggle
| { | |
| "▁<EOT>": 32003, | |
| "▁<MID>": 32001, | |
| "▁<PRE>": 32000, | |
| "▁<SUF>": 32002 | |
| } | |