Crate llm_base

source ·
Expand description

This crate provides a unified interface for loading and using Large Language Models (LLMs).

This is the base crate that implementors can use to implement their own LLMs.

As a user, you probably want to use the llm crate instead.

Re-exports

Modules

  • Large language model traits and types
  • Utilities for interacting with LLMs and loading them.

Structs

Enums

Traits

Functions

  • Load a GGML model from the path and configure it per the params. The status of the loading process will be reported through load_progress_callback.
  • A implementation for load_progress_callback that outputs to stdout.
  • Quantizes a model.

Type Definitions

  • The identifier of a token in a vocabulary.