Client library to download and publish environments, agents on the huggingbutt.com hub
Project description
HuggingButt Python Client
Client library to download and publish environments, agents on the huggingbutt.com hub
Installation
After testing, this package can run stably under python version 3.9 on Windows/MacOS platform. Other versions of python may not be able to install this package, mainly because mlagents-envs has not been updated recently. I will address these issues later on.
Create a new python environment using anaconda/miniconda.
conda create -n hb python==3.9
activate the new python environment.
conda activate hb
install huggingbutt from pypi
pip install huggingbutt
or from source code
git clone xxx
cd huggingbutt
python -m pip install .
If there is no error message printed during the installation, congratulations, you have successfully installed this package. Next, you need to apply an access token from the official website http://huggingbutt.com.
Register an account and login, just do as shown in the image below.
Click new token button generate a new token. This access token is mainly used to restrict the download times of each user, as the server cost is relatively high.
Congratulations, you now have an access token!
Just put the generated token in the task code and you're gooooood to go.
Here is a simple testing code:
from huggingbutt import Env, set_access_token
from stable_baselines3.ppo import PPO
# your generated access token
ACCESS_TOKEN="YOUR_TOKEN"
if __name__ == '__main__':
set_access_token(ACCESS_TOKEN)
env = Env.get_gym_env('HuggingButt/juggle', 'mac', startup_args=['--time_scale', '2'])
model = PPO("MlpPolicy", env, verbose=1)
model.learn(total_timesteps=2500)
model.save("ppo_juggle.model")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for huggingbutt-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb594fda48775ff40aa906c45b07e0d5094d1500f1cd445c0f78bf5c3f30d1f0 |
|
MD5 | 38a5bb0872065f9d7d45b12eaf536142 |
|
BLAKE2b-256 | 9d7f5f0938e7e625151803cbb9ad89cfe640d7393e5679d2a9f579620cdbf626 |