Skip to main content

Control

app.routers.control

delete_model

def delete_model(model_id: str)

Remove a model from the local HuggingFace cache.

PullRequest

list_models

def list_models()

pull_model

def pull_model(req: PullRequest)

list_downloads

def list_downloads()

reconcile_downloads

def reconcile_downloads()

Force re-check of all tracked downloads against the HF cache.

Promotes downloads that finished (no .incomplete files, present in cache) to "complete" and clears them from the active tracker.

search_hub

def search_hub(q: str = Query(..., min_length=1), limit: int = Query(20, le=50))

get_model_detail

def get_model_detail(model_id: str)