Use config.num_channels in CLIP-like modeling files
#20857
Merged
config.num_channels in CLIP-like modeling files
#20857