def __init__(self, config: ModelConfig):
        """
        Initializes the SparkTTS model with the provided configurations and device.

        Args:
            config (ModelConfig): The configuration for the model.
        """
        self.config = config

        model_dir = config.model_path

        self.model = Qwen2Model(config)
        self.tokenizer = load_tokenizer(model_dir, eos_token_ids=config.eos_token_id)

        self._audio_tokenizer = BiCodecTokenizer(model_dir)

        Initializes the SparkTTS model with the provided configurations and device.

        Args:
            config (ModelConfig): The configuration for the model.
        
mlx_audio/tts/models/spark/spark.py