# Artificial intelligence training in low memory

Soup is a Python library that allows fine-tuning of large language models via a single YAML file. It can train models with 8 billion parameters using the layer streaming method on laptop graphics processors with 4 GB memory.

- ★ 5,332
- Python
- GitHub Trending · 2026-08-16

## What you get
- You can train models with 8 billion parameters on laptops with 4 GB graphics memory.
- With the layer flow method, you do not have to deal with complex installations by overcoming hardware restrictions.
- You can manage the entire training process through a single configuration file.

## Installation
**Basic setup**

```
pip install "soup-cli[train]"
```

**Setup with all features**

```
pip install "soup-cli[all]"
```


## Running it
**Start training**

```
soup init --template chat
soup train
```


## If you don't write code
I want to train an artificial intelligence model with 8 billion parameters using the Soup library on my computer with 4 GB graphics memory. Help me create a YAML configuration file that enables layer streaming and uses 4-bit quantization. Prepare the content of the soup.yaml file required to start the training process, and then explain step by step how to start the training using this file.

## Related dictionary terms

## Links
- GitHub repository →
- Read in Turkish →

---
Source: TreScout Discover · https://trescout.com/en/discover/soup/
