Instructions to use qikp/qes-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use qikp/qes-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="qikp/qes-2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("qikp/qes-2") model = AutoModelForSequenceClassification.from_pretrained("qikp/qes-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
qikp's Educational Scorer (QES)
🎉 You are looking at QES 2, which is a much stronger model covering a few more domains, and trained on far less data!
QES is a model with a similar purpose to HuggingFaceFW/fineweb-edu-classifier, and is trained on a subset of its data.
Mozilla Firefox includes a model fine-tuned on the same base model as QES for form autofill, so the base model's reliability is proven.
Training data
My in-house qikp/quality-pro dataset was used. Additionally, a padding data collator was used.
Training details
Training took 1 minute and 9 seconds on a single T4 GPU from Google.
Model was trained as a FP32/FP16 hybrid as the Turing architecture does not support bfloat16.
The default batch size and learning rate was used.
The model was trained for 3 epochs.
Usage
For 🤗️, load the model and tokenizer first, then run something like:
model(**tokenizer("This is some example text to classify.", return_tensors="pt", truncation=True, max_length=model.config.max_position_embeddings)).logits.item()
You'll need to multiply the logit by 5 if a 1-5 score is needed in order to be a drop-in replacement to other classifiers.
Limitations
QES 2 is a very strong quality and educational classifier beating many of its competitors.
- Downloads last month
- 2
Model tree for qikp/qes-2
Base model
huawei-noah/TinyBERT_General_4L_312D