facebookresearch / facebookresearch/LLM-QAT

Expects full precision but got torch.bfloat16 error

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
328
Forks
25
PR merge metrics
No merged PRs in 30d

Description

## Env
- cuda 11.7
- pytorch 1.13.1
- python 3.10

when i execute train script , run the line:
https://github.com/facebookresearch/LLM-QAT/blob/main/utils/utils.py#L41

```
state_dict = trainer.model.state_dict()
```

occur an error :
```
Expects full precision but got torch.bfloat16
```
---

hope to get your answer。

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.