Instructions to use debajyotimaz/codemix_hate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use debajyotimaz/codemix_hate with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="debajyotimaz/codemix_hate")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("debajyotimaz/codemix_hate") model = AutoModelForSequenceClassification.from_pretrained("debajyotimaz/codemix_hate", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -28,7 +28,6 @@ This is the model card of a 🤗 transformers model that has been pushed on the
|
|
| 28 |
|
| 29 |
**Details of usage**
|
| 30 |
|
| 31 |
-
Please use the **Model_Rational_Label** class inside [models.py](models.py) to load the models. The default prediction in this hosted inference API may be wrong due to the use of different class initialisations.
|
| 32 |
|
| 33 |
```python
|
| 34 |
import torch
|
|
|
|
| 28 |
|
| 29 |
**Details of usage**
|
| 30 |
|
|
|
|
| 31 |
|
| 32 |
```python
|
| 33 |
import torch
|