MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / getModel

Method getModel

plugins/wasmedge_llmc/llmc_env.cpp:17–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17GPT2 *LLMCEnv::getModel(uint32_t Id) noexcept {
18 assert(Id < Models.size() && "Out of bounds");
19 return Models[Id];
20}
21
22uint32_t LLMCEnv::addTokenizer(Tokenizer *T) noexcept {
23 Tokenizers.push_back(T);

Callers 1

bodyImplMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected