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 / code /lid
136 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
Horizon-Labs's picture
Horizon-Labs
language-detection-small v1.0: 183 languages
cd857db verified 6 days ago
  • augment_short.py
    2.59 kB
    language-detection-small v1.0: 183 languages 6 days ago
  • clean_lid.py
    5.51 kB
    language-detection-small v1.0: 183 languages 6 days ago
  • eval_lid.py
    4.86 kB
    language-detection-small v1.0: 183 languages 6 days ago
  • fw_files.json
    109 kB
    language-detection-small v1.0: 183 languages 6 days ago
  • merge_labels.py
    1.76 kB
    language-detection-small v1.0: 183 languages 6 days ago
  • prep_lid.py
    7.34 kB
    language-detection-small v1.0: 183 languages 6 days ago
  • train_lid.py
    5.35 kB
    language-detection-small v1.0: 183 languages 6 days ago