llm is an ecosystem of Rust libraries for working with large language models - it's built on top of the fast, efficient GGML library for machine learning. The primary entry point for developers is the llm crate, which wraps the llm-base and the supported model crates. Documentation for the released version is available on Docs.rs. For end-users, there is a CLI application, llm-cli, which provides a convenient interface for interacting with supported models. Text generation can be done as a one-off based on a prompt, or interactively, through REPL or chat modes. The CLI can also be used to serialize (print) decoded models, quantize GGML files, or compute the perplexity of a model. It can be downloaded from the latest GitHub release or by installing it from crates.io.

Features

  • llm is powered by the ggml tensor library, and aims to bring the robustness and ease of use of Rust to the world of large language models
  • This project depends on Rust v1.65.0 or above and a modern C toolchain
  • The llm library is engineered to take advantage of hardware accelerators such as cuda and metal for optimized performance
  • To enable llm to harness these accelerators, some preliminary configuration steps are necessary
  • The easiest way to get started with llm-cli is to download a pre-built executable from a released version of llm
  • By default, llm builds with support for remotely fetching the tokenizer from Hugging Face's model hub

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow llm

llm Web Site

Other Useful Business Software
$300 Free Credits to Build on Google Cloud Icon
$300 Free Credits to Build on Google Cloud

New customers can spin up VMs, build with AI, and query data at no cost.

Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of llm!

Additional Project Details

Programming Language

Rust

Related Categories

Rust Large Language Models (LLM)

Registered

2023-08-21