# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("microsoft/CodeGPT-small-py-adaptedGPT2")
model = AutoModelForCausalLM.from_pretrained("microsoft/CodeGPT-small-py-adaptedGPT2")Quick Links
No model card
- Downloads last month
- 2,156
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="microsoft/CodeGPT-small-py-adaptedGPT2")