Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batch['text'] adds [self.mapping_task[task_name]] twice #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lighten001
Copy link

function log_images will call get_input (which is the second time be called) on train batch end

z, c = self.get_input(batch, self.first_stage_key, bs=N)

so batch['text'] will add [self.mapping_task[task_name]] twice

batch['txt'] = batch['txt'] + [self.mapping_task[task_name]]

the c_task should be c_all[BS:BS+1,:1,:] to avoid the two same task prompt

Copy link

Thanks for the contribution! Before we can merge this, we need @lighten001 to sign the Salesforce Inc. Contributor License Agreement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant