Skip to content

feat(inference): Add Latitude as inference provider#3715

Open
gsalberto wants to merge 1 commit intohuggingface:mainfrom
gsalberto:add-latitude-provider
Open

feat(inference): Add Latitude as inference provider#3715
gsalberto wants to merge 1 commit intohuggingface:mainfrom
gsalberto:add-latitude-provider

Conversation

@gsalberto
Copy link

@gsalberto gsalberto commented Jan 22, 2026

Summary

This PR adds support for Latitude.sh as an inference provider.

About Latitude:

  • Recently acquired by Megaport (ASX: MP1), a global Network-as-a-Service leader
  • Operating 10,000+ physical servers and 1,000+ GPUs globally
  • Combined with Megaport's platform spanning 1,000+ data centers in 26 countries
  • Tier-3 data centers with 99.99% SLA

AI Inference Platform Features:

  • OpenAI-compatible API at https://api.lsh.ai
  • Tool calling support
  • Structured output (JSON mode)
  • Vision/multimodal model support
  • Streaming responses
  • Dedicated GPUs with consistent performance

Changes

  • Added src/huggingface_hub/inference/_providers/latitude.py with LatitudeConversationalTask and LatitudeTextGenerationTask
  • Updated __init__.py to register the provider

Related PRs

Latitude provides fast, affordable LLM inference on dedicated GPU infrastructure.

Supported tasks:
- conversational (chat completions)
- text-generation (completions)

Features:
- OpenAI-compatible API
- Tool calling / function calling
- Structured output (JSON mode)
- Vision / multimodal inputs
- Streaming with TTFT tracking

Provider details:
- Organization: https://huggingface.co/latitude-sh
- API Base: https://api.lsh.ai
- Pricing: https://api.lsh.ai/pricing
@gsalberto
Copy link
Author

Hi @Wauplin @hanouticelina @SBrandeis - following up on this PR. It's been 2 weeks since submission.

This adds Latitude as an inference provider for the Python client. We have the JS client PR (huggingface.js#1927) and docs PR (hub-docs#2180) ready as well.

Let us know if any changes are needed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant