Text Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
language-identification
language-detection
lid
multilingual
mmbert
text-embeddings-inference
Instructions to use Horizon-Labs/language-detection-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Horizon-Labs/language-detection-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Horizon-Labs/language-detection-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Horizon-Labs/language-detection-small") model = AutoModelForSequenceClassification.from_pretrained("Horizon-Labs/language-detection-small", device_map="auto") - Transformers.js
How to use Horizon-Labs/language-detection-small with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Horizon-Labs/language-detection-small'); - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from Horizon-Labs/language-detection-small: direct link, hf CLI and curl.
- Browser
- Download file 34.4 MB
-
https://huggingface.co/Horizon-Labs/language-detection-small/resolve/main/tokenizer.json
- Command line
-
hf download hf://Horizon-Labs/language-detection-small/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/Horizon-Labs/language-detection-small/resolve/main/tokenizer.json
34.4 MB
- Xet hash:
- cc6fc0c630b76bc4a78de4965bd7ce0381446e80a84f40aad512a75e6a43d849
- Size of remote file:
- 34.4 MB
- SHA256:
- b7cc6d8599efc7f57ee2fe874a7e29b82038c5dfd03a442652c2afea13fe41e5
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.