// Requires an optional native-engine build and a compatible local GGUF file.
// Checking this source does not open the model; running it loads local weights.
import aner.llm

print(llm.native_available())
let model = llm.load("models/research-model.gguf", context: 4096, device: "auto")
print(model.device())
print(model.context())
print(model.fingerprint())
print(model.memory_summary())
let answer = model.generate("Explain the purpose of validation data.",
    max_tokens: 128, temperature: 0.0, seed: 0)
print(answer.text())
print(answer.finish_reason())
print(answer.total_tokens())
model.close()
