| 2254 | } |
| 2255 | |
| 2256 | struct bark_context_params bark_context_default_params() { |
| 2257 | struct bark_context_params result = { |
| 2258 | /*.verbosity =*/bark_verbosity_level::LOW, |
| 2259 | /*.temp =*/0.7, |
| 2260 | /*.fine_temp =*/0.5, |
| 2261 | /*.min_eos_p =*/0.2, |
| 2262 | /*.sliding_window_size =*/60, |
| 2263 | /*.max_coarse_history =*/630, |
| 2264 | /*.sample_rate =*/24000, |
| 2265 | /*.target_bandwidth =*/6, |
| 2266 | /*.cls_token_id =*/101, |
| 2267 | /*.sep_token_id =*/102, |
| 2268 | /*.n_steps_text_encoder =*/768, |
| 2269 | /*.text_pad_token =*/129595, |
| 2270 | /*.text_encoding_offset =*/10048, |
| 2271 | /*.semantic_rate_hz =*/49.9f, |
| 2272 | /*.semantic_pad_token =*/10000, |
| 2273 | /*.semantic_vocab_size =*/10000, |
| 2274 | /*.semantic_infer_token =*/129599, |
| 2275 | /*.coarse_rate_hz =*/75.0f, |
| 2276 | /*.coarse_infer_token =*/12050, |
| 2277 | /*.coarse_semantic_pad_token =*/12048, |
| 2278 | /*.n_coarse_codebooks =*/2, |
| 2279 | /*.n_fine_codebooks =*/8, |
| 2280 | /*.codebook_size =*/1024, |
| 2281 | /*.progress_callback =*/nullptr, |
| 2282 | /*.progress_callback_user_data =*/nullptr, |
| 2283 | }; |
| 2284 | |
| 2285 | return result; |
| 2286 | } |
| 2287 | |
| 2288 | bool bark_model_weights_quantize(std::ifstream& fin, std::ofstream& fout, ggml_ftype ftype) { |
| 2289 | gpt_model model; |
nothing calls this directly
no outgoing calls
no test coverage detected