create_model is the whole APItimm.create_model(name, pretrained=True, num_classes=N)
num_classes=0 = feature extractorreturns the pooled embedding; num_features is its size
preprocess with the model's configresolve_data_config + create_transform — never hardcode mean/std
model.tag pins exact weightse.g. resnet50.a1_in1k; list_pretrained to see options
features_only for detection/segmulti-scale feature maps; feature_info gives channels & strides
forward_features / forward_headsplit the pass to grab pre-pool maps or pre-logit embeddings
hf_hub: prefixload any timm checkpoint from the Hub by id
it's a plain nn.Modulebring your own loop (or Lightning / HF Trainer)