Token Classification
Transformers
PyTorch
code
bert
Inference Endpoints

How do you add a linear layer to a pretrained model

#5
by cassanof - opened
BigCode org

We added a linear layer as a token classification head on top of the encoder model

I read this and I'm very curious on how you would go about doing this. Any insight appreciated, thanks!

BigCode org

We use the AutoModelForTokenClassification class from transformers which adds the classification head to the base model, you can find the finetuning code here

loubnabnl changed discussion status to closed

Sign up or log in to comment