# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("SIC98/GPT2-python-code-generator")
model = AutoModelForCausalLM.from_pretrained("SIC98/GPT2-python-code-generator")Quick Links
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
- Downloads last month
- 15
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SIC98/GPT2-python-code-generator")