# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("katuni4ka/tiny-random-codegen2", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("katuni4ka/tiny-random-codegen2", trust_remote_code=True)Quick Links
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="katuni4ka/tiny-random-codegen2", trust_remote_code=True)