Download src/bsh_engine.hpp from Snapkitty/bsh-harness: direct link, hf CLI and curl.
- Browser
- Download file 553 Bytes
-
https://huggingface.co/Snapkitty/bsh-harness/resolve/main/src/bsh_engine.hpp
- Command line
-
hf download hf://Snapkitty/bsh-harness/src/bsh_engine.hpp
-
curl -L -o bsh_engine.hpp https://huggingface.co/Snapkitty/bsh-harness/resolve/main/src/bsh_engine.hpp
553 Bytes
| namespace bsh { | |
| class Engine { | |
| public: | |
| Engine(); | |
| ~Engine(); | |
| void initialize(); | |
| void process(const Tensor& input, Tensor& output); | |
| void shutdown(); | |
| std::string get_version() const; | |
| std::string get_status() const; | |
| private: | |
| bool initialized_; | |
| std::vector<Tensor> state_; | |
| void apply_attention(const Tensor& query, const Tensor& key, | |
| const Tensor& value, Tensor& output); | |
| }; | |
| } // namespace bsh | |