Instructions to use dongbobo/my-awesome-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dongbobo/my-awesome-model with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("dongbobo/my-awesome-model", dtype="auto") - Notebooks
- Google Colab
- Kaggle
File size: 527 Bytes
799a5b9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from setuptools import setup, Extension
from Cython.Build import cythonize
# Let Cython find and compile your .py files directly.
# This compiles both __init__.py and benchmark_utils.py
extensions = [
Extension("utils.__init__", ["utils/__init__.py"]),
Extension("utils.benchmark_utils", ["utils/benchmark_utils.py"]),
]
setup(
name="my_utils_package",
ext_modules=cythonize(
extensions,
# Tell Cython you're using Python 3 syntax
compiler_directives={'language_level' : "3"}
)
)
|