Instructions to use oneryalcin/finepdfs-purpose-setfit-neomme-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use oneryalcin/finepdfs-purpose-setfit-neomme-v2 with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("oneryalcin/finepdfs-purpose-setfit-neomme-v2") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use oneryalcin/finepdfs-purpose-setfit-neomme-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("oneryalcin/finepdfs-purpose-setfit-neomme-v2") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
File size: 446 Bytes
5fb9b35 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | {
"image_processor": {
"do_convert_rgb": true,
"do_normalize": true,
"do_rescale": true,
"do_resize": true,
"image_mean": [
0.5,
0.5,
0.5
],
"image_processor_type": "NeoMMEImageProcessor",
"image_std": [
0.5,
0.5,
0.5
],
"max_side": 2048,
"patch_size": 32,
"resample": 2,
"rescale_factor": 0.00392156862745098
},
"processor_class": "NeoMMEProcessor"
}
|