Introduction of llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva
Model Details of llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva
Llama-HPLT-edu-Hindi classifier
Model summary
This is a classifier for judging the educational content of Hindi (hin-Deva) web pages. It was developed to filter educational content from
HPLT v2
and was trained on 450k
annotations
generated by
LLama3.3-70B-instruct
.
The web pages were sampled randomly from Hindi subset of the corpus.
How to load in transformers
To load the Llama-HPLT-Edu classifier, use the following code:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("LumiOpen/llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva")
model = AutoModelForSequenceClassification.from_pretrained("LumiOpen/llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva")
text = "I'm non-educational web page containing nothing useful"
inputs = tokenizer(text, return_tensors="pt", padding="longest", truncation=True)
outputs = model(**inputs)
logits = outputs.logits.squeeze(-1).float().detach().numpy()
score = logits.item()
result = {
"text": text,
"score": score,
"int_score": int(round(max(0, min(score, 5)))),
}
print(result)
#results from a model trained with Welsh annotations#{'text': "I'm non-educational web page containing nothing useful", 'score': 0.8145455718040466, 'int_score': 1}#{'text': 'what are most common animals found in farm? there are cows, sheeps', 'score': 1.6858888864517212, 'int_score': 2}
Training
Model: FacebookAI/xlm-roberta-large with a classification head
Dataset: 500,000 samples from Llama3.3 annotations split into 450,000 train, 25,000 validation, and 25,000 test splits.
llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva huggingface.co is an AI model on huggingface.co that provides llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva's model effect (), which can be used instantly with this LumiOpen llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva model. huggingface.co supports a free trial of the llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva model, and also provides paid use of the llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva. Support call llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva model through api, including Node.js, Python, http.
llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva huggingface.co is an online trial and call api platform, which integrates llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva's modeling effects, including api services, and provides a free online trial of llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva, you can try llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva online for free by clicking the link below.
LumiOpen llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva online free url in huggingface.co:
llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva is an open source model from GitHub that offers a free installation service, and any user can find llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva on GitHub to install. At the same time, huggingface.co provides the effect of llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva install, users can directly use llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
llama-hpltv2-edu-classifier-xlm-roberta-large-hin-Deva install url in huggingface.co: