Instructions to use mamakos/CMClassifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use mamakos/CMClassifier with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("teknium/OpenHermes-2.5-Mistral-7B") model = PeftModel.from_pretrained(base_model, "mamakos/CMClassifier") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -32,7 +32,7 @@ import closedmindedness
|
|
| 32 |
model = closedmindedness.classifier()
|
| 33 |
|
| 34 |
text_1 = "I will never change my mind."
|
| 35 |
-
text_2 = "
|
| 36 |
texts = [text_1, text_2]
|
| 37 |
probs = model.predict(texts)
|
| 38 |
print(probs) # []
|
|
|
|
| 32 |
model = closedmindedness.classifier()
|
| 33 |
|
| 34 |
text_1 = "I will never change my mind."
|
| 35 |
+
text_2 = "I went to the movies yesterday."
|
| 36 |
texts = [text_1, text_2]
|
| 37 |
probs = model.predict(texts)
|
| 38 |
print(probs) # []
|