You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And in models/*.py, the actually default value - eos token of the model, is replaced by "\n\n", which causes issue especially in caption tasks when the output may contain "\n\n"
# qwen2_vl.py for example# Set default values for until and max_new_tokensuntil= [self.tokenizer.decode(self.eot_token_id)]
# Update values from gen_kwargs if presentif"until"ingen_kwargs:
until=gen_kwargs.pop("until")
ifisinstance(until, str):
until= [until]
elifnotisinstance(until, list):
raiseValueError(f"Expected `gen_kwargs['until']` to be of type Union[str,list] but got {type(until)}")
The text was updated successfully, but these errors were encountered:
nanocm
changed the title
gen_kwargs['default'] defaults to "\n\n"
gen_kwargs['until'] defaults to "\n\n"
Feb 19, 2025
In api/task.py, "until" is set to the default value of fewshot_delimiter--"\n\n"
And in models/*.py, the actually default value - eos token of the model, is replaced by "\n\n", which causes issue especially in caption tasks when the output may contain "\n\n"
The text was updated successfully, but these errors were encountered: