# bf16=True in TrainingArgument

**URL:** <https://discuss.huggingface.co/t/bf16-true-in-trainingargument/45377>\
**Category:** Beginners\
**Created:** [July 2, 2023, 4:15pm UTC](https://discuss.huggingface.co/t/bf16-true-in-trainingargument/45377 "2023-07-02T16:15:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gptzerozero](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@gptzerozero](https://discuss.huggingface.co/u/gptzerozero)\
**Post date:** [July 2, 2023, 4:15pm UTC](https://discuss.huggingface.co/t/bf16-true-in-trainingargument/45377/1 "2023-07-02T16:15:52Z")

</div>

Is the following code in the official Qlora repo

> <https://github.com/artidoro/qlora/blob/3da535abdfaa29a2d0757eab0971664ed2cd97e8/qlora.py#L334-L343>

similar to passing `bf16=True` into `transformers.TrainingArgument` when using `transformers.TrainingArgument` with `transformers.Trainer`?
