open-clip-torch breaking changes
open-clip-torch 4.2.1 (November 6, 2026) is its newest release with breaking changes, 134 of them. The first: Removed --horovod. Every breaking API change we have recorded in open-clip-torch on PyPI: 134 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.2.2, released November 10, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
open-clip-torch 4.2.1 breaking changes
- Removed
--horovod
The --horovod flag is removed; use DDP or FSDP2 instead. github.com - Removed
--torchscript
The --torchscript flag is removed. github.com - Removed
--trace
The --trace flag is removed. github.com - Removed
args.genlip
These args attributes are gone; model traits now drive behavior. github.com - Removed
open_clip_train.distributed.is_using_horovod
open_clip_train.distributed.is_using_horovod was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip_train.main.check_exists
open_clip_train.main.check_exists was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip_train.main.create_loss
open_clip_train.main.create_loss was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip_train.main.trace_model
open_clip_train.main.trace_model was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip_train.train.CLIP
open_clip_train.train.CLIP was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip_train.train.CustomTextCLIP
open_clip_train.train.CustomTextCLIP was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip_train.train.unwrap_model
open_clip_train.train.unwrap_model was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip_train.zero_shot.get_input_dtype
open_clip_train.zero_shot.get_input_dtype was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip_train.zero_shot.run
open_clip_train.zero_shot.run was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip.ClipLoss.use_horovod
ClipLoss.use_horovod was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip.coca_model.GENERATION_TYPES
open_clip.coca_model.GENERATION_TYPES was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip.coca_model.prepare_inputs_for_generation
open_clip.coca_model.prepare_inputs_for_generation was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip.convert.Transformer.batch_first
Transformer.batch_first was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip.factory.is_pretrained_cfg
open_clip.factory.is_pretrained_cfg was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip.list_openai_models
Use create_model_from_pretrained with pretrained='openai' for OpenAI weights. pypi.org - Removed
open_clip.load_openai_model
Use create_model_from_pretrained with pretrained='openai' for OpenAI weights. pypi.org - Removed
open_clip.model.Attention.use_fsdpa
Attention.use_fsdpa was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip.model.build_model_from_openai_state_dict
Use create_model_from_pretrained with pretrained='openai' for OpenAI weights. pypi.org - Removed
open_clip.openai
open_clip.openai was removed in open-clip-torch 4.2.1 pypi.org - Removed
open_clip.trace_model
open_clip.trace_model was removed in open-clip-torch 4.2.1 pypi.org - Removed
trace_model
trace_model is removed from the top-level namespace. github.com - Renamed
open_clip_train.main.natural_key
Use open_clip_train.file_utils.natural_key instead. pypi.org - Renamed
open_clip_train.main.pt_load
Use open_clip_train.legacy_main.pt_load instead. pypi.org - Renamed
open_clip_train.zero_shot.accuracy
Use open_clip_train.eval_utils.accuracy instead. pypi.org - Behavior changed
--lock-image
Vision attentional poolers are now frozen when locking image towers. github.com - Behavior changed
CLIPTextCfg.eos_id
Configs using pool_type='eos' must set eos_id explicitly. github.com - Behavior changed
coca_model.forward
coca_model.forward() no longer slices labels; callers outside training must handle label shifting themselves. github.com - Behavior changed
CoCa.__init__
model.pad_id is now derived from the text tower; remove the pad_id argument when constructing CoCa. github.com - Behavior changed
CoCaLoss
Caption labels are masked to -100 and cross-entropy ignores that index; validation metrics may change. github.com - Behavior changed
create_loss
create_loss takes an explicit loss type and keyword options; there is no model-name fallback. github.com - Behavior changed
decode
decode() and batch_decode() now default to skip_special_tokens=False and stop_at_eos=True; pass stop_at_eos=False to see tokens after EOS. github.com - Behavior changed
HFTokenizer
Tokenizers without a pad token now fail fast, and padding side is forced to right. github.com - Behavior changed
MaxPooler
MaxPooler now max-pools over valid positions instead of padding positions, changing outputs. github.com - Behavior changed
open_clip.train.task
Dataloaders now emit dict batches, and training code should pass a TrainingTask instead of a separate model and loss. github.com - Behavior changed
WebDataset pipelines
Pipelines now tokenize and bucket raw bytes before decoding; the legacy decode-first path is kept in legacy_data. github.com - Default changed
--loss-dist-impl
SigLIP's --loss-dist-impl now defaults to gather. Pass --loss-dist-impl bidir to keep the previous bidirectional ring exchange. github.com - Default changed
--naflex-max-tokens-per-batch
The token budget is inferred from batch size and sequence lengths; pass an explicit budget to keep the old 16384 default. github.com - Default changed
--precision
The default --precision is now amp_bf16 instead of amp. Pass --precision amp explicitly to keep fp16 AMP. github.com - Signature changed
open_clip_train.data.CsvDataset.__init__
Was def __init__(self, input_filename, transforms, img_key, caption_key, sep='\t', tokenizer=None); now def __init__(self, input_filename, transforms, img_key, caption_key, sep='\t', tokenizer=None, variable_text: bool = False... pypi.org - Signature changed
open_clip_train.data.get_csv_dataset
Was def get_csv_dataset(args, preprocess_fn, is_train, epoch=0, tokenizer=None); now def get_csv_dataset(args, preprocess_fn, is_train, epoch=0, tokenizer=None, naflex_data_config=None, model_traits=None). pypi.org - Signature changed
open_clip_train.data.get_data
Was def get_data(args, preprocess_fns, epoch=0, tokenizer=None); now def get_data(args, preprocess_fns, model_traits, epoch=0, tokenizer=None, naflex_data_config=None). pypi.org - Signature changed
open_clip_train.data.get_imagenet
Was def get_imagenet(args, preprocess_fns, split); now def get_imagenet(args, preprocess_fns, split, naflex_data_config=None). pypi.org - Signature changed
open_clip_train.data.get_synthetic_dataset
Was def get_synthetic_dataset(args, preprocess_fn, is_train, epoch=0, tokenizer=None); now def get_synthetic_dataset(args, preprocess_fn, is_train, epoch=0, tokenizer=None, naflex_data_config=None, model_traits=None). pypi.org - Signature changed
open_clip_train.data.get_wds_dataset
Was def get_wds_dataset(args, preprocess_img, is_train, epoch=0, floor=False, tokenizer=None); now def get_wds_dataset(args, preprocess_img, is_train, epoch=0, floor=False, tokenizer=None, naflex_data_config=None, model_traits=None). pypi.org - Signature changed
open_clip_train.data.SharedEpoch.__init__
Was def __init__(self, epoch: int = 0); now def __init__(self, epoch: int = 0, mp_context: Optional[str] = None). pypi.org - Signature changed
open_clip_train.data.SyntheticDataset.__init__
Was def __init__(self, transform=None, image_size=(224, 224), caption='Dummy caption', dataset_size=100, tokenizer=None); now def __init__(self, transform=None, image_size=(224, 224), caption='Dummy caption', dataset_size=100... pypi.org
And 84 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.