2026-07-09 11:43:45 +02:00
|
|
|
# 🦙 MiniLlama — Portable LLM Chat & API-Server
|
2026-07-09 10:00:25 +02:00
|
|
|
|
2026-07-09 11:43:45 +02:00
|
|
|
**MiniLlama** ist ein portabler LLM-Stack, der direkt vom USB-Stick läuft — ohne Installation, auf **Windows und Linux**.
|
|
|
|
|
|
|
|
|
|
Enthält: Chat, API-Server (OpenAI-kompatibel), CrowdCode CLI für Dateioperationen + Wiki-Modus.
|
2026-07-09 10:00:25 +02:00
|
|
|
|
|
|
|
|
## Schnellstart
|
|
|
|
|
|
2026-07-09 11:43:45 +02:00
|
|
|
### 💬 Chat (direkt)
|
|
|
|
|
```bash
|
|
|
|
|
./start.sh # Linux
|
|
|
|
|
start.bat # Windows
|
|
|
|
|
```
|
|
|
|
|
Modell aus dem Menü wählen — loschatten.
|
|
|
|
|
|
|
|
|
|
### 🔌 API-Server (für CrowdCode, andere Tools)
|
|
|
|
|
```bash
|
|
|
|
|
./start-server.sh # → http://127.0.0.1:8080/v1
|
|
|
|
|
```
|
2026-07-09 10:00:25 +02:00
|
|
|
|
2026-07-09 11:43:45 +02:00
|
|
|
### 🤖 CrowdCode CLI (Dateioperationen + Chat)
|
|
|
|
|
```bash
|
|
|
|
|
./crowdcode.sh # Linux
|
|
|
|
|
crowdcode.bat # Windows
|
|
|
|
|
```
|
|
|
|
|
Startet Server automatisch bei Bedarf. Shell-Kommandos (`pwd`, `ls`, `git`) werden direkt ausgeführt.
|
2026-07-09 10:00:25 +02:00
|
|
|
|
|
|
|
|
## Projektstruktur
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
MiniLlama/
|
2026-07-09 11:43:45 +02:00
|
|
|
├── start.sh ← Chat (Linux)
|
|
|
|
|
├── start.bat ← Chat (Windows)
|
|
|
|
|
├── start-server.sh ← API-Server
|
|
|
|
|
├── crowdcode.sh ← CrowdCode CLI (Linux)
|
|
|
|
|
├── crowdcode.bat ← CrowdCode CLI (Windows)
|
|
|
|
|
├── deploy.sh ← Auf USB-Stick exportieren
|
|
|
|
|
├── cli/
|
|
|
|
|
│ └── crowdcode.js ← CrowdCode Node.js CLI (480 Zeilen)
|
2026-07-09 10:00:25 +02:00
|
|
|
├── bin/
|
2026-07-09 11:43:45 +02:00
|
|
|
│ ├── linux/ ← llama.cpp (b9936) für Linux x86_64
|
|
|
|
|
│ └── win/ ← llama.cpp für Windows x86_64
|
|
|
|
|
├── models/ ← GGUF-Modelle (Symlinks auf Stick)
|
2026-07-09 10:00:25 +02:00
|
|
|
└── README.md
|
|
|
|
|
```
|
|
|
|
|
|
2026-07-09 11:43:45 +02:00
|
|
|
## Verfügbare Modelle
|
|
|
|
|
|
2026-07-10 09:42:29 +02:00
|
|
|
> Ausführliche Testergebnisse in [MODELS.md](MODELS.md) — getestet auf Ryzen 5 2500U (14 GB RAM, CPU-only)
|
2026-07-09 10:00:25 +02:00
|
|
|
|
2026-07-10 09:42:29 +02:00
|
|
|
| Modell | Größe | Speed | FILE:-Pattern | Wiki-Qualität | Status |
|
|
|
|
|
|--------|-------|-------|---------------|---------------|--------|
|
|
|
|
|
| **LFM2-24B-A2B-Q3_K_XL** 🏆 | 11 GB | 11,4 t/s | ⚠️ Manuell | ✅ Sehr gut (tief) | Qualitätssieger (langsam) |
|
|
|
|
|
| **LFM2-8B-A1B-UD-Q4_K_XL** 🏆 | 4,5 GB | 16,2 t/s | ✅ Immer | ✅ Sehr gut | **Testsieger/Default** |
|
|
|
|
|
| **LFM2.5-8B-A1B-Q4_K_M** ⭐ | 4,9 GB | ? | ? | ? | Noch zu testen |
|
|
|
|
|
| **Gemma 3 4B IT** ⭐ | 2,4 GB | ~25 t/s | ✅ | ✅ Gut | Leichtes Fallback |
|
|
|
|
|
| **Phi-4-mini** ⭐ | 2,5 GB | ~22 t/s | ✅ | ✅ Gut | Leichtes Fallback |
|
|
|
|
|
| **Qwen3.5-4B** | 3,0 GB | ~18 t/s | ✅ | ✅ Gut | Alternativ |
|
|
|
|
|
| **LFM2-8B-A1B-IQ4_XS** | 4,2 GB | 16,4 t/s | ❌ Fehlt | ⚠️ Mittel | **Nicht empfohlen** |
|
|
|
|
|
| **LFM2-8B-A1B-Q3_K_XL** | 3,8 GB | 15,3 t/s | ❌ Fehlt oft | ⚠️ Schwach | **Nicht empfohlen** |
|
|
|
|
|
| **Qwen2.5-1.5B** | 1,0 GB | ~30 t/s | ❌ | ❌ Zu schwach | Nur Notfall |
|
|
|
|
|
| **MiniCPM5-1B** | 688 MB | - | ❌ | ❌ Inkompatibel | ❌ |
|
|
|
|
|
|
|
|
|
|
⭐ = Noch zu testen · 🏆 = Getestet und empfohlen (Juli 2026)
|
2026-07-09 10:00:25 +02:00
|
|
|
|
2026-07-09 11:43:45 +02:00
|
|
|
## CrowdCode CLI Features
|
2026-07-09 10:00:25 +02:00
|
|
|
|
2026-07-09 11:43:45 +02:00
|
|
|
| Funktion | Beschreibung |
|
|
|
|
|
|----------|-------------|
|
|
|
|
|
| `@datei.py` | Dateiinhalt lesen |
|
|
|
|
|
| `@verz/` | Verzeichnis auflisten |
|
|
|
|
|
| `@verz/**` | Rekursiver Dateibaum |
|
|
|
|
|
| `@?begriff` | Grep-Suche |
|
|
|
|
|
| `FILE: pfad` + Codeblock | Datei schreiben (vom LLM) |
|
|
|
|
|
| `DIR: pfad` | Verzeichnis erstellen (vom LLM) |
|
|
|
|
|
| `EDIT: pfad` + `---OLD`/`---NEW` | Gezielte Änderung (vom LLM) |
|
|
|
|
|
| `` bash `` | Shell ausführen (mit Bestätigung) |
|
|
|
|
|
| `:m` | Multiline-Eingabe |
|
|
|
|
|
| `:h` | Hilfe |
|
|
|
|
|
| `:q` | Beenden |
|
2026-07-09 10:00:25 +02:00
|
|
|
|
2026-07-09 11:43:45 +02:00
|
|
|
Shell-Kommandos (`pwd`, `ls`, `git`, `pip`, `curl`...) werden direkt ausgeführt, nicht ans LLM geschickt.
|
2026-07-09 10:00:25 +02:00
|
|
|
|
2026-07-09 11:43:45 +02:00
|
|
|
## Deployment auf USB-Stick
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
./deploy.sh /pfad/zum/stick/MiniLlama
|
|
|
|
|
```
|
|
|
|
|
Kopiert alles inklusive Modelle, löst Symlinks auf.
|
|
|
|
|
|
|
|
|
|
## Modelle auf dem Stick
|
|
|
|
|
|
|
|
|
|
Die Modelle liegen physikalisch auf dem Stick unter:
|
|
|
|
|
```
|
|
|
|
|
/media/xray/llama/llama/models/*.gguf
|
|
|
|
|
```
|
|
|
|
|
Im MiniLlama-Verzeichnis sind es Symlinks. Für Deployment auf anderen Stick `deploy.sh` nutzen.
|
2026-07-09 10:00:25 +02:00
|
|
|
|
2026-07-09 11:43:45 +02:00
|
|
|
## Wartung
|
2026-07-09 10:00:25 +02:00
|
|
|
|
2026-07-09 11:43:45 +02:00
|
|
|
### Binaries aktualisieren
|
|
|
|
|
Neues Release von https://github.com/ggml-org/llama.cpp/releases:
|
|
|
|
|
- Linux: `llama-bXXXX-bin-ubuntu-x64.tar.gz` → `bin/linux/`
|
|
|
|
|
- Windows: `llama-bXXXX-bin-win-cpu-x64.zip` → `bin/win/`
|
2026-07-09 10:00:25 +02:00
|
|
|
|
2026-07-09 11:43:45 +02:00
|
|
|
### Modell hinzufügen
|
|
|
|
|
GGUF-Datei in `models/` ablegen — wird automatisch erkannt.
|