Text Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
topic-classification
domain-classification
web-classification
weborganizer
data-curation
pretraining-data
mmbert
text-embeddings-inference
Instructions to use Horizon-Labs/multilingual-web-topic-format-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Horizon-Labs/multilingual-web-topic-format-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Horizon-Labs/multilingual-web-topic-format-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Horizon-Labs/multilingual-web-topic-format-base") model = AutoModelForSequenceClassification.from_pretrained("Horizon-Labs/multilingual-web-topic-format-base", device_map="auto") - Transformers.js
How to use Horizon-Labs/multilingual-web-topic-format-base with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Horizon-Labs/multilingual-web-topic-format-base'); - Notebooks
- Google Colab
- Kaggle
Download onnx/quantization_check.json from Horizon-Labs/multilingual-web-topic-format-base: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/Horizon-Labs/multilingual-web-topic-format-base/resolve/main/onnx/quantization_check.json
- Command line
-
hf download hf://Horizon-Labs/multilingual-web-topic-format-base/onnx/quantization_check.json
-
curl -L -o quantization_check.json https://huggingface.co/Horizon-Labs/multilingual-web-topic-format-base/resolve/main/onnx/quantization_check.json
396 Bytes
| { | |
| "fp32_ms": 328.6812996864319, | |
| "gather_only": { | |
| "max_diff": 0.038469791412353516, | |
| "mean_diff": 0.0002469871542416513, | |
| "agree": 0.9875, | |
| "ms": 305.8753854036331, | |
| "mb": 641.267412 | |
| }, | |
| "gather_int8_matmul_q4": { | |
| "max_diff": 0.7383306622505188, | |
| "mean_diff": 0.006449527572840452, | |
| "agree": 0.7625, | |
| "ms": 322.8996014595032, | |
| "mb": 266.91283 | |
| }, | |
| "best": "gather_only", | |
| "n": 400 | |
| } |