Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
FuexFollets committed Jan 26, 2024
1 parent 6e02d9b commit 17a77bf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/lexocraft/cereal_eigen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <cereal/cereal.hpp>
#include <cstddef>
#include <Eigen/Dense>
#include <fstream>

namespace cereal {
template <class Archive, class Scalar, int Rows, int Cols, int Options, int MaxRows,
Expand Down
2 changes: 1 addition & 1 deletion src/lexocraft/llm/text_completion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ namespace lc {
}
}

return static_cast<float>(token_count) / std::max(1UL, sentence_count);
return static_cast<float>(token_count) / std::max(std::size_t {1}, sentence_count);
}

float sentence_length_stddev(const std::vector<grammar::Token>& tokens) {
Expand Down
1 change: 1 addition & 0 deletions src/lexocraft/llm/vector_database.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <Eigen/Eigen>
#include <mapbox/eternal.hpp>
#include <tsl/robin_map.h>
#include <annoylib.h>

#include <lexocraft/cereal_eigen.hpp>

Expand Down

0 comments on commit 17a77bf

Please sign in to comment.