# Deleting tokens from a Seq2Seq model

**URL:** <https://discuss.huggingface.co/t/deleting-tokens-from-a-seq2seq-model/70347>\
**Category:** 🤗Transformers\
**Created:** [January 24, 2024, 3:42am UTC](https://discuss.huggingface.co/t/deleting-tokens-from-a-seq2seq-model/70347 "2024-01-24T03:42:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smfsamir](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@smfsamir](https://discuss.huggingface.co/u/smfsamir)\
**Post date:** [January 24, 2024, 3:42am UTC](https://discuss.huggingface.co/t/deleting-tokens-from-a-seq2seq-model/70347/1 "2024-01-24T03:42:21Z")

</div>

I’m using `WhisperForConditionalGeneration` and I’d like to experiment with memory savings that result from deleting tokens from the decoder vocabulary. My domain is fairly specific and thus a large fraction (\>50%) of the Whisper tokens are not necessary, so I’d like to delete those from the decoder vocabulary embeddings. What is the most straightforward way to do that, if any?
