Commands Code Text Copy to Drive
Notebook

Gemini

Run this once to load the model and tokenizer.


Gemini

Gemini

Type the prompt and run this block. You can play with the max_new_tokens and bottom_k.


Gemini

Gemini

Run this block if you want to save the last output as a text file.


Gemini
# Save the raw generated text to a UTF-8 file
with open("output.txt""w", encoding="utf-8"as f:
    f.write(generated_text)


Variables Terminal