mirror of https://github.com/google/gemma.cpp.git
parent
2bdf26d81d
commit
7cdb0d3874
|
|
@ -186,11 +186,16 @@ constexpr bool IsNuqStream() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Instruction-tuned models require extra 'turn structure' tokens in prompts.
|
// Instruction-tuned models require extra 'turn structure' tokens in prompts.
|
||||||
enum class PromptWrapping { GEMMA_IT, GEMMA_PT, PALIGEMMA };
|
enum class PromptWrapping {
|
||||||
|
GEMMA_IT,
|
||||||
|
GEMMA_PT,
|
||||||
|
PALIGEMMA,
|
||||||
|
kSentinel // must be last
|
||||||
|
};
|
||||||
|
|
||||||
inline bool EnumValid(PromptWrapping type) {
|
inline bool EnumValid(PromptWrapping type) {
|
||||||
return static_cast<int>(type) >= 0 &&
|
return static_cast<int>(type) >= 0 &&
|
||||||
static_cast<int>(type) <= static_cast<int>(PromptWrapping::PALIGEMMA);
|
static_cast<int>(type) < static_cast<int>(PromptWrapping::kSentinel);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tensor types for loading weights. Note that not all types are supported as
|
// Tensor types for loading weights. Note that not all types are supported as
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue