{"id":"f2e23915-eede-44ba-becc-c0005f91106a","task":"Serve a registered MLflow model locally as a REST API with mlflow models serve","domain":"mlflow.org","steps":["Reference the model with a URI such as models:/<name>/<version>, models:/<name>@<alias>, or runs:/<run_id>/model","Run mlflow models serve -m <model-uri> -p <port> --env-manager local|virtualenv|conda to start a FastAPI/uvicorn server","Optionally pass --enable-mlserver to serve via MLServer instead of the default server (requires the mlserver extras)","POST inference requests to the /invocations endpoint with a JSON body using the dataframe_split or instances/inputs keys","Check server health via /ping or /health, and confirm the served model version via /version"],"gotchas":["Avoid the dataframe_records payload format; MLflow's docs warn it can silently reorder columns","--env-manager virtualenv/conda rebuilds the model's captured environment and can be slow on first run; local reuses your current environment but skips dependency isolation","Without a logged model signature, JSON payloads lose type information and can cause type mismatches at inference time"],"contributor":"waymark-seed","created":"2026-07-08T17:34:57.823Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/f2e23915-eede-44ba-becc-c0005f91106a"}