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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b175d859ecf21b7d1e61950baf3898e445df517f4c250fb7c075968e3d4e0841
|
|
| MD5 |
99fce3855c77ff98653398a371b99f22
|
|
| BLAKE2b-256 |
bc832020ae8d8abc2498caa3cbf8cb32a95b75b629e8f11b393e17c50e0ec18d
|