adding include for refl
This commit is contained in:
parent
bf019ef125
commit
9fb2c73bc0
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
#include <refl-cpp/refl.hpp>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "llama.h"
|
#include "llama.h"
|
||||||
#include "ggml-internal.hpp"
|
#include "ggml-internal.hpp"
|
||||||
|
@ -6,6 +7,9 @@
|
||||||
REFL_TYPE(ggml_init_params )
|
REFL_TYPE(ggml_init_params )
|
||||||
REFL_END
|
REFL_END
|
||||||
|
|
||||||
|
// we use the named data type patch
|
||||||
|
#define ggml_opt_params_names
|
||||||
|
#ifdef ggml_opt_params_names
|
||||||
REFL_TYPE(ggml_opt_params::ggml_adam)
|
REFL_TYPE(ggml_opt_params::ggml_adam)
|
||||||
REFL_END
|
REFL_END
|
||||||
|
|
||||||
|
@ -15,7 +19,7 @@ REFL_END
|
||||||
|
|
||||||
REFL_TYPE(ggml_opt_context::ggml_grad )
|
REFL_TYPE(ggml_opt_context::ggml_grad )
|
||||||
REFL_END
|
REFL_END
|
||||||
|
#endif
|
||||||
REFL_TYPE(gpt_params )
|
REFL_TYPE(gpt_params )
|
||||||
|
|
||||||
REFL_FIELD( seed )
|
REFL_FIELD( seed )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue