Open code2graph opened 11 months ago
Hi, the warning is there to suggest you to use max_new_tokens
, instead the default max_length
. max_length
represents the length (in terms of tokens) of the prompt (the input sequence) + the number of tokens generated during the inference. max_new_tokens
just represents the number of tokens generated during inference. These 2 arguments are very similar to each other, and they are not both needed since you can get one from the other. By default, max_length
is used and it is set to 20 but this argument will be deprecated. max_new_tokens' overrides
max_length` when it is set.
I installed all the dependencies by following the instructions from the repo.
Following that, I am running the following code:
But I am getting deprecated warnings: