|
ember.cpp 0.1.0
C++ inference engine for Llama-family and paperkiln models (CPU, CUDA, WebAssembly)
|
Functions | |
| main () | |
Verify a transformer_cpp-trained GGUF end-to-end in the tinyllama.cpp engine.
Loads the GGUF through the pybind11 API (TinyLlamaSession), checks the config
parsed sanely (word-level tokenizer family, expected dims), runs a handful of
prompts, and applies mechanical sanity checks to the generations:
* non-empty output
* decoded tokens are words from the embedded vocabulary
* not a single token repeated forever (degenerate loop check)
Exit code 0 = engine runs our GGUF; nonzero = something to tinker with.
python test_transformer_cpp_gguf.py path/to/model.gguf [--steps 30]
(For GGUF loads the engine reads the tokenizer from embedded metadata; the
tokenizer_path argument is ignored, so we just pass the GGUF path twice.)
| test_transformer_cpp_gguf.main | ( | ) |
Definition at line 22 of file test_transformer_cpp_gguf.py.
Referenced by main().