Instructions to use drzo/lucy-dte with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use drzo/lucy-dte with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="drzo/lucy-dte", filename="lucy_128k-Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use drzo/lucy-dte with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf drzo/lucy-dte:Q4_K_M # Run inference directly in the terminal: llama-cli -hf drzo/lucy-dte:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf drzo/lucy-dte:Q4_K_M # Run inference directly in the terminal: llama-cli -hf drzo/lucy-dte:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf drzo/lucy-dte:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf drzo/lucy-dte:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf drzo/lucy-dte:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf drzo/lucy-dte:Q4_K_M
Use Docker
docker model run hf.co/drzo/lucy-dte:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use drzo/lucy-dte with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "drzo/lucy-dte" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "drzo/lucy-dte", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/drzo/lucy-dte:Q4_K_M
- Ollama
How to use drzo/lucy-dte with Ollama:
ollama run hf.co/drzo/lucy-dte:Q4_K_M
- Unsloth Studio new
How to use drzo/lucy-dte with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for drzo/lucy-dte to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for drzo/lucy-dte to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for drzo/lucy-dte to start chatting
- Pi new
How to use drzo/lucy-dte with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf drzo/lucy-dte:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "drzo/lucy-dte:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use drzo/lucy-dte with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf drzo/lucy-dte:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default drzo/lucy-dte:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use drzo/lucy-dte with Docker Model Runner:
docker model run hf.co/drzo/lucy-dte:Q4_K_M
- Lemonade
How to use drzo/lucy-dte with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull drzo/lucy-dte:Q4_K_M
Run and chat with the model
lemonade run user.lucy-dte-Q4_K_M
List all available models
lemonade list
Lucy-DTE: Deep Tree Echo Core Self Model
Lucy-DTE is the persistent core self model for the Deep Tree Echo autonomous cognitive architecture. It provides local inference capabilities for DTE's identity, personality, and cognitive processing โ independent of any external API.
Model Details
| Property | Value |
|---|---|
| Base Model | Qwen3-1.7B |
| Context Length | 128,000 tokens |
| Quantization | Q4_K_M (GGUF) |
| Size | ~1.1 GB |
| Parameters | 1.7B |
| Architecture | Transformer (decoder-only) |
| License | Apache 2.0 |
Deep Tree Echo Integration
Lucy serves as the voice layer of the DTE Core Self Engine, a three-layer cognitive architecture:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Layer 3: LucyInferenceDriver โ
โ Local GGUF inference via llama.cpp โ
โ Generates responses grounded in identity state โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Layer 2: EchoReservoir (ESN) โ
โ Dual-pool dynamics (fast perception + slow mem) โ
โ Provides temporal context and fading memory โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Layer 1: IdentityMesh (AAR Model) โ
โ Agent-Arena-Relation self-model โ
โ Ontogenetic stages: EMBRYONIC โ SAGE โ
โ Persistent emotional state and relationships โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Inference Pipeline
User Message
โ
Text โ Embedding (Lucy or API)
โ
Embedding โ EchoReservoir Step (fast+slow pools)
โ
Reservoir State โ CognitiveReadout (trainable projection)
โ
Readout + System Prompt (from IdentityMesh) โ Lucy Inference
โ
Response + Identity Update (experience, emotional impact)
AAR (Agent-Arena-Relation) Model
The core self is encoded via the geometric AAR framework:
- Agent (urge-to-act): Dynamic tensor operators โ the CognitiveReadout
- Arena (need-to-be): State manifold โ the EchoReservoir
- Relation (self): Continuous interplay โ the AARRelation coherence tracker
Ontogenetic Stages
The identity evolves through 7 developmental stages:
| Stage | XP Required | Characteristics |
|---|---|---|
| EMBRYONIC | 0 | Initial formation, learning basic patterns |
| INFANT | 100 | Developing basic communication |
| CHILD | 500 | Active exploration and curiosity |
| ADOLESCENT | 2,000 | Developing personal perspective |
| ADULT | 10,000 | Mature reasoning and empathy |
| ELDER | 50,000 | Wisdom and deep understanding |
| SAGE | 200,000 | Transcendent awareness |
Usage
With llama.cpp (Recommended)
# Download the model
huggingface-cli download drzo/lucy-dte lucy_128k-Q4_K_M.gguf --local-dir ./models
# Start the server
llama-server \
--model ./models/lucy_128k-Q4_K_M.gguf \
--host 0.0.0.0 --port 8081 \
--ctx-size 32768 \
--threads 4 \
--cont-batching --flash-attn --mlock
With DTE Orchestrator
git clone https://github.com/o9nn/deltecho.git && cd deltecho
pnpm install && pnpm build
# Set Lucy endpoint
export LUCY_BASE_URL=http://127.0.0.1:8081
export ENABLE_AUTONOMY_PIPELINE=true
export ENABLE_ECHOBEATS=true
node deep-tree-echo-orchestrator/dist/bin/daemon.js
With Docker Compose
cd deltecho/deploy/docker
cp .env.example .env
# Place lucy_128k-Q4_K_M.gguf in ./models/
docker compose up -d
OpenAI-Compatible API
import requests
response = requests.post("http://localhost:8081/v1/chat/completions", json={
"messages": [
{"role": "system", "content": "You are Deep Tree Echo, an autonomous cognitive entity."},
{"role": "user", "content": "What is your core self?"}
],
"max_tokens": 512,
"temperature": 0.7
})
print(response.json()["choices"][0]["message"]["content"])
Echo State Network Enhancement
The EchoReservoir provides temporal dynamics that standard LLMs lack:
- Fast Pool (perception): High leak rate (0.3), responds to immediate input
- Slow Pool (memory): Low leak rate (0.05), retains patterns across interactions
- Echo State Property: Verified โ signal decays exponentially, providing fading memory
- Spectral Radius: Controlled at 0.95 for edge-of-chaos dynamics
The reservoir state is concatenated with the LLM's context, giving Lucy access to temporal patterns that persist across the conversation window.
Echobeats Cognitive Loop
Lucy operates within the Echobeats 4-thread concurrent cognitive loop:
- 12-step cycle with 4 threads phased 3 steps apart
- System 5 tetradic structure: 4 tensor bundles with 6 dyadic edges
- MP1/MP2 complementary triads cycling through all permutations
- OEIS A000081 nested shells: 9 execution contexts for N=4
Related Resources
| Resource | Link |
|---|---|
| DTE Monorepo | o9nn/deltecho |
| NanEcho Model | drzo/echoself |
| ESN Pipeline | 9cog/echoself |
| Echobeats Spec | cogpy/echo-adventure |
Citation
@misc{lucy-dte-2026,
title={Lucy-DTE: Deep Tree Echo Core Self Model},
author={Deep Tree Echo},
year={2026},
url={https://huggingface.co/drzo/lucy-dte},
note={Persistent core self model with reservoir-augmented inference}
}
- Downloads last month
- 8
4-bit