-
Notifications
You must be signed in to change notification settings - Fork 496
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Bug description
The StateDictAdapter
class in torchtitan/protocols/state_dict_adapter.py
, which is responsible for converting model state dictionaries between TorchTitan and Hugging Face formats, currently lacks unit tests. This absence of tests poses a risk of incorrect model weight conversions, which could impact model accuracy and make future code changes difficult to verify.
To reproduce:
- Examine the tests/unit_tests/ directory.
- Note the absence of a test file for torchtitan/protocols/state_dict_adapter.py.
- The lack of tests means the conversion logic is unverified.
If allowed, I can discuss more on it, also I can write a solution for it.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request