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

Method init

common/common.cpp:1881–1892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1879static float const k_log_2 = std::log(2.f);
1880
1881void lr_opt::init() {
1882 if (lr_min > 0 && lr_min < lr0) {
1883 float nhalf = std::log(lr0 / lr_min) / k_log_2;
1884 float e = epochs;
1885 if (decay_epochs > 0 && decay_epochs < e) {
1886 e = decay_epochs;
1887 } else {
1888 decay_epochs = e;
1889 }
1890 scale_epoch = nhalf / e;
1891 }
1892}
1893
1894float lr_opt::get_lr(float epoch) const {
1895 float r = lr_min <= 0 ? lr0 :

Callers 1

common_params_parseFunction · 0.45

Calls 1

logFunction · 0.85

Tested by

no test coverage detected