def DEFAULT_PALETTIZATION(cls) -> PassPipeline:
        """Create a default palettization pipeline to convert a compressed source model"""
        pipeline = cls.get_pipeline("default_palettization")

        # set default palettization
        config = OptimizationConfig(global_config=OpPalettizerConfig(mode="unique"))
        pipeline.set_options("compression::palettize_weights", {"config": config})
        return pipeline
Create a default palettization pipeline to convert a compressed source model
coremltools/converters/mil/mil/passes/pass_pipeline.py