---
title: "inference-models 0.39.0 Breaking Changes on PyPI | Since.dev"
description: "What each inference-models release removed, renamed or changed: 62 breaking changes in 2 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/inference-models
last_updated: 2026-12-04
---

# inference-models breaking changes

inference-models 0.39.0 (September 25, 2026) is its newest release with breaking changes, 55 of them. The first: Removed inference_models.models.rfdetr.optimization.catalog.BasePreprocessor.\_\_init\_\_. Every breaking API change we have recorded in inference-models on PyPI: 62 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.42.0`, released December 3, 2026. 

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

- From [0.37.0](#v-0-37-0) to [0.39.0](#v-0-39-0): 55 breaking changes in 1 version.

## inference-models 0.39.0 breaking changes

inference-models 0.39.0, released September 25, 2026: 55 breaking changes.

- **Removed** `inference_models.models.rfdetr.optimization.catalog.BasePreprocessor.__init__`  

BasePreprocessor() was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.optimization.catalog.ThreadedExactPreprocessor`  

inference_models.models.rfdetr.optimization.catalog.ThreadedExactPreprocessor was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.optimization.ids.RFDETR_PREPROCESSOR_DEFAULT_MAX_WORKERS`  

inference_models.models.rfdetr.optimization.ids.RFDETR_PREPROCESSOR_DEFAULT_MAX_WORKERS was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.optimization.ids.RFDETR_PREPROCESSOR_MAX_WORKERS_ENV_NAME`  

inference_models.models.rfdetr.optimization.ids.RFDETR_PREPROCESSOR_MAX_WORKERS_ENV_NAME was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.optimization.ids.RFDETR_PREPROCESSOR_THREADED_EXACT_V1`  

inference_models.models.rfdetr.optimization.ids.RFDETR_PREPROCESSOR_THREADED_EXACT_V1 was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.optimization.preprocessors.base.BasePreprocessor.__init__`  

BasePreprocessor() was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.optimization.preprocessors.threaded_exact`  

inference_models.models.rfdetr.optimization.preprocessors.threaded_exact was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.optimization.preprocessors.triton_universal.RFDETR_PREPROCESSOR_BASE`  

inference_models.models.rfdetr.optimization.preprocessors.triton_universal.RFDETR_PREPROCESSOR_BASE was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.pre_processing.get_integer_from_env`  

inference_models.models.rfdetr.pre_processing.get_integer_from_env was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.pre_processing.resolve_rfdetr_preprocessor_max_workers`  

inference_models.models.rfdetr.pre_processing.resolve_rfdetr_preprocessor_max_workers was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.pre_processing.RFDETR_PREPROCESSOR_DEFAULT_MAX_WORKERS`  

inference_models.models.rfdetr.pre_processing.RFDETR_PREPROCESSOR_DEFAULT_MAX_WORKERS was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.pre_processing.RFDETR_PREPROCESSOR_MAX_WORKERS_ENV_NAME`  

inference_models.models.rfdetr.pre_processing.RFDETR_PREPROCESSOR_MAX_WORKERS_ENV_NAME was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.pre_processing.RFDETR_PREPROCESSOR_THREADED_EXACT_V1`  

inference_models.models.rfdetr.pre_processing.RFDETR_PREPROCESSOR_THREADED_EXACT_V1 was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.rfdetr_object_detection_onnx.pre_process_network_input`  

inference_models.models.rfdetr.rfdetr_object_detection_onnx.pre_process_network_input was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.rfdetr_object_detection_pytorch.ModelRuntimeError`  

inference_models.models.rfdetr.rfdetr_object_detection_pytorch.ModelRuntimeError was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Removed** `inference_models.models.rfdetr.rfdetr_object_detection_trt.resolve_rfdetr_preprocessor_max_workers`  

inference_models.models.rfdetr.rfdetr_object_detection_trt.resolve_rfdetr_preprocessor_max_workers was removed in inference-models 0.39.0 [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Renamed** `inference_models.models.rfdetr.optimization.preprocessors.compatibility.check_threaded_request_compatibility`  

Use inference_models.models.rfdetr.optimization.preprocessors.compatibility.check_numpy_request_compatibility instead. [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Renamed** `inference_models.models.rfdetr.optimization.preprocessors.threaded_exact.ImagePreProcessing`  

Use inference_models.models.rfdetr.optimization.preprocessor_selection.ImagePreProcessing instead. [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Renamed** `inference_models.models.rfdetr.optimization.preprocessors.threaded_exact.InputCompatibility`  

Use inference_models.models.rfdetr.optimization.backend_stages.InputCompatibility instead. [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Renamed** `inference_models.models.rfdetr.optimization.preprocessors.threaded_exact.metadata_supports_context`  

Use inference_models.models.rfdetr.optimization.backend_stages.metadata_supports_context instead. [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Renamed** `inference_models.models.rfdetr.optimization.preprocessors.threaded_exact.NetworkInputDefinition`  

Use inference_models.models.rfdetr.optimization.preprocessor_selection.NetworkInputDefinition instead. [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.optimization.contracts.DeviceCompatibility.__init__`  

Was def \_\_init\_\_(self, device_kind: Literal\['cpu', 'gpu'\], minimum_compute_capability: Optional\[Tuple\[int, int\]\] = None) -> None; now def \_\_init\_\_(self, device_kind: Literal\['cpu', 'gpu', 'any'\], minimum_compute_capability... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.optimization.contracts.DeviceCompatibility.device_kind`  

Was device_kind: Literal\['cpu', 'gpu'\]; now device_kind: Literal\['cpu', 'gpu', 'any'\]. [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.optimization.contracts.ExecutionContext.__init__`  

Was def \_\_init\_\_(self, device_kind: Literal\['cpu', 'gpu'\], device: str, current_stream: Optional\[Any\] = None, compute_capability: Optional\[Tuple\[int, int\]\] = None, runtime_components: Mapping\[str, bool\] = immutable_mapping()) -> None; now... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.optimization.registry.ExecutionContext.__init__`  

Was def \_\_init\_\_(self, device_kind: Literal\['cpu', 'gpu'\], device: str, current_stream: Optional\[Any\] = None, compute_capability: Optional\[Tuple\[int, int\]\] = None, runtime_components: Mapping\[str, bool\] = immutable_mapping()) -> None; now... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.optimization.buffer_strategies.base.DeviceCompatibility.__init__`  

Was def \_\_init\_\_(self, device_kind: Literal\['cpu', 'gpu'\], minimum_compute_capability: Optional\[Tuple\[int, int\]\] = None) -> None; now def \_\_init\_\_(self, device_kind: Literal\['cpu', 'gpu', 'any'\], minimum_compute_capability... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.optimization.buffer_strategies.base.DeviceCompatibility.device_kind`  

Was device_kind: Literal\['cpu', 'gpu'\]; now device_kind: Literal\['cpu', 'gpu', 'any'\]. [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.optimization.catalog.build_rfdetr_implementation_registry`  

Was def build_rfdetr_implementation_registry(\*, device: torch.device, preprocessor_max_workers: int) -> ImplementationRegistry; now def build_rfdetr_implementation_registry(\*, device: torch.device, backend: str = 'trt') ->... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.optimization.contracts.PreprocessRequest.__init__`  

Was def \_\_init\_\_(self, images: Union\[ImageInput, List\[ImageInput\]\], input_color_format: Optional\[ColorFormat\], image_pre_processing: ImagePreProcessing, network_input: NetworkInputDefinition, pre_processing_overrides... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.optimization.execution_plan.RFDetrExecutionPlan.resolve`  

Was @classmethod def resolve(cls, \*, execution_plan: Optional\['RFDetrExecutionPlan'\] = None) -> 'RFDetrExecutionPlan'; now @classmethod def resolve(cls, \*, execution_plan: Optional\[Union\['RFDetrExecutionPlan', Mapping\[str, Any\]\]\] = None)... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.optimization.preprocessors.base.run_reference_preprocessor`  

Was def run_reference_preprocessor(request: PreprocessRequest, context: ExecutionContext, \*, implementation_id: str, max_workers: int) -> PreprocessResult; now def run_reference_preprocessor(request: PreprocessRequest, context... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.optimization.preprocessors.common.run_reference_preprocessor`  

Was def run_reference_preprocessor(request: PreprocessRequest, context: ExecutionContext, \*, implementation_id: str, max_workers: int) -> PreprocessResult; now def run_reference_preprocessor(request: PreprocessRequest, context... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.optimization.selection.resolve_preprocessor_for_model`  

Was def resolve_preprocessor_for_model(\*, registry: ImplementationRegistry, requested_id: str, context: ExecutionContext, image_pre_processing: ImagePreProcessing, network_input: NetworkInputDefinition, allow_fallback: bool) ->... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.optimization.selection.resolve_preprocessor_for_request`  

Was def resolve_preprocessor_for_request(\*, registry: ImplementationRegistry, implementation: Preprocessor, request: PreprocessRequest, context: ExecutionContext, allow_fallback: bool) -> ImplementationSelection\[Preprocessor\]; now def... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.optimization.selection.resolve_preprocessor_runtime_fallback`  

Was def resolve_preprocessor_runtime_fallback(\*, registry: ImplementationRegistry, selection: ImplementationSelection\[Preprocessor\], request: PreprocessRequest, context: ExecutionContext, allow_fallback: bool) ->... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.pre_processing.pre_process_network_input`  

Was def pre_process_network_input(images: Union\[np.ndarray, torch.Tensor, List\[np.ndarray\], List\[torch.Tensor\]\], image_pre_processing: ImagePreProcessing, network_input: NetworkInputDefinition, target_device: torch.device... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_instance_segmentation_onnx.pre_process_network_input`  

Was def pre_process_network_input(images: Union\[np.ndarray, torch.Tensor, List\[np.ndarray\], List\[torch.Tensor\]\], image_pre_processing: ImagePreProcessing, network_input: NetworkInputDefinition, target_device: torch.device... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_object_detection_onnx.RFDetrForObjectDetectionONNX`  

Was class RFDetrForObjectDetectionONNX(ObjectDetectionModel\[torch.Tensor, PreProcessingMetadata, Tuple\[torch.Tensor, torch.Tensor\]\]); now class RFDetrForObjectDetectionONNX(RFDetrBackendPlanMixin, ObjectDetectionModel\[torch.Tensor... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_object_detection_onnx.RFDetrForObjectDetectionONNX.__init__`  

Was def \_\_init\_\_(self, session: onnxruntime.InferenceSession, input_name: str, class_names: List\[str\], classes_re_mapping: Optional\[ClassesReMapping\], inference_config: InferenceConfig, device: torch.device, input_batch_size... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_object_detection_onnx.RFDetrForObjectDetectionONNX.from_pretrained`  

Was @classmethod def from_pretrained(cls, model_name_or_path: str, onnx_execution_providers: Optional\[List\[Union\[str, tuple\]\]\] = None, default_onnx_trt_options: bool = True, device: torch.device = DEFAULT_DEVICE... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_object_detection_onnx.RFDetrForObjectDetectionONNX.infer`  

Was def infer(self, images: Union\[torch.Tensor, List\[torch.Tensor\], np.ndarray, List\[np.ndarray\]\], \*\*kwargs) -> List\[Detections\]; now def infer(self, images, \*\*kwargs). [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_object_detection_onnx.RFDetrForObjectDetectionONNX.pre_process`  

Was def pre_process(self, images: Union\[torch.Tensor, List\[torch.Tensor\], np.ndarray, List\[np.ndarray\]\], input_color_format: Optional\[ColorFormat\] = None, pre_processing_overrides: Optional\[PreProcessingOverrides\] = None, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_object_detection_pytorch.RFDetrForObjectDetectionTorch`  

Was class RFDetrForObjectDetectionTorch(ObjectDetectionModel\[torch.Tensor, PreProcessingMetadata, dict\]); now class RFDetrForObjectDetectionTorch(RFDetrBackendPlanMixin, ObjectDetectionModel\[torch.Tensor, PreProcessingMetadata, dict\]). [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_object_detection_pytorch.RFDetrForObjectDetectionTorch.__init__`  

Was def \_\_init\_\_(self, model: LWDETR, inference_config: InferenceConfig, class_names: List\[str\], classes_re_mapping: Optional\[ClassesReMapping\], device: torch.device, post_processor: PostProcess, resolution: int... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_object_detection_pytorch.RFDetrForObjectDetectionTorch.from_checkpoint_file`  

Was @classmethod def from_checkpoint_file(cls, checkpoint_path: str, model_type: Optional\[str\] = None, labels: Optional\[Union\[str, List\[str\]\]\] = None, resolution: Optional\[int\] = None, device: torch.device = DEFAULT_DEVICE... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_object_detection_pytorch.RFDetrForObjectDetectionTorch.from_pretrained`  

Was @classmethod def from_pretrained(cls, model_name_or_path: str, device: torch.device = DEFAULT_DEVICE, model_type: Optional\[str\] = None, labels: Optional\[Union\[str, List\[str\]\]\] = None, resolution: Optional\[int\] = None... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_object_detection_pytorch.RFDetrForObjectDetectionTorch.pre_process`  

Was def pre_process(self, images: Union\[torch.Tensor, List\[torch.Tensor\], np.ndarray, List\[np.ndarray\]\], input_color_format: Optional\[ColorFormat\] = None, image_size: Optional\[Tuple\[int, int\]\] = None, pre_processing_overrides... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_object_detection_trt.build_rfdetr_implementation_registry`  

Was def build_rfdetr_implementation_registry(\*, device: torch.device, preprocessor_max_workers: int) -> ImplementationRegistry; now def build_rfdetr_implementation_registry(\*, device: torch.device, backend: str = 'trt') ->... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_object_detection_trt.PreprocessRequest.__init__`  

Was def \_\_init\_\_(self, images: Union\[ImageInput, List\[ImageInput\]\], input_color_format: Optional\[ColorFormat\], image_pre_processing: ImagePreProcessing, network_input: NetworkInputDefinition, pre_processing_overrides... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)
- **Signature changed** `inference_models.models.rfdetr.rfdetr_object_detection_trt.resolve_preprocessor_for_model`  

Was def resolve_preprocessor_for_model(\*, registry: ImplementationRegistry, requested_id: str, context: ExecutionContext, image_pre_processing: ImagePreProcessing, network_input: NetworkInputDefinition, allow_fallback: bool) ->... [pypi.org](https://pypi.org/project/inference-models/0.39.0/)

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

## inference-models 0.37.0 breaking changes

inference-models 0.37.0, released September 4, 2026: 7 breaking changes.

- **Removed** `inference_models.models.florence2.florence2_hf.pre_process_network_input`  

inference_models.models.florence2.florence2_hf.pre_process_network_input was removed in inference-models 0.37.0 [pypi.org](https://pypi.org/project/inference-models/0.37.0/)
- **Signature changed** `inference_models.models.common.roboflow.model_packages.NetworkInputDefinition.training_input_size`  

Was training_input_size: TrainingInputSize; now training_input_size: Optional\[TrainingInputSize\]. [pypi.org](https://pypi.org/project/inference-models/0.37.0/)
- **Signature changed** `inference_models.models.cosmos3.cosmos3_reasoner_hf.Cosmos3EdgeReasoner.__init__`  

Was def \_\_init\_\_(self, model, processor, device: torch.device); now def \_\_init\_\_(self, model, processor, device: torch.device, fine_tuned: bool = False, inference_config: Optional\[InferenceConfig\] = None, package_dir: Optional\[str\] = None). [pypi.org](https://pypi.org/project/inference-models/0.37.0/)
- **Signature changed** `inference_models.models.cosmos3.cosmos3_reasoner_hf.Cosmos3EdgeReasoner.generate`  

Was def generate(self, inputs: dict, max_new_tokens: Optional\[int\] = INFERENCE_MODELS_COSMOS3_DEFAULT_MAX_NEW_TOKENS, do_sample: bool = INFERENCE_MODELS_COSMOS3_DEFAULT_DO_SAMPLE, \*\*kwargs) -> torch.Tensor; now def generate(self, inputs... [pypi.org](https://pypi.org/project/inference-models/0.37.0/)
- **Signature changed** `inference_models.models.cosmos3.cosmos3_reasoner_hf.Cosmos3EdgeReasoner.pre_process_generation`  

Was def pre_process_generation(self, images: Union\[torch.Tensor, List\[torch.Tensor\], np.ndarray, List\[np.ndarray\]\], prompt: str = None, input_color_format: ColorFormat = None, as_video: bool = False, \*\*kwargs) -> dict; now def... [pypi.org](https://pypi.org/project/inference-models/0.37.0/)
- **Signature changed** `inference_models.models.cosmos3.cosmos3_reasoner_hf.Cosmos3EdgeReasoner.prompt_video`  

Was def prompt_video(self, frames: List\[np.ndarray\], prompt: str = None, input_color_format: ColorFormat = None, max_new_tokens: Optional\[int\] = INFERENCE_MODELS_COSMOS3_DEFAULT_MAX_NEW_TOKENS, do_sample: bool =... [pypi.org](https://pypi.org/project/inference-models/0.37.0/)
- **Signature changed** `inference_models.models.rfdetr.pre_processing.NetworkInputDefinition.training_input_size`  

Was training_input_size: TrainingInputSize; now training_input_size: Optional\[TrainingInputSize\]. [pypi.org](https://pypi.org/project/inference-models/0.37.0/)

## 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.
