Downloads · 30 days
0
V1vex/AI-Trainer
AI-Trainer is a machine learning model from V1vex. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This project is a production-ready AI agent built for the Meta OpenEnv Hackathon. The agent competes in a 3-round coding challenge against an OpenAI GPT-4o-mini judge, receiving Python coding tasks and submitting solu…
Downloads · 30 days
0
Access
Public
Updated Apr 8, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.lock1.2 MB · 92%
From the Hugging Face model README
This project is a production-ready AI agent built for the Meta OpenEnv Hackathon. The agent competes in a 3-round coding challenge against an OpenAI GPT-4o-mini judge, receiving Python coding tasks and submitting solutions for evaluation.
inference.pyThe core agent logic lives entirely in inference.py. It runs a 3-round loop that:
/reset endpoint to fetch a new coding task/step endpoint and retrieves the scoreThe agent uses the exact payload format required by the Meta OpenEnv REST API:
{"action": {"answer": "<agent_answer>"}}
This nested structure matches the server's strict Pydantic model validation, completely preventing 422 Unprocessable Entity errors that arise from incorrect top-level keys or flat payload formats.
The agent uses Qwen/Qwen2.5-72B-Instruct via the Hugging Face Router API (https://router.huggingface.co/v1), accessed through an OpenAI-compatible client.
Key reasons for this choice:
api-inference.huggingface.co/v1 endpoint has been deprecated and returns 410 Gone errorsThe agent safely parses tasks from multiple possible server response shapes:
response["observation"]["echoed_message"]response["observation"]["task_prompt"]response["echoed_message"]json.dumps(resp)This makes the agent resilient to any OpenEnv server version or configuration.
pip install -r requirements.txt
$env:HF_TOKEN = "hf_your_token_here"
$env:OPENAI_API_KEY = "sk-your_key_here"
python inference.py
| Package | Version |
|---|---|
| requests | 2.31.0 |
| openai | 1.14.0 |
| pydantic | 2.6.4 |