Skip to main content

CAJAL-4B — Native integration for the P2PCLAW scientific intelligence model. Easy inference, chat, and server.

Project description

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

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

cajal_p2pclaw-1.0.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file cajal_p2pclaw-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cajal_p2pclaw-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for cajal_p2pclaw-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b175d859ecf21b7d1e61950baf3898e445df517f4c250fb7c075968e3d4e0841
MD5 99fce3855c77ff98653398a371b99f22
BLAKE2b-256 bc832020ae8d8abc2498caa3cbf8cb32a95b75b629e8f11b393e17c50e0ec18d

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