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
Simplify Purchasing For Your Business Icon
Simplify Purchasing For Your Business

Manage what you buy and how you buy it with Order.co, so you have control over your time and money spent.

Simplify every aspect of buying for your business in Order.co. From sourcing products to scaling purchasing across locations to automating your AP and approvals workstreams, Order.co is the platform of choice for growing businesses.
Learn More
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