Fixed base model class name extraction from PeftModels (#27162)
* Fixed base model class name extraction from PeftModels
* Changes to first unwrap the model then extract the base model name
* Changed base_model to base_model.model to stay consistent with peft model abstractions