Instructions to use ZibinDong/ActionCodec2-1st-order with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ZibinDong/ActionCodec2-1st-order with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ZibinDong/ActionCodec2-1st-order", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download setup.py from ZibinDong/ActionCodec2-1st-order: direct link, hf CLI and curl.
- Browser
- Download file 552 Bytes
-
https://huggingface.co/ZibinDong/ActionCodec2-1st-order/resolve/main/setup.py
- Command line
-
hf download hf://ZibinDong/ActionCodec2-1st-order/setup.py
-
curl -L -o setup.py https://huggingface.co/ZibinDong/ActionCodec2-1st-order/resolve/main/setup.py
552 Bytes
| from setuptools import setup | |
| from pybind11.setup_helpers import Pybind11Extension, build_ext | |
| native = "actioncodec2_kernels" | |
| setup( | |
| ext_modules=[Pybind11Extension( | |
| "actioncodec2_kernels._actioncodec2_native", | |
| sources=[f"{native}/{name}.cpp" for name in ("module", "physical", "so3", "setbpe", "resample")], | |
| include_dirs=[native], | |
| depends=[f"{native}/parallel.hpp"], | |
| extra_compile_args=["-O3", "-fvisibility=hidden", "-ffp-contract=off"], | |
| cxx_std=17, | |
| )], | |
| cmdclass={"build_ext": build_ext}, | |
| ) | |