    def load_from_checkpoint(cls, config_path: str, ckpt_path: str):
        """

        Parameters
        ----------
        config_path : str
            Path of model configuration file.
        ckpt_path : str
            Path of model  checkpoint.

        Returns
        -------
        model : SpeechTokenizer
            SpeechTokenizer model.

        """
        import json

        with open(config_path) as f:
            cfg = json.load(f)
        model = cls(cfg)
        params = torch.load(ckpt_path, map_location="cpu")
        model.load_state_dict(params)
        return model
Parameters
----------
config_path : str
Path of model configuration file.
ckpt_path : str
Path of model  checkpoint.

Returns
-------
model : SpeechTokenizer
SpeechTokenizer model.
models/codec/speechtokenizer/model.py