Skip to main content

Private AI with real-time maritime intelligence โ€” runs entirely on your hardware

Project description


language:

  • en license: mit tags:
  • llama
  • mlx
  • vllm
  • 4-bit
  • local-ai
  • private
  • maritime
  • vessel-tracking
  • osint library_name: mlx pipeline_tag: text-generation base_model: mistralai/Ministral-8B-Instruct-2410

๐Ÿง  Marziel AI โ€” v0.9.0

Private Local Intelligence โ€” runs entirely on your hardware.

One command to run your own AI โ€” with Hybrid RAG and TurboQuant KV cache.

Marziel AI is a locally-powered AI assistant with hybrid RAG document retrieval, TurboQuant 3-bit KV cache compression, real-time maritime intelligence, web search, browser automation, GitHub analysis, URL reading, code generation, and autonomous agent capabilities โ€” all without sending a single byte to the cloud.

Quick Install

pip install marziel
marziel serve

That's it. The right engine is auto-installed for your hardware. The first run downloads the model from Hugging Face. Everything is automatic.

Changelog

v0.9.0

  • Hybrid RAG System โ€” upload PDFs/docs, get answers with citations using dual retrieval:
    • PageIndex โ€” reasoning-based tree search (LLM navigates document structure)
    • Vector Search โ€” fastembed BGE-small cosine similarity (zero-config SQLite store)
    • Score fusion: 60% reasoning + 40% vector for best accuracy
  • TurboQuant KV Cache โ€” 3-bit KV cache quantization with PolarQuant + QJL error correction:
    • 3x memory reduction with 0.91+ cosine similarity
    • Works on both GGUF (NVIDIA/CPU) and MLX (Apple Silicon)
    • SSD offloading for cold KV cache layers
  • oMLX Engine โ€” Apple Silicon inference upgraded to oMLX with tiered KV cache (RAM + SSD), continuous batching, and prefix sharing
  • RAG API โ€” POST /api/rag/upload, POST /api/rag/query, GET /api/rag/documents
  • TurboQuant API โ€” GET /api/turboquant/status, POST /api/turboquant/benchmark
  • Auto-context injection โ€” uploaded documents automatically augment chat responses
  • Removed Ollama fallback โ€” Marziel uses its own engines exclusively
  • Added numpy, fastembed, PyMuPDF to core dependencies

v0.8.0

  • v6 Model โ€” upgraded to Ministral-8B base with full fine-tune + LoRA merge
  • Professional code quality โ€” typed Python, async patterns, SQL builders, Result types
  • Web scraping โ€” Playwright, BeautifulSoup, rate limiting, PostgreSQL upserts, robots.txt
  • Agentic tool use โ€” multi-step reasoning, file analysis, autonomous task execution
  • GGUF Q4_K_M (4.8GB) + MLX 4-bit (4.5GB) on HuggingFace
  • HuggingFace model card with usage for GGUF, MLX, and safetensors
  • Install auto-detects OS and installs the correct backend

v0.7.0

  • v5 Model โ€” fine-tuned on 2,061 samples with new capabilities
  • Tool use โ€” web search, URL reading, code execution patterns
  • Advanced code โ€” decorators, REST APIs, TypeScript, CSS Grid/Flexbox
  • Math & reasoning โ€” calculus, combinatorics, Big O, statistics
  • Maritime expertise โ€” EEXI/CII, ballast water, P&I, charter types, chokepoints
  • Training: eval loss 0.4363, token accuracy 88.2%

v0.6.0

  • Auto-install semantic router โ€” semantic-router + fastembed installed automatically on first marziel serve
  • No more pip install marziel[router] โ€” everything works out of the box

v0.5.9

  • Semantic routing โ€” intent detection via vector similarity (~5ms), replaces brittle keyword matching
  • 8 intent routes โ€” chat, web_search, agent, browser, maritime, code, github, url
  • fastembed BGE-small โ€” local embeddings, no API calls, 95% routing accuracy
  • Graceful degradation โ€” falls back to keywords if semantic-router not installed
  • Install: pip install marziel[router] for semantic routing

v0.5.8

  • 3-tier inference โ€” Apple Silicon โ†’ MLX, NVIDIA GPU โ†’ vLLM, CPU โ†’ llama.cpp
  • llama.cpp for CPU โ€” uses same 4.9GB GGUF file as GPU, no more vLLM CPU format issues
  • Auto-install engines โ€” mlx-lm, vllm, or llama-cpp-python[server] detected + installed automatically
  • Chat-first UI โ€” opens directly to chat interface (no landing page)
  • Python 3.14 support โ€” tested on 3.10โ€“3.14
  • Works on any Linux โ€” Arch, Fedora, RHEL, Ubuntu, Debian + macOS + WSL

v0.5.7

  • CPU uses safetensors โ€” vLLM CPU loads model.safetensors from HF (GGUF not supported on CPU)
  • GPU uses GGUF โ€” faster local loading with quantized model
  • Fixed tokenizer โ€” PreTrainedTokenizerFast in HF tokenizer_config.json

v0.5.6

  • Clean install logic โ€” only installs vLLM if missing; detects GPU โ†’ CUDA, no GPU โ†’ CPU wheel
  • No forced uninstalls โ€” respects existing user environment

v0.5.5

  • Tokenizer fix โ€” --trust-remote-code for custom tokenizer loading
  • Clean CPU install โ€” auto-uninstalls CUDA vllm/torch before installing CPU wheel

v0.5.4

  • vLLM CPU pre-built wheel โ€” auto-installs vllm+cpu from GitHub releases on CPU-only machines
  • GPU auto-detects โ€” installs standard CUDA vLLM when NVIDIA GPU present
  • CPU optimized โ€” bfloat16 dtype, VLLM_CPU_KVCACHE_SPACE, TCMalloc, Intel OpenMP
  • 3-minute CPU timeout โ€” 180s for CPU model loading

v0.5.3

  • Fixed CPU device detection โ€” set VLLM_TARGET_DEVICE=cpu for machines without GPU
  • vLLM debug logging โ€” errors now saved to ~/.marziel/vllm.log

v0.5.2

  • Prefix caching โ€” system prompt KV cache reused across requests (faster responses)
  • 120s CPU timeout โ€” longer startup window for CPU-only machines loading 4.6GB model
  • All NVIDIA GPUs supported (GTX, RTX, Tesla, A100) โ€” auto-detected via nvidia-smi

v0.5.1

  • vLLM auto-installs โ€” no more manual pip install vllm, it's a declared dependency
  • 8GB RAM optimized โ€” reduced context to 2048 tokens, eager execution, swap-space fallback
  • Engine routing โ€” Apple Silicon โ†’ MLX, everything else โ†’ vLLM (CPU & GPU)

v0.5.0

  • Unified architecture: MLX (Apple Silicon) + vLLM (all other platforms)
  • GGUF Q4_K_M model for vLLM (~4.6 GB)
  • Auto-download model from Hugging Face
  • Zero-config: pip install marziel && marziel serve

What It Does

Feature Description
๐Ÿง  AI Chat Conversational AI with personality, code generation, data analysis
๐Ÿ“ก Maritime Intelligence Real-time GDACS, GDELT, NASA EONET, AIS, market data, bunker prices
๐Ÿ’ฐ Market Data Live Brent crude, BDI, EU Carbon, freight rates, forex, 12-port bunker prices
๐Ÿšข Vessel Integration AIS tracking, fleet management, voyage data, maintenance records
๐Ÿ”Œ Third-Party Connectors Plug in MarineTraffic, VesselFinder, Spire, Datalastic, or any REST API
๐Ÿ“Š Live Reports Generate comprehensive maritime intelligence reports on demand
๐Ÿ” Web Search Live internet results via DuckDuckGo โ€” always up-to-date answers
๐ŸŒ Browser Control Headless Chromium automation โ€” navigate, click, type, screenshot
๐Ÿ”— URL Analysis Share any link โ€” reads, extracts, and analyzes content
๐Ÿ™ GitHub Analysis Paste any repo URL โ€” get architecture, languages, README analysis
โšก Autonomous Agent Multi-step reasoning with bash, file, web, browser, and maritime tools
๐Ÿ“‘ Hybrid RAG Upload documents โ†’ reasoning + vector search โ†’ answers with citations
โšก TurboQuant 3-bit KV cache quantization โ€” 3x memory reduction, 0.91+ cosine similarity
๐Ÿ”’ 100% Private Everything runs locally. Zero cloud dependency

Maritime Intelligence (Enterprise)

Marziel integrates real-time maritime data from multiple global sources:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                   MARZIEL MARITIME INTEL                   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  OSINT (Free APIs)         โ”‚  Platform Integration        โ”‚
โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€         โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€        โ”‚
โ”‚  ๐Ÿ“ก GDACS โ€” Disasters      โ”‚  ๐Ÿšข Fleet Vessels            โ”‚
โ”‚  ๐Ÿ“ฐ GDELT โ€” Geopolitics    โ”‚  ๐Ÿ—บ๏ธ  Active Voyages          โ”‚
โ”‚  ๐ŸŒ NASA EONET โ€” Climate   โ”‚  โš ๏ธ  Risk Zones              โ”‚
โ”‚  ๐Ÿ’ฐ Yahoo Finance โ€” Market โ”‚  ๐Ÿ—๏ธ  Maintenance             โ”‚
โ”‚  ๐Ÿ’ฑ ExchangeRate โ€” Forex   โ”‚  ๐Ÿ“‹ Incidents                โ”‚
โ”‚  ๐Ÿšข AISStream โ€” Tracking   โ”‚  โ›ฝ Fuel Records             โ”‚
โ”‚                            โ”‚  ๐Ÿญ Port Directory           โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Third-Party Connectors (Enterprise)                      โ”‚
โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€                        โ”‚
โ”‚  MarineTraffic ยท VesselFinder ยท Spire Maritime            โ”‚
โ”‚  Datalastic ยท OpenWeather ยท Custom REST API               โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Market Data Sources

Data Source Update
Brent Crude Oil Yahoo Finance (BZ=F) Real-time
Bunker VLSFO/MGO/HSFO Brent-derived (12 ports) Real-time
Baltic Dry Index BDRY ETF ร— 200 Real-time
EU Carbon (EUA) KRBN ETF ร— 2.1 Real-time
Freight Rates DSX/GNK shipping stocks Real-time
Exchange Rates ExchangeRate API (9 currencies) Real-time

Third-Party Integration

Connect Marziel to any maritime service via ~/.marziel/connectors.json:

{
  "connectors": [
    {"type": "marinetraffic", "api_key": "YOUR_KEY"},
    {"type": "openweather", "api_key": "YOUR_KEY"},
    {
      "type": "custom",
      "name": "my_fleet",
      "base_url": "https://api.myfleet.com/v1",
      "api_key": "secret",
      "endpoints": {
        "vessels": "/ships",
        "voyages": "/trips",
        "weather": "/weather?lat={lat}&lon={lon}"
      }
    }
  ]
}

Maritime API Endpoints

GET  /api/maritime/report           โ€” Full intelligence report
GET  /api/maritime/data/market      โ€” Live market data
GET  /api/maritime/data/bunker      โ€” 12-port bunker prices
GET  /api/maritime/data/fx          โ€” Exchange rates
GET  /api/maritime/data/gdacs       โ€” Disaster events
GET  /api/maritime/data/gdelt       โ€” Geopolitical news
GET  /api/maritime/data/nasa        โ€” Natural events
GET  /api/maritime/data/ais         โ€” Vessel tracking
GET  /api/maritime/data/vessels     โ€” Fleet data
GET  /api/maritime/data/voyages     โ€” Voyage data
GET  /api/maritime/data/risk-zones  โ€” Active risk zones
GET  /api/maritime/data/ports       โ€” Port directory
GET  /api/maritime/connectors       โ€” List connectors
POST /api/maritime/connectors/query โ€” Query third-party services

Agent Tools

The LLM has access to 20+ tools:

Tool Purpose
bash Shell command execution
file_read / file_write File I/O
web_search DuckDuckGo search
browser Headless Chromium automation
maritime_report Full intelligence report
market_data Brent, BDI, Carbon, bunker, freight
gdacs Active disasters & cyclones
gdelt Geopolitical conflict news
nasa NASA EONET natural events
ais Live AIS vessel tracking
fleet Fleet vessel data
voyages Active voyage data
risk_zones Active risk zones
ports Global port directory
exchange_rates Live forex rates
maintenance Vessel maintenance records
incidents Maritime incident reports
fuel Fuel consumption data
port_calls Port call history

Requirements

  • RAM: 8GB minimum (16GB recommended)
  • Disk: ~5GB for the model
  • Python: 3.10โ€“3.14
  • Supported platforms:
Platform Engine Model Auto-installed
Apple Silicon (M1โ€“M4) MLX MLX 4-bit (4.5GB) mlx-lm
NVIDIA GPU (any) vLLM GGUF Q4_K_M (4.8GB) vllm
CPU (any x86/ARM) llama.cpp GGUF Q4_K_M (4.8GB) llama-cpp-python[server]
  • Linux: Ubuntu, Debian, Arch, Fedora, RHEL, Alpine โ€” any distro with glibc
  • macOS: Intel (llama.cpp) or Apple Silicon (MLX)
  • Windows: WSL2 recommended

Usage

# Install and start (basic)
pip install marziel
marziel serve

# With browser automation
pip install "marziel[browser]"
python -m playwright install chromium
marziel serve

# Check status
marziel status

# Show version
marziel version

Then open http://localhost:8001 โ€” your private AI dashboard.

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Browser (localhost:8001)                     โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚  Marziel Dashboard (React)            โ”‚   โ”‚
โ”‚  โ”‚  Dashboard ยท Chat ยท Settings          โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚                 โ”‚ API calls                    โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚  Marziel Backend (Flask+Gunicorn)     โ”‚   โ”‚
โ”‚  โ”‚  Agent ยท Search ยท Browser ยท Maritime  โ”‚   โ”‚
โ”‚  โ”‚  Billing ยท Connectors ยท Reports       โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚         โ”‚       โ”‚       โ”‚                      โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ” โ”Œโ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ” โ”Œโ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚ LLM     โ”‚ โ”‚ OSINT โ”‚ โ”‚ Third-Party APIs   โ”‚  โ”‚
โ”‚  โ”‚ MLX     โ”‚ โ”‚ GDACS โ”‚ โ”‚ MarineTraffic      โ”‚  โ”‚
โ”‚  โ”‚ vLLM    โ”‚ โ”‚ GDELT โ”‚ โ”‚ VesselFinder       โ”‚  โ”‚
โ”‚  โ”‚ llama   โ”‚ โ”‚ NASA  โ”‚ โ”‚ Spire ยท Custom     โ”‚  โ”‚
โ”‚  โ”‚ .cpp    โ”‚ โ”‚ Yahoo โ”‚ โ”‚                    โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚                YOUR MACHINE                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Pricing

Plan Price Features
Free โ‚ฌ0/mo AI Chat, Web Search, URL Analysis, GitHub Analysis
Pro โ‚ฌ20/mo + Agent Mode, Browser Control, Priority Inference
Enterprise โ‚ฌ199/mo + Maritime Intelligence, Connectors, Reports, Custom Fine-tuning

Links

Contact

๐Ÿ“ง info@efkan-isazade.com

License

MIT License


Built with โค๏ธ by Efe (Efkan Isazade)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

marziel-0.9.1.tar.gz (330.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marziel-0.9.1-py3-none-any.whl (337.1 kB view details)

Uploaded Python 3

File details

Details for the file marziel-0.9.1.tar.gz.

File metadata

  • Download URL: marziel-0.9.1.tar.gz
  • Upload date:
  • Size: 330.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for marziel-0.9.1.tar.gz
Algorithm Hash digest
SHA256 edd7c7f9dd12272e197f4b3d6cd494142184d3a383a377605edbb45d3944ac32
MD5 b1fd5e73fa7d076e448e30b984cf8b00
BLAKE2b-256 b46912984b7778920a491ba33c1d066b7447212ff189568975ea13936f0fccdf

See more details on using hashes here.

File details

Details for the file marziel-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: marziel-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 337.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for marziel-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c758a17a6447f10e476da56f21265326aa9ef11c5040744a9ec73d100602a347
MD5 e15343b337f761e436fa05ad142c7980
BLAKE2b-256 dd85479ba9c39135dc25c2280baec6939d0e2b9662d82dec314b0841159a4b43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page