|
Each design principle serves as a tool that allows us to integrate all " |
|
"the separate parts of a design, referred to as elements, into a functional, synergistic, " |
|
"whole system, where the elements harmoniously interact and work together in the most " |
|
"efficient way possible." |
|
) |
|
tokenizer = AutoTokenizer.from_pretrained(checkpoint) |
|
inputs = tokenizer(prompt, return_tensors="pt") |
|
model = AutoModelForSeq2SeqLM.from_pretrained(checkpoint) |
|
outputs = model.generate(**inputs, num_beams=5, num_beam_groups=5, max_new_tokens=30, diversity_penalty=1.0) |
|
tokenizer.decode(outputs[0], skip_special_tokens=True) |
|
'The Design Principles are a set of universal design principles that can be applied to any location, climate and |
|
culture, and they allow us to design the' |
|
|
|
This guide illustrates the main parameters that enable various decoding strategies. |