koth-miner2-live / source.py
anshuc366's picture
Upload source.py with huggingface_hub
db0e78a verified
Raw History Blame Contribute Delete
577 Bytes
# KOTH miner agent 2 (hotkey2/uid4) — naive fixed cheap-model router, no escalation.
# Genuinely different from miner1's learned escalate-router (router_agent.py): always answers from
# the cheap pool model verbatim, so it should score lower on accuracy but cheaper — real competition.
import json
def build_agent(weights):
cfg = json.loads(weights.decode())
model = cfg.get("model", "meta-llama/llama-3.1-8b-instruct")
def agent(prompt, call_model):
return call_model(model, [{"role": "user", "content": prompt}], {"max_tokens": 512})
return agent