Instructions to use joostgrunwald/MetRuBert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use joostgrunwald/MetRuBert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="joostgrunwald/MetRuBert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("joostgrunwald/MetRuBert") model = AutoModelForMaskedLM.from_pretrained("joostgrunwald/MetRuBert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download setup.py from joostgrunwald/MetRuBert: direct link, hf CLI and curl.
- Browser
- Download file 426 Bytes
-
https://huggingface.co/joostgrunwald/MetRuBert/resolve/refs%2Fpr%2F1/setup.py
- Command line
-
hf download hf://joostgrunwald/MetRuBert@refs/pr/1/setup.py
-
curl -L -o setup.py https://huggingface.co/joostgrunwald/MetRuBert/resolve/refs%2Fpr%2F1/setup.py
426 Bytes
| from setuptools import setup, find_packages | |
| setup( | |
| name='MetRubert', | |
| version='1.0', | |
| packages=find_packages(), | |
| install_requires=[ | |
| 'torch>=1.6.0', | |
| 'transformers>=4.2.2' | |
| ], | |
| classifiers=[ | |
| 'Programming Language :: Python :: 3', | |
| 'License :: OSI Approved :: GNU General Public License v3.0', | |
| 'Operating System :: OS Independent', | |
| ], | |
| python_requires='>=3.7', | |
| ) | |