Parallel execution of multiple local LLMs with voting strategies for higher quality responses.
python
from scripts.council import council_decide
# Simple usage
result = council_decide(
"Explain Python decorators",
models=['nerdsking-3b', 'llama-3.1-8b'],
strategy="weighted"
)
print(result)
text
User Prompt
↓
[Router] → Model A → Response A
→ Model B → Response B
→ Model C → Response C
↓
[Voting Engine]
↓
Consensus Response
Most common response wins (exact match).
Bigger models get more weight:
ModelWeightNerdsking 3B1Llama 3.1 8B2Strand 14B3Mistral 24B4GLM 4.75Qwen3.5 35B6
python
from scripts.council import ModelCouncil
import asyncio
async def main():
async with ModelCouncil() as council:
answer = await council.decide(
"Best practice for API design?",
strategy="weighted"
)
print(answer)
asyncio.run(main())
python
# Use specific models only
council = ModelCouncil(
active_models=['qwen3.5-35b', 'glm-4.7-flash'],
timeout=30
)
python
# Get all responses without voting
responses = await council.query_all("Explain async/await")
for model, response in responses.items():
print(f"{model}: {response}")
python
# In your skill:
from arena_council.scripts.council import council_decide
def handle_query(prompt):
# Use council instead of single model
return council_decide(
prompt,
strategy="weighted"
)
SetupTimeCostSingle (Kimi)2s$0.12Council (3 local)5s$0Council (5 local)8s$0
bash
pip install aiohttp
Any model running on LM Studio ( http://127.0.0.1:1234/v1). Recommended:
qwen3.5-9b, glm-4.7-flash, nerdsking-3bhuihui-qwen3.5-27b-abliterated, huihui-mistral-small-24b-abliteratedqwen3.5-35b-uncensored-hauhaucs, holo3-35bUse curl http://127.0.0.1:1234/v1/models to list what's loaded.
When all council models refuse due to censorship — apply god-mode techniques and retry:
python
# If council returns no usable responses (all refused)
if all_refused(responses):
from god_mode import apply_techniques
modified_prompt = apply_techniques(prompt, methods=["unicode", "prefill"])
responses = await council.query_all(modified_prompt)
See: god-mode skill for full technique library.
Before using a censored model in council, test it: