---
title: "open-clip-torch 4.2.1 Breaking Changes on PyPI | Since.dev"
description: "What each open-clip-torch release removed, renamed or changed: 134 breaking changes in 1 version on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/open-clip-torch
last_updated: 2026-12-04
---

# 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

Latest version `4.2.2`, released November 10, 2026. [Source repository](https://github.com/mlfoundations/open%5Fclip)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

## open-clip-torch 4.2.1 breaking changes

open-clip-torch 4.2.1, released November 6, 2026: 134 breaking changes.

- **Removed** `--horovod`  

The --horovod flag is removed; use DDP or FSDP2 instead. [github.com](https://github.com/mlfoundations/open%5Fclip/releases/tag/v4.2.1)
- **Removed** `--torchscript`  

The --torchscript flag is removed. [github.com](https://github.com/mlfoundations/open%5Fclip/releases/tag/v4.2.1)
- **Removed** `--trace`  

The --trace flag is removed. [github.com](https://github.com/mlfoundations/open%5Fclip/releases/tag/v4.2.1)
- **Removed** `args.genlip`  

These args attributes are gone; model traits now drive behavior. [github.com](https://github.com/mlfoundations/open%5Fclip/blob/main/docs/MIGRATING%5F3%5FTO%5F4.md)
- **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](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip_train.main.check_exists`  

open_clip_train.main.check_exists was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip_train.main.create_loss`  

open_clip_train.main.create_loss was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip_train.main.trace_model`  

open_clip_train.main.trace_model was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip_train.train.CLIP`  

open_clip_train.train.CLIP was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip_train.train.CustomTextCLIP`  

open_clip_train.train.CustomTextCLIP was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip_train.train.unwrap_model`  

open_clip_train.train.unwrap_model was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **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](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip_train.zero_shot.run`  

open_clip_train.zero_shot.run was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip.ClipLoss.use_horovod`  

ClipLoss.use_horovod was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip.coca_model.GENERATION_TYPES`  

open_clip.coca_model.GENERATION_TYPES was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **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](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip.convert.Transformer.batch_first`  

Transformer.batch_first was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip.factory.is_pretrained_cfg`  

open_clip.factory.is_pretrained_cfg was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip.list_openai_models`  

Use create_model_from_pretrained with pretrained='openai' for OpenAI weights. [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip.load_openai_model`  

Use create_model_from_pretrained with pretrained='openai' for OpenAI weights. [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip.model.Attention.use_fsdpa`  

Attention.use_fsdpa was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip.model.build_model_from_openai_state_dict`  

Use create_model_from_pretrained with pretrained='openai' for OpenAI weights. [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip.openai`  

open_clip.openai was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `open_clip.trace_model`  

open_clip.trace_model was removed in open-clip-torch 4.2.1 [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Removed** `trace_model`  

trace_model is removed from the top-level namespace. [github.com](https://github.com/mlfoundations/open%5Fclip/releases/tag/v4.2.1)
- **Renamed** `open_clip_train.main.natural_key`  

Use open_clip_train.file_utils.natural_key instead. [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Renamed** `open_clip_train.main.pt_load`  

Use open_clip_train.legacy_main.pt_load instead. [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Renamed** `open_clip_train.zero_shot.accuracy`  

Use open_clip_train.eval_utils.accuracy instead. [pypi.org](https://pypi.org/project/open-clip-torch/4.2.1/)
- **Behavior changed** `--lock-image`  

Vision attentional poolers are now frozen when locking image towers. [github.com](https://github.com/mlfoundations/open%5Fclip/blob/main/docs/MIGRATING%5F3%5FTO%5F4.md)
- **Behavior changed** `CLIPTextCfg.eos_id`  

Configs using pool_type='eos' must set eos_id explicitly. [github.com](https://github.com/mlfoundations/open%5Fclip/blob/main/docs/MIGRATING%5F3%5FTO%5F4.md)
- **Behavior changed** `coca_model.forward`  

coca_model.forward() no longer slices labels; callers outside training must handle label shifting themselves. [github.com](https://github.com/mlfoundations/open%5Fclip/blob/main/docs/MIGRATING%5F3%5FTO%5F4.md)
- **Behavior changed** `CoCa.__init__`  

model.pad_id is now derived from the text tower; remove the pad_id argument when constructing CoCa. [github.com](https://github.com/mlfoundations/open%5Fclip/blob/main/docs/MIGRATING%5F3%5FTO%5F4.md)
- **Behavior changed** `CoCaLoss`  

Caption labels are masked to -100 and cross-entropy ignores that index; validation metrics may change. [github.com](https://github.com/mlfoundations/open%5Fclip/blob/main/docs/MIGRATING%5F3%5FTO%5F4.md)
- **Behavior changed** `create_loss`  

create_loss takes an explicit loss type and keyword options; there is no model-name fallback. [github.com](https://github.com/mlfoundations/open%5Fclip/blob/main/docs/MIGRATING%5F3%5FTO%5F4.md)
- **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](https://github.com/mlfoundations/open%5Fclip/blob/main/docs/MIGRATING%5F3%5FTO%5F4.md)
- **Behavior changed** `HFTokenizer`  

Tokenizers without a pad token now fail fast, and padding side is forced to right. [github.com](https://github.com/mlfoundations/open%5Fclip/blob/main/docs/MIGRATING%5F3%5FTO%5F4.md)
- **Behavior changed** `MaxPooler`  

MaxPooler now max-pools over valid positions instead of padding positions, changing outputs. [github.com](https://github.com/mlfoundations/open%5Fclip/blob/main/docs/MIGRATING%5F3%5FTO%5F4.md)
- **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](https://github.com/mlfoundations/open%5Fclip/releases/tag/v4.2.1)
- **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](https://github.com/mlfoundations/open%5Fclip/blob/main/docs/MIGRATING%5F3%5FTO%5F4.md)
- **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](https://github.com/mlfoundations/open%5Fclip/releases/tag/v4.2.1)
- **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](https://github.com/mlfoundations/open%5Fclip/blob/main/docs/MIGRATING%5F3%5FTO%5F4.md)
- **Default changed** `--precision`  

The default --precision is now amp_bf16 instead of amp. Pass --precision amp explicitly to keep fp16 AMP. [github.com](https://github.com/mlfoundations/open%5Fclip/releases/tag/v4.2.1)
- **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](https://pypi.org/project/open-clip-torch/4.2.1/)
- **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](https://pypi.org/project/open-clip-torch/4.2.1/)
- **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](https://pypi.org/project/open-clip-torch/4.2.1/)
- **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](https://pypi.org/project/open-clip-torch/4.2.1/)
- **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](https://pypi.org/project/open-clip-torch/4.2.1/)
- **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](https://pypi.org/project/open-clip-torch/4.2.1/)
- **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](https://pypi.org/project/open-clip-torch/4.2.1/)
- **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](https://pypi.org/project/open-clip-torch/4.2.1/)

And 84 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
