Summary
The ML team is setting up the MI300X nodes T424322: Setup MI300X nodes for LLM serving which are used for hosting GPU backed ML services. These services are reachable internally through the production network and externally through the API/REST Gateway. For some new services using LLMs we need to block unidentified and user-agent-only clients, allow WMCS and known clients, and optionally restrict authenticated users, to prevent service saturation that would degrade internal production traffic.
Technical notes
Context: The ML team is deploying medium-sized LLMs on MI300X GPU nodes in the LiftWing. Some services will be exposed externally for WMF staff, volunteers, and WMCS
tool users. Without access controls, these GPU-backed services could be saturated by unauthenticated or unintended traffic, starving internal production clients.
User classes (as defined in the Wikimedia rate limiting framework):
- unidentified,
- user-agent-only
- Authenticated users
- WMCS
- known clients
The goal is to block the first two groups, allow the last two, and evaluate authenticated users case-by-case.
Current state:
At the moment we could use a specific rate limit class as defined in https://www.mediawiki.org/wiki/Wikimedia_APIs/Rate_limits#Limits in order to block traffic for groups 1 and 2 by defining 0 as the rate limit but we should consider changing the response code to a 403 (Forbidden) vs 429 (too many requests).