Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Horizon-Labs
/
language-detection-small

Text Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
language-identification
language-detection
lid
multilingual
mmbert
text-embeddings-inference
Model card Files Files and versions
xet
Community

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
language-detection-small
1.43 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
Horizon-Labs's picture
Horizon-Labs
language-detection-small v1.0: 183 languages
cd857db verified 6 days ago
  • code
    language-detection-small v1.0: 183 languages 6 days ago
  • eval
    language-detection-small v1.0: 183 languages 6 days ago
  • onnx
    language-detection-small v1.0: 183 languages 6 days ago
  • training
    language-detection-small v1.0: 183 languages 6 days ago
  • .gitattributes
    1.57 kB
    language-detection-small v1.0: 183 languages 6 days ago
  • README.md
    8.23 kB
    language-detection-small v1.0: 183 languages 6 days ago
  • config.json
    9.79 kB
    language-detection-small v1.0: 183 languages 6 days ago
  • labels.json
    2.2 kB
    language-detection-small v1.0: 183 languages 6 days ago
  • model.safetensors
    563 MB
    xet
    language-detection-small v1.0: 183 languages 6 days ago
  • special_tokens_map.json
    636 Bytes
    language-detection-small v1.0: 183 languages 6 days ago
  • tokenizer.json
    34.4 MB
    xet
    language-detection-small v1.0: 183 languages 6 days ago
  • tokenizer_config.json
    46.4 kB
    language-detection-small v1.0: 183 languages 6 days ago