8c4bbff4132ff21111d13f83db724063f32bef36
ModelHub Adaptation Agent
This repository is packaged for the ModelHub XC agent platform.
Platform Contract
- Root-level
Dockerfile - Listens on port
8080 - Exposes
GET /health - Handles
SIGTERM - Reads platform-provided
STRATEGY_IDand attaches it to task submissions asstrategyId
The root main.py starts a lightweight health server and runs the existing
submission poller in a child process.
Runtime Environment
Set credentials with environment variables. Do not commit local key files.
MODELHUB_XC_TOKENorXC_TOKENHF_TOKENoptional, but recommended for Hugging Face API limitsSTRATEGY_IDis expected to be injected by the ModelHub agent platform
Optional tuning:
MODELHUB_AGENT_POLL_INTERVAL_SECONDSdefault300MODELHUB_AGENT_IDLE_INTERVAL_SECONDSdefault600MODELHUB_AGENT_POST_CYCLE_COOLDOWN_SECONDSdefault30MODELHUB_AGENT_MAX_SUBMITS_PER_RUNdefault5MODELHUB_AGENT_DAILY_TARGETMODELHUB_AGENT_MIN_DOWNLOADSMODELHUB_AGENT_GPUSMODELHUB_AGENT_EXTRA_ARGS
Deploy
Create a tag and submit the repository URL plus tag in "我的适配智能体".
git tag agent-v1
git push origin agent-v1
Description
Languages
Python
99.7%
Shell
0.2%