Instructions to use abdalrahmanshahrour/anchored-ant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use abdalrahmanshahrour/anchored-ant with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("summarization", model="abdalrahmanshahrour/anchored-ant")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("abdalrahmanshahrour/anchored-ant", device_map="auto") - Notebooks
- Google Colab
- Kaggle
metadata
tags:
- autotrain
- summarization
language:
- ar
widget:
- text: I love AutoTrain 🤗
datasets:
- abdalrahmanshahrour/autotrain-data-shahroursummarizer
co2_eq_emissions:
emissions: 69.23178007707939
Model Trained Using AutoTrain
- Problem type: Summarization
- Model ID: 2306372987
- CO2 Emissions (in grams): 69.2318
Validation Metrics
- Loss: 0.157
- Rouge1: 6.909
- Rouge2: 2.441
- RougeL: 6.904
- RougeLsum: 7.047
- Gen Len: 19.000
Usage
You can use cURL to access this model:
$ curl -X POST -H "Authorization: Bearer YOUR_HUGGINGFACE_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/abdalrahmanshahrour/autotrain-shahroursummarizer-2306372987