Skip to content

Mamba-Chat: A chat LLM based on the state-space model architecture ๐Ÿ

License

Notifications You must be signed in to change notification settings

ftgreat/mamba-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Mamba-Chat ๐Ÿ

Mamba-Chat is the first chat language model based on a state-space model architecture, not a transformer.

The model is based on Albert Gu's and Tri Dao's work Mamba: Linear-Time Sequence Modeling with Selective State Spaces as well as their model implementation. This repository provides training / fine-tuning code for the model based on some modifications of the Huggingface Trainer class.

To learn more, you can:

  • Take a look at the model on Huggingface ๐Ÿค—
  • Join the Haven Community Discord ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘

## Run Mamba-Chat

We provide code that lets you run inference on mamba-chat as well as our fine-tuning code. Here are the steps to get started:

Clone repository and install dependencies:

git clone https://github.com/havenhq/mamba-chat.git

cd mamba-chat

pip install -r requirements.txt

Talk to Mamba-Chat:

python chat.py

Fine-Tune Mamba (the base model) on a subset of the Ultrachat dataset:

python train_mamba.py

About

Mamba-Chat: A chat LLM based on the state-space model architecture ๐Ÿ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%