Skip to content

Commit 1f8d781

Browse files
committed
fix ci
1 parent 72ca3d1 commit 1f8d781

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/apertus.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ namespace chatllm::apertus
124124
}
125125
else
126126
{
127-
if (!s._Starts_with("<|system_start|>"))
127+
if (!s.starts_with("<|system_start|>"))
128128
ids.push_back(tok->system_token_id);
129129
tokenizer->encode(s, ids);
130130
if (s.find("<|system_end|>") == std::string::npos)
@@ -213,7 +213,7 @@ namespace chatllm::apertus
213213
static float softplus(float input, float beta=1.0f, float threshold=20.0f)
214214
{
215215
if (input * beta > threshold) return input;
216-
return (1/beta) * std::logf(1 + std::expf(beta * input));
216+
return (1/beta) * logf(1 + expf(beta * input));
217217
}
218218

219219
void XIEMLP::load(const std::string &path, TensorLoader *loader)

0 commit comments

Comments
 (0)