class
Llama::SessionSnapshot
- Llama::SessionSnapshot
- Reference
- Object
Overview
Portable canonical transcript state for Session.
Native KV bytes are deliberately excluded: Session currently rebuilds the checked native state from this text, making snapshots portable across processes while still rejecting a different model or llama.cpp release.
Included Modules
- JSON::Serializable
Defined in:
llama/session_snapshot.crConstant Summary
-
FORMAT_VERSION =
1 -
MAX_SERIALIZED_BYTES =
(64 * 1024) * 1024
Constructors
- .new(transcript : String, model_fingerprint : String, llama_cpp_version : String = Llama.llama_cpp_version, wrapper_version : String = Llama::VERSION, format_version : Int32 = FORMAT_VERSION)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #format_version : Int32
- #llama_cpp_version : String
- #model_fingerprint : String
- #transcript : String
- #wrapper_version : String
Constructor Detail
def self.new(transcript : String, model_fingerprint : String, llama_cpp_version : String = Llama.llama_cpp_version, wrapper_version : String = Llama::VERSION, format_version : Int32 = FORMAT_VERSION)
#