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

updated kaggle-Gemma3_(4B) notebook #18

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

Conversation

naimur-29
Copy link

@naimur-29 naimur-29 commented Mar 22, 2025

Set tokenize=False in tokenizer.apply_chat_template
It won't run otherwise since the tokenizing is happening twice. I faced this minor issue when running today.

def apply_chat_template(examples):
    texts = tokenizer.apply_chat_template(examples["conversations"], tokenize = False) # here
    return { "text" : texts }
pass
tokenizer = get_chat_template(
    tokenizer,
    tokenize = False, # and here (inference and two other following cells)
    chat_template = "gemma-3",
)

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.

1 participant