Skip to content

About

Multi-Agent architecture where a LLM acts as an evaluator inside Judge-Worker project.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

152 Commits

Folders and files

Repository files navigation

MultiAgent AI Evaluator

Hardware

My project is hosted on 4 different hosts:

  1. PC0 API: My x86 server.
  2. PC1 Worker1: R9 7945HX 64GB 5200MT/s + RTX 4060 (mobile) 8GB GDDR6
  3. PC2 Worker2: Nvidia Jetson AGX Xavier Developer Kit 16GB 4267MT/s with MAXN mode enabled
  4. PC3 Judge: i7-14700KF 64GB 6400MT/s + RTX 4070 Ti 12GB GDDR6X

Back-end

Starting the cluster

Make sure to edit the IP adresses in the .env file (.env will create itself from .env.example after running the ./start.sh pcx script).

In order to start the cluster use this command in the API host:

./start.sh pc0

and in the R9+4060 PCx86 (Worker1):

./start.sh pc1

and in the Nvidia Jeston AGX Xavier PCarm64 (Worker2):

./start.sh pc2

and finally the i7+4070Ti PCx86 (Judge):

./start.sh pc3

Testing

Testing if a llm-model.gguf can be loaded on individual nodes:

PC1:

docker exec -it model_manager_pc1 python3 -c "
from llama_cpp import Llama
print('--- Testing ---')
llm = Llama(model_path='/models/gemma-4-12b-it-UD-Q4_K_XL.gguf', n_ctx=1024, verbose=True)
print('--- Success ---')
"

PC2:

docker exec -it model_manager_pc2 python3 -c "
from llama_cpp import Llama
print('--- Testing ---')
llm = Llama(model_path='/models/gemma-4-E4B-it-Q6_K.gguf', n_gpu_layers=24, n_ctx=1024, use_mmap=False, verbose=True)
print('--- Success ---')
"

PC3:

docker exec -it model_manager_pc3 python3 -c "
from llama_cpp import Llama
print('--- Testing ---')
llm = Llama(model_path='/models/gemma-4-26B-A4B-it-UD-Q8_K_XL.gguf', n_ctx=1024, verbose=True)
print('--- Success ---')
"

Starting the project

Start by loading the models:

curl -s -X POST "http://127.0.0.1:8000/system/init_mode" \
     -H "Content-Type: application/json" \
     -d '{
           "mode": "coding"
         }' \
     -w "\n"

Then send a prompt:

curl -X POST "http://127.0.0.1:8000/chat" \
     -H "Content-Type: application/json" \
     -d '{
           "message": "Write a Python function to check if a number is prime and optimize its time complexity.",
           "mode": "coding"
         }' \
     -w "\n"

About

Multi-Agent architecture where a LLM acts as an evaluator inside Judge-Worker project.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages