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

fix link error #39

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

fix link error #39

wants to merge 1 commit into from

Conversation

lunaczp
Copy link

@lunaczp lunaczp commented May 13, 2024

mising https:// in url, resulting a 404 error

@jackyangjie
Copy link

def tokenization(examples):
sources = []
targets = []
for instruction, input_text, output in zip(examples['instruction'],examples['input'],examples['output']):
if input_text is not None and input_text !="":
instruction = instruction+'\n'+input_text
source = system_format.format(content=DEFAULT_SYSTEM_PROMPT) + user_format.format(content=instruction)
target = output

        sources.append(source)
        targets.append(target)

这里 output需要 assistant_format.format(content=output)

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

Successfully merging this pull request may close these issues.

None yet

2 participants