-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of Lightning
Unified Package Not Currently Supported
#8
Comments
Thanks for the valuable feedback @funnym0nk3y! This issue is a function of importing the unified package ( While in the current version, Fine-Tuning Scheduler only officially supports the standalone In the meantime, replacing your imports of import pytorch_lightning as pl
isinstance(instance, pl.Callback) # True, schedule generation succeeds with the above import
import lightning.pytorch as pl
isinstance(instance, pl.Callback) # False, schedule generation will fail if using the lightning.* unified package mirror I'll keep this issue open until support for the unified package is officially added by FTS. By the way, FTS Thanks again for the valuable feedback! |
Lightning
Unified Package Not Currently Supported
Resolved with the release of |
I am trying to integrate finetuning-scheduler with my code which is built around import pytorch_lightning as pl
issubclass(finetuning_scheduler.FinetuningScheduler, pl.Callback)
>>> False
issubclass(finetuning_scheduler.FTSCheckpoint, pl.Callback)
>>> False
issubclass(finetuning_scheduler.FTSEarlyStopping, pl.Callback)
>>> False
import lightning.pytorch as pl
issubclass(finetuning_scheduler.FinetuningScheduler, pl.Callback)
>>> True
issubclass(finetuning_scheduler.FTSCheckpoint, pl.Callback)
>>> True
issubclass(finetuning_scheduler.FTSEarlyStopping, pl.Callback)
>>> True This is having the result that when trying to specify finetuning callbacks in the config, the following type of error is observed:
Relevant parts of pip freeze:
|
🐛 Bug
When running the default schedule creation instrucitons form the docs I get a
ValueError
.To Reproduce
See last lines of BoringModel example below.
Error
Environment
- GPU:
- NVIDIA GeForce RTX 3070
- NVIDIA GeForce GTX 960
- available: True
- version: 11.7
- finetuning-scheduler: 0.3.3
- numpy: 1.24.1
- pyTorch_debug: False
- pyTorch_version: 1.13.1+cu117
- pytorch-lightning: 1.8.4
- tqdm: 4.64.1
- OS: Linux
- architecture:
- 64bit
- ELF
- processor: x86_64
- python: 3.8.10
- version: #64~20.04.1-Ubuntu SMP Fri Jan 6 16:42:31 UTC 2023
Additional context
The text was updated successfully, but these errors were encountered: