An open API service indexing awesome lists of open source software.

https://github.com/endlessreform/csm_mlx


https://github.com/endlessreform/csm_mlx

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Sesame CSM 1B MLX port

Port of Sesame's [CSM](https://github.com/SesameAILabs/csm) model to [MLX](https://github.com/ml-explore/mlx) for use on Apple Silicon.

The project goal is realtime streaming inference on a MacBook.

## Installation

Clone this repo.

Get [uv](https://docs.astral.sh/uv/getting-started/installation/) if you haven't already. Then:

```bash
uv sync
```

Run the WebUI with:

```bash
uv run webui/app.py
```

Q8 quantization is available for a ~60% speedup at some loss of quality:

```bash
uv run webui/app.py --quantize q8
```

For procedural examples, check out `example.ipynb`

## FAQ

If `uv sync` fails due to sentencepiece error, run:

```bash
brew install cmake
```

## Roadmap

- [x] Safetensors conversion
- [x] Core modeling and entry point
- [x] Gradio UI (blocking, streaming will be supported below)
- [x] Streaming output (for model)
- [ ] FastRTC speech-to-speech webui
- [ ] Perf improvements
- [ ] PyPI library