MCPcopy Create free account
hub / github.com/PABannier/bark.cpp / bark_context_default_params

Function bark_context_default_params

bark.cpp:2256–2286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2254}
2255
2256struct 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
2288bool bark_model_weights_quantize(std::ifstream& fin, std::ofstream& fout, ggml_ftype ftype) {
2289 gpt_model model;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected