# Custom, without any pretraining, training with PyTorch

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcustom-without-any-pretraining-training-with-pytorch%2F30752%3E%5C
**Category:** Beginners\
**Created:** [January 30, 2023, 1:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcustom-without-any-pretraining-training-with-pytorch%2F30752 "2023-01-30T13:45:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ofek](https://avatars.discourse-cdn.com/v4/letter/o/e0b2c6/32.png) [@Ofek](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FOfek)%5C
**Post date:** [January 30, 2023, 1:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcustom-without-any-pretraining-training-with-pytorch%2F30752%2F1 "2023-01-30T13:45:41Z")

</div>

Hey!  
The tokenizer options in HuggingFace are extremely useful and easy to work with.  
I’d like to build a custom pipeline that:

1. inputs custom data ,not something in Datasets (I know how to do this in HF).
2. tokenizes it with a HF tokenizer pipeline (this I know how to do, too).
3. uses the above to feed into a custom (no pretraining, not a specific architecture) PyTorch model,
4. optimizes with any viable PyTorch loss function.

So basically, I want to work within the HF framework for the text’s preprocessing and tokenizing, while still doing whatever I wish in PyTorch afterwards…

Is this feasible?

Thanks!
