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
Build Securely on AWS with Proven Frameworks Icon
Build Securely on AWS with Proven Frameworks

Lay a foundation for success with Tested Reference Architectures developed by Fortinet’s experts. Learn more in this white paper.

Moving to the cloud brings new challenges. How can you manage a larger attack surface while ensuring great network performance? Turn to Fortinet’s Tested Reference Architectures, blueprints for designing and securing cloud environments built by cybersecurity experts. Learn more and explore use cases in this white paper.
Download Now
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