MCPcopy Create free account
hub / github.com/andrewkchan/deepseek.cpp / Session

Class Session

src/main.cpp:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71struct Session {
72 Session(const std::string& checkpoint_dir, bool lock_model_weights, int context, uint64_t sampler_seed):
73 model_data(checkpoint_dir, lock_model_weights),
74 model(model_data, context),
75 state(model.config),
76 sampler(model.config, sampler_seed),
77 tokenizer(model_data) {}
78 YALMData model_data;
79 Model model;
80 InferenceState state;
81 Sampler sampler;
82 Tokenizer tokenizer;
83};
84
85struct CompletionArgs {
86 std::string prompt;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected