aayushbist/saccade-100k
Viewer • Updated • 100k
How to use aayushbist/saccade-tiny-100k with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="aayushbist/saccade-tiny-100k") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("aayushbist/saccade-tiny-100k")
model = AutoModelForTokenClassification.from_pretrained("aayushbist/saccade-tiny-100k", device_map="auto")Saccade Tiny is a 4,369,666-parameter experimental token
classifier that predicts whether each word should be KEEP or DROP before a
prompt is sent to a larger language model.
google/bert_uncased_L-2_H-128_A-2The examples were derived from human-written English OpenAssistant prompts by injecting synthetic filler, repetitions, false starts, and redundant politeness.
| Metric | Result |
|---|---|
| Accuracy | 0.9393 |
| KEEP precision | 0.9363 |
| KEEP recall | 0.9684 |
| KEEP F1 | 0.9521 |
| Predicted DROP rate | 35.66% |
Research and demonstrations involving conservative removal of obvious low-information wording from English prompts.
from transformers import pipeline
classifier = pipeline(
"token-classification",
model="aayushbist/saccade-tiny-100k",
aggregation_strategy="none",
)
print(classifier("Could you basically summarize this report?"))