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

Method get_lr

common/common.cpp:1894–1900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1892}
1893
1894float lr_opt::get_lr(float epoch) const {
1895 float r = lr_min <= 0 ? lr0 :
1896 epoch >= decay_epochs ? lr_min :
1897 lr0 * std::pow(0.5f, epoch * scale_epoch);
1898 LOG_INF("epoch %.2g lr=%.2g\n", epoch, r);
1899 return r;
1900}
1901
1902bool common_replay_last_token(struct llama_context * ctx, llama_token last_token, int32_t pos) {
1903 llama_batch batch = llama_batch_get_one(&last_token, 1);

Callers 1

common_opt_lr_parsFunction · 0.45

Calls 1

powFunction · 0.85

Tested by

no test coverage detected