llm

v1.0.0 AI & Deep Learning

High-level Large Language Model inference API with streaming token generation.

Publisher: Rohit Pathak (TEZZCORP PRIVATE LIMITED) • License: MIT • Downloads: 1,329

Installation & Inclusion

Run from your project root:

tezz install llm

Or add directly to tezz.mod:

dep.llm = 1.0.0

Example Usage in TezzNative

import llm

fn main() -> int:
  model:llm.Model = llm.load("models/qwen2.5-0.5b.gguf")
  prompt:str = "Explain TezzNative in one sentence."
  say "Prompt: " + prompt
  say "Response: "
  model.generate_stream(prompt, fn(tok:str):
    say_raw tok
  )
  ret 0

Cryptographic Integrity (SHA-256)

53f42402fcd8232d60aa3a5e1ade3d012fb233ce95a6931fde6a5346bcbd99ef