We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72ca3d1 commit 1f8d781Copy full SHA for 1f8d781
models/apertus.cpp
@@ -124,7 +124,7 @@ namespace chatllm::apertus
124
}
125
else
126
{
127
- if (!s._Starts_with("<|system_start|>"))
+ if (!s.starts_with("<|system_start|>"))
128
ids.push_back(tok->system_token_id);
129
tokenizer->encode(s, ids);
130
if (s.find("<|system_end|>") == std::string::npos)
@@ -213,7 +213,7 @@ namespace chatllm::apertus
213
static float softplus(float input, float beta=1.0f, float threshold=20.0f)
214
215
if (input * beta > threshold) return input;
216
- return (1/beta) * std::logf(1 + std::expf(beta * input));
+ return (1/beta) * logf(1 + expf(beta * input));
217
218
219
void XIEMLP::load(const std::string &path, TensorLoader *loader)
0 commit comments