MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / model_meta

Method model_meta

smallthinker/tools/server/server.cpp:3621–3630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3619 }
3620
3621 json model_meta() const {
3622 return json {
3623 {"vocab_type", llama_vocab_type (vocab)},
3624 {"n_vocab", llama_vocab_n_tokens (vocab)},
3625 {"n_ctx_train", llama_model_n_ctx_train(model)},
3626 {"n_embd", llama_model_n_embd (model)},
3627 {"n_params", llama_model_n_params (model)},
3628 {"size", llama_model_size (model)},
3629 };
3630 }
3631};
3632
3633static void log_server_request(const httplib::Request & req, const httplib::Response & res) {

Callers 1

mainFunction · 0.80

Calls 6

llama_vocab_n_tokensFunction · 0.85
llama_model_n_ctx_trainFunction · 0.85
llama_model_n_embdFunction · 0.85
llama_vocab_typeEnum · 0.50
llama_model_n_paramsFunction · 0.50
llama_model_sizeFunction · 0.50

Tested by

no test coverage detected