replaced use of auto with exact type to avoid using -std=c++14

This commit is contained in:
Arik Poznanski 2023-04-13 12:37:05 +03:00
parent fe24af09ba
commit acbab12a89
2 changed files with 5 additions and 5 deletions

View file

@ -42,7 +42,7 @@ static const size_t MB = 1024*1024;
// TODO: dynamically determine these sizes
// needs modifications in ggml
auto& MEM_REQ_SCRATCH0()
std::map<e_model, size_t>& MEM_REQ_SCRATCH0()
{
static std::map<e_model, size_t> _MEM_REQ_SCRATCH0 = {
{ MODEL_7B, 512ull * MB },
@ -53,7 +53,7 @@ auto& MEM_REQ_SCRATCH0()
return _MEM_REQ_SCRATCH0;
}
auto& MEM_REQ_SCRATCH1()
std::map<e_model, size_t>& MEM_REQ_SCRATCH1()
{
static std::map<e_model, size_t> _MEM_REQ_SCRATCH1 = {
{ MODEL_7B, 512ull * MB },
@ -65,7 +65,7 @@ auto& MEM_REQ_SCRATCH1()
};
// 2*n_embd*n_ctx*n_layer*sizeof(float16)
auto& MEM_REQ_KV_SELF()
std::map<e_model, size_t>& MEM_REQ_KV_SELF()
{
static std::map<e_model, size_t> _MEM_REQ_KV_SELF = {
{ MODEL_7B, 1026ull * MB },
@ -78,7 +78,7 @@ auto& MEM_REQ_KV_SELF()
// this is mostly needed for temporary mul_mat buffers to dequantize the data
// not actually needed if BLAS is disabled
auto& MEM_REQ_EVAL()
std::map<e_model, size_t>& MEM_REQ_EVAL()
{
static std::map<e_model, size_t> _MEM_REQ_EVAL = {
{ MODEL_7B, 768ull * MB },

View file

@ -5,7 +5,7 @@
#include <map>
#include <vector>
auto& k_tests()
std::map<std::string, std::vector<llama_token>>& k_tests()
{
static std::map<std::string, std::vector<llama_token>> _k_tests = {
{ "Hello World", { 1, 10994, 2787, }, },