MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / ggml_opt_default_params

Function ggml_opt_default_params

ggml/src/ggml-opt.cpp:245–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245struct ggml_opt_params ggml_opt_default_params(
246 ggml_backend_sched_t backend_sched,
247 enum ggml_opt_loss_type loss_type) {
248 return {
249 /*backend_sched =*/ backend_sched,
250 /*ctx_compute =*/ nullptr,
251 /*inputs =*/ nullptr,
252 /*logits =*/ nullptr,
253 /*loss_type =*/ loss_type,
254 /*build_type =*/ GGML_OPT_BUILD_TYPE_OPT,
255 /*opt_period =*/ 1,
256 /*get_opt_pars =*/ ggml_opt_get_default_optimizer_params,
257 /*get_opt_pars_ud =*/ nullptr,
258 /*optimizer =*/ GGML_OPT_OPTIMIZER_TYPE_ADAMW,
259 };
260}
261
262static ggml_tensor * map_tensor(std::map<ggml_tensor *, ggml_tensor *> & tensor_map, ggml_context * ctx, ggml_tensor * tensor) {
263 if (!tensor) {

Callers 3

opt_initMethod · 0.85
helper_get_ctx_dataFunction · 0.85
ggml_opt_fitFunction · 0.85

Calls

no outgoing calls

Tested by 1

helper_get_ctx_dataFunction · 0.68