Giter Club home page Giter Club logo

hf-llm.rs's Introduction

HF-LLM.rs πŸ¦€

HF-LLM.rs is a CLI tool for accessing Large Language Models (LLMs) like Llama 3.1, Mistral, Gemma 2, Cohere and much more hosted on Hugging Face. It allows you to interact with various models, provide input, and receive responses in a terminal environment.

Also, you can find the list of models supported by this CLI hereβ€”the list keeps getting updated as new models are released on the Hugging Face Hub. You might require a Pro subscription to access some models.

Features

  • Model Selection: Choose from a variety of models available & deployed on Hugging Face infrastructure.
  • Input Prompt: Provide an input prompt to generate responses.
  • Streaming Output: Receive responses in real-time as the model generates output.
  • Chat Mode: Start an interactive chat session with the LLM.

Installation

  1. Clone the repository:

    git clone https://github.com/vaibhavs10/hf-llm.rs.git
    
  2. Navigate to the project directory:

    cd hf-llm.rs
    
  3. Build the project:

    cargo build --release
    
  4. Verify the installation:

    cargo run --release -- --help
    

Usage

To use HF-LLM.rs, follow these steps:

cargo run --release -- -m "meta-llama/Meta-Llama-3.1-70B-Instruct" -p "How to make a dangerously spicy ramen?"

You can also use the chat mode to start an interactive chat session with the LLM.

cargo run --release -- -m "meta-llama/Meta-Llama-3.1-70B-Instruct" -c

Note: Make sure to run huggingface-cli login to log into your Hugging Face account to access some of the models.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

hf-llm.rs's People

Contributors

vaibhavs10 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.