ml-agents
is an open-source toolkit that enables games and simulations made with Unity to serve as environments for training intelligent agents.
You can find ml-agents
models by filtering at the left of the models page.
All models on the Hub come up with useful features:
# Clone the repository
git clone https://github.com/huggingface/ml-agents/
# Go inside the repository and install the package
cd ml-agents
pip3 install -e ./ml-agents-envs
pip3 install -e ./ml-agents
mlagents-load-from-hf --repo-id="ThomasSimonini/MLAgents-Pyramids" --local-dir="./downloads"
You need to define two parameters:
--repo-id
: the name of the Hugging Face repo you want to download.--local-dir
: the path to download the model.Watch Your Agent Play
section, click on the link.mlagents-push-to-hf --run-id="First Training" --local-dir="results/First Training" --repo-id="ThomasSimonini/MLAgents-Pyramids" --commit-message="Pyramids"
You need to define four parameters:
--run-id
: the name of the training run id.--local-dir
: where the model was saved.--repo-id
: the name of the Hugging Face repo you want to create or update. It’s <your huggingface username>/<the repo name>
.--commit-message
.