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
|
|
|
|
|
|
|
|
|
|
| Modell | Größe | Typ | IFEval | Lädt | FILE:-Pattern |
|
|
|
|
|
|--------|-------|-----|--------|------|---------------|
|
|
|
|
|
| **LFM2.5-8B-A1B** ⭐ | ~5,4 GB | MoE 1,5B aktiv | **91,84** | ? | ✅ Tool-Calling |
|
|
|
|
|
| **Gemma 3 4B IT** ⭐ | 2,4 GB | Dicht | **90,2** | ~3s | ✅ Getestet |
|
|
|
|
|
| **Phi-4-mini** ⭐ | 2,5 GB | Dicht | ~88 | ~3s | ✅ Getestet |
|
|
|
|
|
| **LFM2-8B-A1B** | 4,5 GB | MoE 1,5B aktiv | 79,44 | ? | ✅ (erwartet) |
|
|
|
|
|
| **Qwen3.5-4B** | 3,0 GB | Dicht | ~85 | ~47s | ✅ Getestet |
|
|
|
|
|
| **Gemma-4-E2B** | 2,9 GB | Dicht | ~80 | ~30s | ? |
|
|
|
|
|
| **Qwen2.5-1.5B** (klein) | 1,0 GB | Dicht | ~70 | ~2s | ❌ Zu schwach |
|
2026-07-09 10:00:25 +02:00
|
|
|
|
2026-07-09 11:43:45 +02:00
|
|
|
⭐ = Neu 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.
|