Run this once to load the model and tokenizer.
Run this once to load the model and tokenizer.
Type the prompt and run this block. You can play with the max_new_tokens and bottom_k.
Run this block if you want to save the last output as a text file.
# Save the raw generated text to a UTF-8 file
with open("output.txt", "w", encoding="utf-8") as f:
f.write(generated_text)