Instructions to use botbottingbot/Modular_Intelligence with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use botbottingbot/Modular_Intelligence with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="botbottingbot/Modular_Intelligence")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("botbottingbot/Modular_Intelligence", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use botbottingbot/Modular_Intelligence with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "botbottingbot/Modular_Intelligence" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "botbottingbot/Modular_Intelligence", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/botbottingbot/Modular_Intelligence
- SGLang
How to use botbottingbot/Modular_Intelligence with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "botbottingbot/Modular_Intelligence" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "botbottingbot/Modular_Intelligence", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "botbottingbot/Modular_Intelligence" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "botbottingbot/Modular_Intelligence", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use botbottingbot/Modular_Intelligence with Docker Model Runner:
docker model run hf.co/botbottingbot/Modular_Intelligence
Create Readme.md
Browse files
Readme.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Modular Intelligence — HuggingFace Demo
|
| 2 |
+
|
| 3 |
+
This Space demonstrates a universal, domain-agnostic **Modular Intelligence** framework:
|
| 4 |
+
|
| 5 |
+
- Generators (modules)
|
| 6 |
+
- Checkers (verification)
|
| 7 |
+
- Structured outputs
|
| 8 |
+
- Deterministic patterns
|
| 9 |
+
- Zero vendor-lock
|
| 10 |
+
|
| 11 |
+
## Features
|
| 12 |
+
- Universal modules: analysis, explanation, strategy, writing, systems
|
| 13 |
+
- Paired checker modules
|
| 14 |
+
- Completely general — works for any domain
|
| 15 |
+
- No backend required (runs on HF free CPU)
|
| 16 |
+
- Clean architecture, extendable
|
| 17 |
+
|
| 18 |
+
## Files
|
| 19 |
+
- `modules.json` — module & checker repository
|
| 20 |
+
- `app.py` — UI + orchestration
|
| 21 |
+
- `requirements.txt` — dependencies
|
| 22 |
+
- `diagram.txt` — architecture visualization
|
| 23 |
+
|
| 24 |
+
## What to customize
|
| 25 |
+
- Add modules
|
| 26 |
+
- Add checkers
|
| 27 |
+
- Swap model (e.g., Mistral 7B, Llama 3 8B, Gemma 2B)
|
| 28 |
+
- Add your own structured output patterns
|
| 29 |
+
|
| 30 |
+
## License
|
| 31 |
+
MIT — you keep full IP on your architecture.
|