mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-06-09 15:56:39 +00:00
17 lines
468 B
C++
17 lines
468 B
C++
#ifndef __SD_TOKENIZERS_GPT_OSS_TOKENIZER_H__
|
|
#define __SD_TOKENIZERS_GPT_OSS_TOKENIZER_H__
|
|
|
|
#include <string>
|
|
|
|
#include "bpe_tokenizer.h"
|
|
|
|
class GPTOSSTokenizer : public BPETokenizer {
|
|
protected:
|
|
void load_from_merges(const std::string& merges_utf8_str, const std::string& vocab_utf8_str);
|
|
|
|
public:
|
|
explicit GPTOSSTokenizer(const std::string& merges_utf8_str = "", const std::string& vocab_utf8_str = "");
|
|
};
|
|
|
|
#endif // __SD_TOKENIZERS_GPT_OSS_TOKENIZER_H__
|