what's the meaning of max_length?

#19
by huluwahaha - opened

here is a max_length
transformers.pipeline(
"text-generation",
model=_hf_model_dir,
torch_dtype=torch.float16,
device_map="auto",
)(_content,
do_sample=True,
top_k=5,
num_return_sequences=1,
eos_token_id=_hf_tokenizer.eos_token_id,
max_length=1000,
temperature=0.2,
top_p=0.95,
)

Sign up or log in to comment