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

[Refactor] refactor prompt viewer & output reference #327

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

Conversation

Leymore
Copy link
Contributor

@Leymore Leymore commented Aug 29, 2023

No description provided.

@@ -45,6 +44,24 @@ def parse_dataset_cfg(dataset_cfg: ConfigDict) -> Dict[str, ConfigDict]:
return dataset2cfg


def get_prompt(ice_idx, prompt_func, max_seq_len, model):
prompt = prompt_func(ice_idx)
num_token = model.get_token_len_from_template(prompt)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't work when no model is provided

Copy link
Contributor

@gaotongxiao gaotongxiao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buggy when no model is presented

@Leymore Leymore marked this pull request as draft January 8, 2024 08:41
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.

2 participants