Instructions to use hchen657Naza/PWM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hchen657Naza/PWM with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hchen657Naza/PWM", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download PWM_code/reward_model/robometer/setup.py from hchen657Naza/PWM: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/hchen657Naza/PWM/resolve/main/PWM_code/reward_model/robometer/setup.py
- Command line
-
hf download hf://hchen657Naza/PWM/PWM_code/reward_model/robometer/setup.py
-
curl -L -o setup.py https://huggingface.co/hchen657Naza/PWM/resolve/main/PWM_code/reward_model/robometer/setup.py
1.35 kB
| #!/usr/bin/env python3 | |
| """ | |
| Setup script for the Robometer package. | |
| """ | |
| from setuptools import find_packages, setup | |
| # Read the README file | |
| with open("README.md", encoding="utf-8") as fh: | |
| long_description = fh.read() | |
| setup( | |
| name="robometer", | |
| version="0.0.1", | |
| author="Anthony Liang", | |
| author_email="aliang80@usc.edu", | |
| description="Robometer: Scaling General-purpose Robotic Reward Models via Trajectory Comparisons", | |
| long_description=long_description, | |
| long_description_content_type="text/markdown", | |
| url="https://github.com/robometer/robometer", | |
| packages=find_packages(), | |
| classifiers=[ | |
| "Development Status :: 3 - Alpha", | |
| "Intended Audience :: Developers", | |
| "Intended Audience :: Science/Research", | |
| "License :: OSI Approved :: MIT License", | |
| "Operating System :: OS Independent", | |
| "Programming Language :: Python :: 3", | |
| "Programming Language :: Python :: 3.10", | |
| "Programming Language :: Python :: 3.11", | |
| "Topic :: Scientific/Engineering :: Artificial Intelligence", | |
| "Topic :: Software Development :: Libraries :: Python Modules", | |
| ], | |
| python_requires=">=3.10", | |
| entry_points={ | |
| "console_scripts": [ | |
| "robometer-train=train:main", | |
| ], | |
| }, | |
| include_package_data=True, | |
| zip_safe=False, | |
| ) | |