Instructions to use saudi82s/test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use saudi82s/test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="saudi82s/test")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("saudi82s/test") model = AutoModelForSequenceClassification.from_pretrained("saudi82s/test", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download test.py from saudi82s/test: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/saudi82s/test/resolve/main/test.py
- Command line
-
hf download hf://saudi82s/test/test.py
-
curl -L -o test.py https://huggingface.co/saudi82s/test/resolve/main/test.py
335 Bytes
| from transformers import BertTokenizer, BertModel | |
| tokenizer = BertTokenizer.from_pretrained('bert-base-multilingual-cased') | |
| model = BertModel.from_pretrained("bert-base-multilingual-cased") | |
| text = "Replace me by any text you'd like." | |
| encoded_input = tokenizer(text, return_tensors='pt') | |
| output = model(**encoded_input) | |
| print(outputs) |