Downloads · 30 days
10
40% of all-time downloads
Quintu/roberta-large-768-product
roberta-large-768-product 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-product được thiết kế để thực hiện phân loại văn bản liên quan đến phát hiện sản phẩm.
Downloads · 30 days
10
40% of all-time downloads
All-time downloads
25
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-product được thiết kế để thực hiện phân loại văn bản liên quan đến phát hiện sản phẩm.
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-product"
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)