Downloads · 30 days
11
13% of all-time downloads
Quintu/roberta-large-768-hazard
roberta-large-768-hazard is a text classification model from Quintu. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Mô hình Quintu/roberta-large-768-hazard được thiết kế để thực hiện phân loại văn bản liên quan đến phát hiện nguy cơ.
Downloads · 30 days
11
13% of all-time downloads
All-time downloads
86
Public
Parameters
355M
1.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
Mô hình Quintu/roberta-large-768-hazard được thiết kế để thực hiện phân loại văn bản liên quan đến phát hiện nguy cơ.
Dưới đây là cách sử dụng mô hình này với thư viện transformers:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
# Tải mô hình và tokenizer
model_name = "Quintu/roberta-large-768-hazard"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Sử dụng mô hình để phân loại văn bản
text = "This is an example text to classify."
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
# Dự đoán
logits = outputs.logits
print(logits)