Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WasmEdge/WasmEdge
/ addModel
Method
addModel
plugins/wasmedge_llmc/llmc_env.cpp:12–15 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
namespace WasmEdgeLLMC {
11
12
uint32_t LLMCEnv::addModel(GPT2 *M) noexcept {
13
Models.push_back(M);
14
return Models.size() - 1;
15
}
16
17
GPT2 *LLMCEnv::getModel(uint32_t Id) noexcept {
18
assert(Id < Models.size() &&
"Out of bounds"
);
Callers
1
bodyImpl
Method · 0.80
Calls
1
size
Method · 0.45
Tested by
no test coverage detected