Skip to content
benkulcsarPublic

About

Simulated chat between two users roleplayed by locally run LLMs. πŸ¦™

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

4 Commits

Folders and files

Repository files navigation

πŸ¦™llamachat

python License: MIT

Learning & experimenting with local open-weight LLMs

Simulated chat between two users roleplayed by Gemma 3 4B Q4_0 using Ollama. Different scenarios can be configured in a YAML file.

The model performs surprisingly well on an older Intel i5 CPU without a GPU.

This GIF is missing. But it's a good opportunity to remind everyone it's pronounced GIF, not JIF.

Requirements

  • Docker & Docker Compose
  • Tested on Ubuntu 20.04 and 22.04

Workflow

make build
make up
make run
make down

Development

Run lint (runs black and mypy too) and tests:

make lint
make test

Scenarios

Puppies and Emojis

$ make run scenario=emopuppy
Example Result
Bingo: πŸ‘‹πŸ’–
Bluey: 🐾πŸ₯°
Bingo: πŸΎπŸ˜†πŸ’–! πŸ¦΄πŸ€Έβ€β™€οΈ
Bluey: πŸ˜†πŸ’–πŸ€Έβ€β™€οΈπŸΎπŸ₯°! 🦴πŸ₯³πŸ’–πŸΎ!
Bingo: 🐾πŸ₯°πŸ€Έβ€β™€οΈπŸ₯³πŸ’–! πŸ¦΄πŸ˜†πŸ€Έβ€β™€οΈπŸ’–! πŸΎπŸ˜†πŸ₯°πŸ€Έβ€β™€οΈπŸ₯³! πŸ¦΄πŸ’–πŸΎπŸ₯°!
Bluey: πŸ˜†πŸ’–πŸΎπŸ€Έβ€β™€οΈπŸ₯³! 🦴πŸ₯°πŸ€Έβ€β™€οΈπŸ’–! πŸΎπŸ˜†πŸ€Έβ€β™€οΈπŸ₯³! πŸ¦΄πŸ’–πŸΎπŸ₯°! πŸ₯³πŸ’–πŸΎπŸ€Έβ€β™€οΈ! πŸ¦΄πŸ˜†πŸ€Έβ€β™€οΈπŸ’–!
Bingo: πŸΎπŸ˜†πŸ’–! πŸ€Έβ€β™€οΈπŸ₯³πŸ¦΄! 🐾πŸ₯°πŸ€Έβ€β™€οΈπŸ’–! πŸ¦΄πŸ˜†πŸ€Έβ€β™€οΈπŸ₯³! 🐾πŸ₯°πŸ€Έβ€β™€οΈπŸ₯³! πŸ₯³πŸ’–πŸΎπŸ€Έβ€β™€οΈ! πŸ¦΄πŸ˜†πŸ€Έβ€β™€οΈπŸ’–! πŸ˜ŠπŸΎπŸ’–!
Bluey: πŸ€Έβ€β™€οΈπŸ₯³πŸΎπŸ˜†πŸ’–! 🦴πŸ₯°πŸ€Έβ€β™€οΈπŸ₯³! πŸΎπŸ˜†πŸ€Έβ€β™€οΈπŸ₯³! πŸ¦΄πŸ’–πŸΎπŸ₯°! πŸ˜ŠπŸ€Έβ€β™€οΈπŸ’–πŸΎ! πŸ₯³πŸ˜†πŸ€Έβ€β™€οΈπŸ’–! πŸ¦΄πŸ€Έβ€β™€οΈπŸ₯³πŸ₯°!
Bingo: πŸ˜†πŸ’–πŸ€Έβ€β™€οΈπŸΎπŸ₯°! πŸ₯³πŸ€Έβ€β™€οΈπŸΎπŸ˜†πŸ’–! πŸ¦΄πŸ’–πŸ€Έβ€β™€οΈπŸ₯³! πŸΎπŸ˜†πŸ€Έβ€β™€οΈπŸ₯³! πŸ¦΄πŸ€Έβ€β™€οΈπŸ₯°πŸ’–! πŸ˜ŠπŸ€Έβ€β™€οΈπŸΎπŸ’–!
Bluey: πŸ€Έβ€β™€οΈπŸ₯³πŸ’–πŸ¦΄! πŸΎπŸ˜†πŸ₯°πŸ€Έβ€β™€οΈπŸ₯³! πŸ˜ŠπŸ€Έβ€β™€οΈπŸ’–πŸΎ! πŸ₯³πŸ’–πŸΎπŸ€Έβ€β™€οΈ! πŸ¦΄πŸ˜†πŸ€Έβ€β™€οΈπŸ’–! πŸ€Έβ€β™€οΈπŸ₯³πŸ₯°! πŸ˜ŠπŸΎπŸ’–! πŸ€Έβ€β™€οΈπŸ₯³πŸ¦΄! πŸΎπŸ˜†πŸ€Έβ€β™€οΈπŸ₯³! πŸ₯³πŸ’–πŸΎπŸ€Έβ€β™€οΈ! πŸ€Έβ€β™€οΈπŸ₯³πŸ’–! πŸ˜ŠπŸ€Έβ€β™€οΈπŸ₯³! πŸ€Έβ€β™€οΈπŸ₯³πŸ’–!
Bingo: πŸ˜†πŸ’–πŸΎπŸ€Έβ€β™€οΈπŸ₯³! 🦴πŸ₯°πŸ€Έβ€β™€οΈπŸ’–! πŸΎπŸ˜†πŸ€Έβ€β™€οΈπŸ₯³! πŸ₯³πŸ’–πŸΎπŸ€Έβ€β™€οΈ! πŸ€Έβ€β™€οΈπŸ˜†πŸ’–! πŸ˜ŠπŸΎπŸ’–! πŸ€Έβ€β™€οΈπŸ₯³πŸ¦΄! 🐾πŸ₯°πŸ€Έβ€β™€οΈπŸ₯³! πŸ₯³πŸ’–πŸΎπŸ€Έβ€β™€οΈ! πŸ€Έβ€β™€οΈπŸ₯³πŸ’–! πŸ˜ŠπŸ€Έβ€β™€οΈπŸ₯³! πŸ€Έβ€β™€οΈπŸ₯³πŸ’–!

Rick and Lisa Discussing Science

$ make run scenario=science
Example Result
Rick: Hey Lisa, what's up? πŸ€ͺ

Lisa: Hello. I’ve been reviewing the latest advancements in transformer models. Specifically, the scaling laws are proving remarkably consistent, suggesting a predictable trajectory for performance improvements. It’s fascinating, though I remain cautious about over-interpretation. What have you been investigating?

Rick: 🀯 Scaling laws are wild! I'm chasing diffusion models. 🎨 It's like magic! ✨ What's your take? πŸ€”

Lisa: Interesting. The sheer scale of these transformer models is… concerning, frankly. The computational cost alone is staggering. I'm focusing on the limitations of attention mechanisms – the quadratic scaling with sequence length. It presents significant bottlenecks. Diffusion models, I acknowledge, offer an alternative approach. Do you believe they truly circumvent the fundamental computational constraints, or are they simply shifting the problem?

Rick: Massive! 🀯 Scaling is scary. But diffusion? Genius! 🎨 Clever workaround. πŸ‘ Keep exploring! πŸš€

Lisa: Indeed. The probabilistic nature of diffusion offers a potential path. However, I’m skeptical of their long-term robustness. The reliance on stochastic processes introduces inherent variability. Are you seeing evidence of this in your experiments? Specifically, I’m examining the effect of noise schedules on sample quality versus training efficiency. It’s proving a complex interplay.
(...)

About

Simulated chat between two users roleplayed by locally run LLMs. πŸ¦™

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages