Instructions to use adalib/megengine-cond-gen-CodeGPT-small-py-prefix-8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use adalib/megengine-cond-gen-CodeGPT-small-py-prefix-8 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/CodeGPT-small-py") model = PeftModel.from_pretrained(base_model, "adalib/megengine-cond-gen-CodeGPT-small-py-prefix-8") - Notebooks
- Google Colab
- Kaggle