Skip to content

Avoid hardcoded label token IDs in classification example#582

Open
Shaunkills wants to merge 1 commit intogoogle-deepmind:mainfrom
Shaunkills:fix-dynamic-label-token-ids
Open

Avoid hardcoded label token IDs in classification example#582
Shaunkills wants to merge 1 commit intogoogle-deepmind:mainfrom
Shaunkills:fix-dynamic-label-token-ids

Conversation

@Shaunkills
Copy link

My PR replaces hardcoded label token IDs in the classification example with
token IDs derived from the tokenizer, improving robustness across tokenizer
and model variants.

It also fixes minor spelling errors.

Fixes #496

@google-cla
Copy link

google-cla bot commented Feb 20, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Shaunkills Shaunkills force-pushed the fix-dynamic-label-token-ids branch from 21867b8 to a144b52 Compare February 20, 2026 15:29
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.

[Examples] Avoid hardcoded label token IDs in classification.py in examples

1 participant