-
Notifications
You must be signed in to change notification settings - Fork 363
Open
Labels
area / SDK-storageIssue area: SDK and storage related issuesIssue area: SDK and storage related issueshelp wantedExtra attention is neededExtra attention is neededphase / in-progressIssue phase: issue is in the development phaseIssue phase: issue is in the development phasetype / bugIssue type: something isn't workingIssue type: something isn't working
Milestone
Description
π Bug
The Aim Huggingface callback is doing the following:
self._run.set('model', {**vars(model.config), 'num_labels': model.num_labels}, strict=False)
Most Huggingface model classes do not have a .num_labels attribute, only the classification model classes have this attribute.
To reproduce
Use the Aim Huggingface callback with a Huggingface model that is not a classification model
Expected behavior
To run without raising an AttributeError which halts model training
Environment
- Aim Version v3.16.2
- Python version 3.9.7
- pip version 23.0.1
alberttorosyan
Metadata
Metadata
Assignees
Labels
area / SDK-storageIssue area: SDK and storage related issuesIssue area: SDK and storage related issueshelp wantedExtra attention is neededExtra attention is neededphase / in-progressIssue phase: issue is in the development phaseIssue phase: issue is in the development phasetype / bugIssue type: something isn't workingIssue type: something isn't working