

torch.manual_seed(3) # doctest: +IGNORE_RESULT
prompt = """Permaculture is a design process mimicking the diversity, functionality and resilience of natural ecosystems. The principles and practices are drawn from traditional ecological knowledge of indigenous cultures combined with modern scientific understanding and technological innovations. Permaculture design provides a framework helping individuals and communities develop innovative, creative and effective strategies for meeting basic needs while preparing for and mitigating the projected impacts of climate change.
 Write a summary of the above text.
 Summary:
 """
sequences = pipe(
     prompt,
     max_new_tokens=30,
     do_sample=True,
     top_k=10,
     return_full_text = False,
 )
for seq in sequences:
     print(f"{seq['generated_text']}")
Permaculture is an ecological design mimicking natural ecosystems to meet basic needs and prepare for climate change. It is based on traditional knowledge and scientific understanding.