# No PreTrainedTokenizerFast for Deberta-V3, no doc\_stride

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-pretrainedtokenizerfast-for-deberta-v3-no-doc-stride%2F20345%3E%5C
**Category:** 🤗Tokenizers\
**Created:** [July 13, 2022, 4:44pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-pretrainedtokenizerfast-for-deberta-v3-no-doc-stride%2F20345 "2022-07-13T16:44:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![numomcmc](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/numomcmc/32/4519_2.png) [@numomcmc](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnumomcmc)%5C
**Post date:** [July 13, 2022, 4:44pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-pretrainedtokenizerfast-for-deberta-v3-no-doc-stride%2F20345%2F1 "2022-07-13T16:44:00Z")

</div>

Hi All

I would like to fine-tune a deberta-v3 pytorch model for Squad-v2 and then other downstream Q&A tasks.

The problem is that the doc\_stride option in my arg is causing the following error:

NotImplementedError: return\_offset\_mapping is not available when using Python tokenizers.To use this feature, change your tokenizer to one deriving from transformers.PreTrainedTokenizerFast.More information on available tokenizers at [https://github.com/huggingface/transformers/pull/2674](https://github.com/huggingface/transformers/pull/2674)

because there is no PreTrainedTokenizerFast for deberta-v3 yet. So…

Can I use deberta-v2 PreTrainedTokenizerFast instead? I would like to think that just because v3 switched to ELECTRA, that change may not be affected by the tokenizers, so maybe I can get away with the v2 tokenizer? Is this just wishful thinking?

Also, just so happens that v3 only has “base”, “large” and “xsmall”, while v2 only has all the other sizes… I would suppose that because of the vocab size difference, token indices and embeddings will be different across different model sizes. That just sounds like a recipe for disaster if I mix and match them…

Any suggestions on how to proceed is much appreciated!

SteX
