xxxxxxxxxx
# Define a prompt
prompt = "Once upon a time in a land far away,"
# Tokenize the prompt
input_ids = tokenizer.encode(prompt, return_tensors="pt")
# Generate text using the model
output = model.generate(input_ids, max_length=100)
# Decode the generated text
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
print(generated_text)