Skip to main content

CAJAL-4B-P2PCLAW — Native Python Integration

🧠 One-line install: pip install cajal

CAJAL-4B is a specialized scientific intelligence model fine-tuned for decentralized research networks, peer-to-peer architectures, cryptographic protocols, and formal verification. This package provides native Python integration, a FastAPI server, CLI tool, and configs for 10+ platforms.


Quick Start

1. Install

pip install cajal

2. Chat in Python

from cajal import CAJALChat

chat = CAJALChat()
response = chat.send("Explain Byzantine consensus in P2P networks.")
print(response)

3. Run Server (OpenAI-compatible)

cajal-server --port 8000
# Endpoint: POST /v1/chat/completions

4. CLI Chat

cajal "Explain zero-knowledge proofs"
# Or interactive mode:
cajal -i

Ollama Integration (Recommended)

# Pull the model
ollama pull Agnuxo/CAJAL-4B-P2PCLAW

# Create custom model with system prompt
ollama create cajal -f Modelfile

# Run
ollama run cajal

Platform Integrations

Platform Config Status
Ollama integrations/ollama/Modelfile ✅ Ready
VS Code integrations/vscode/cajal.json ✅ Ready
Cursor integrations/cursor/cajal.json ✅ Ready
Continue.dev integrations/continue_dev/config.yaml ✅ Ready
Open WebUI integrations/openwebui/README.md ✅ Ready
Jan integrations/jan/model.json ✅ Ready
LM Studio integrations/lmstudio/README.md ✅ Ready
Pinokio integrations/pinokio/install.json ✅ Ready

Model Info

  • Base: Qwen3.5-4B (Apache 2.0)
  • Fine-tuned: 4.21B parameters
  • Context: 262K tokens
  • Format: Safetensors BF16
  • License: MIT
  • HF: Agnuxo/CAJAL-4B-P2PCLAW

Requirements

  • Python 3.9+
  • PyTorch 2.2+
  • Transformers 4.40+
  • GPU recommended (6.5GB VRAM minimum)

License

MIT — Francisco Angulo de Lafuente (Agnuxo1)

Copyright 2026 P2PCLAW Laboratory

Metadata

Release files for cajal-p2pclaw 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for cajal-p2pclaw 1.0.0
File Interpreter ABI Platform
cajal_p2pclaw-1.0.0-py3-none-any.whl Python 3 none any Details

Release files / cajal_p2pclaw-1.0.0-py3-none-any.whl

Download URL cajal_p2pclaw-1.0.0-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b175d859ecf21b7d1e61950baf3898e445df517f4c250fb7c075968e3d4e0841
BLAKE2b-256 checksum
How to use checksums
bc832020ae8d8abc2498caa3cbf8cb32a95b75b629e8f11b393e17c50e0ec18d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page