Skip to content

Conversation

@ruiqi-zhong
Copy link
Contributor

@ruiqi-zhong ruiqi-zhong commented Nov 11, 2025

Adding options to train on user-specified messages.

Ran

python -m tinker_cookbook.recipes.chat_sl.train
    model_name=Qwen/Qwen3-8B-Base \
    dataset=no_robots \
    learning_rate=5e-4 \
    batch_size=64 \
    lora_rank=64 \
    eval_every=20 \
    save_every=20 \
    wandb_project=cookbook_sl

and I can reproduce the performance.

@ruiqi-zhong ruiqi-zhong requested a review from joschu November 11, 2025 04:24
Copy link
Collaborator

@joschu joschu left a comment

Choose a reason for hiding this comment

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

This looks good. In case you haven't yet, could you do viz_sft_dataset with a couple different renderers and train_on_what settings and look at the outputted colorized text and make sure it looks right?

@joschu
Copy link
Collaborator

joschu commented Nov 13, 2025

In particular, try both the role_colon renderer (nontrivial ac_tail) and another special token renderer.

@ruiqi-zhong
Copy link
Contributor Author

viz_sft_dataset

Thanks for checking! yeah it works.

image

@ruiqi-zhong ruiqi-zhong merged commit 6c9f7a4 into main Nov 14, 2025
2 checks passed
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.

3 participants