# Any documented examples of using DeepSpeed without trainer?

**URL:** <https://discuss.huggingface.co/t/any-documented-examples-of-using-deepspeed-without-trainer/30416>\
**Category:** Beginners\
**Created:** [January 25, 2023, 7:50pm UTC](https://discuss.huggingface.co/t/any-documented-examples-of-using-deepspeed-without-trainer/30416 "2023-01-25T19:50:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iwatog](https://avatars.discourse-cdn.com/v4/letter/i/c2a13f/32.png) [@iwatog](https://discuss.huggingface.co/u/iwatog)\
**Post date:** [January 25, 2023, 7:50pm UTC](https://discuss.huggingface.co/t/any-documented-examples-of-using-deepspeed-without-trainer/30416/1 "2023-01-25T19:50:49Z")

</div>

I would like to be able to use DeepSpeed with NLP Transformers but I don’t want to use Trainer. Are there any examples of this available?

---

<div class="post-metadata">

**Author:** ![muellerzr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/muellerzr/32/21583_2.png) [@muellerzr](https://discuss.huggingface.co/u/muellerzr)\
**Post date:** [January 25, 2023, 7:52pm UTC](https://discuss.huggingface.co/t/any-documented-examples-of-using-deepspeed-without-trainer/30416/2 "2023-01-25T19:52:06Z")

</div>

> [@iwatog](#):
>
> Are there any examples of this available?

You can try with Accelerate instead! [DeepSpeed](https://huggingface.co/docs/accelerate/usage_guides/deepspeed)
