Code Monkey home page Code Monkey logo

fireside-chat's Introduction

Fireside Chat

(prev. "Candle Chat")

An LLM interface implemented in pure Rust using HuggingFace/Candle over Axum Websockets, an SQLite Database, and a Leptos (Wasm) frontend packaged with Tauri!

Watch the introduction video: Watch the video

Goals

This project is designed for single and multi-user chat with many Large Language Models (LLMs).

Features

  • Local or Remote Inference Backend
  • Local SQLite Database

Setup / Operation

You can configure your model and default inference settings by putting files in your Config Directory. This is automatically configured when you choose a model in the frontend, but you can manually add models if you like.

Example:

# config_model.yaml
repo_id: DanielClough/Candle_Puffin-Phi-v2
q_lvl: q2k
revision: main
tokenizer_file: null
weight_file: null
quantized: true
cpu: false
use_flash_attn: false
template: ShareGPT
# config_inference.yaml
temperature: 
top_p: 
seed: 299792458
sample_len: 150
repeat_penalty: 1.3
repeat_last_n: 150
load_context: false
role: 

If load_context: true then you can add (small) in <Config Directory>/fireside-chat/context/. Large files may cause Out Of Memory errors.

Linux

Config Directory is $XDG_CONFIG_HOME or $HOME/.config

macOS

Config Directory is $HOME/Library/Application Support

Windows

Config Directory is {FOLDERID_RoamingAppData}

Development

You can compile with environment variable the FIRESIDE_BACKEND_URL, and FIRESIDE_DATABASE_URL to call a server other than localhost.

This can be configured in tauri.conf.json, or in your system environment.

# eg. for Linux
export FIRESIDE_BACKEND_URL=192.168.1.6 && trunk serve

Limitations

  • I am not testing in Mac or Windows environments, so while everything may work fine I could use some help in order to ensure correctness on those systems.

fireside-chat's People

Contributors

danielclough 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.