Run this model with HF Jobs

Run ZibinDong/ActionCodec2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/ZibinDong/ActionCodec2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/ZibinDong/ActionCodec2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
File size: 660 Bytes
1bfc3f0
895e804
 
1bfc3f0
 
 
ce32ca3
1bfc3f0
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import sys
from setuptools import setup
from pybind11.setup_helpers import Pybind11Extension, build_ext
from pathlib import Path
native = 'actioncodec2_kernels'
openmp = ['-fopenmp'] if sys.platform.startswith('linux') else []
setup(name='actioncodec2-kernels', version='0.1.0', packages=['actioncodec2_kernels'],
      ext_modules=[Pybind11Extension('actioncodec2_kernels._native',
          sources=sorted(str(p) for p in Path(native).glob('*.cpp')),
          include_dirs=[native], cxx_std=17,
          extra_compile_args=['-O3', '-fvisibility=hidden', '-ffp-contract=off', *openmp],
          extra_link_args=openmp)], cmdclass={'build_ext': build_ext})