mlflow-crusoe
An MLflow deployment plugin for Crusoe AI's managed inference API.
This plugin lets you manage named model endpoint configurations and run inference on Crusoe's renewable-powered GPU infrastructure directly from MLflow's deployment interface.
Installation
pip install mlflow-crusoe
Setup
Set your Crusoe API key:
export CRUSOE_API_KEY="your-api-key"
You can generate one from the Crusoe Console under Security > Inference API Key.
Usage
import mlflow.deployments
client = mlflow.deployments.get_deploy_client("crusoe")
# Create a deployment
client.create_deployment(
name="my-llm",
model_uri="meta-llama/Llama-3.3-70B-Instruct",
config={"temperature": 0.7, "max_tokens": 2048},
)
# Run inference
result = client.predict("my-llm", inputs={"prompt": "Hello!"})
print(result["choices"][0]["message"]["content"])
# List deployments
client.list_deployments()
# Update
client.update_deployment("my-llm", model_uri="zai/GLM-5.3")
# Delete
client.delete_deployment("my-llm")
Input formats
The predict method accepts three input formats:
# Chat messages (recommended)
client.predict("my-llm", inputs={
"messages": [
{"role": "system", "content": "You are helpful."},
{"role": "user", "content": "Hello!"},
]
})
# Simple prompt
client.predict("my-llm", inputs={"prompt": "Hello!"})
# Plain string
client.predict("my-llm", inputs="Hello!")
CLI
# Help
mlflow deployments help -t crusoe
# Create
mlflow deployments create -t crusoe --name my-llm -m meta-llama/Llama-3.3-70B-Instruct
# List
mlflow deployments list -t crusoe
# Predict
mlflow deployments predict -t crusoe --name my-llm --input '{"prompt": "Hi"}'
# Delete
mlflow deployments delete -t crusoe --name my-llm
Available Models
| Model | Identifier |
|---|---|
| Meta Llama 3.3 70B Instruct | meta-llama/Llama-3.3-70B-Instruct |
| DeepSeek V3 (0324) | deepseek-ai/DeepSeek-V3-0324 |
| DeepSeek V4 Pro | deepseek-ai/DeepSeek-V4-Pro |
| DeepSeek V4 Flash | deepseek-ai/DeepSeek-V4-Flash |
| Google Gemma 4 31B | google/gemma-4-31b-it |
| Moonshot AI Kimi K2.6 | moonshotai/Kimi-K2.6 |
| NVIDIA Nemotron 3 Nano 30B A3B | nvidia/Nemotron-3-Nano-30B-A3B |
| NVIDIA Nemotron 3 Nano Omni Reasoning 30B A3B | nvidia/Nemotron-3-Nano-Omni-Reasoning-30B-A3B |
| NVIDIA Nemotron 3 Super 120B A12B | nvidia/Nemotron-3-Super-120B-A12B |
| NVIDIA Nemotron 3 Ultra 550B | nvidia/Nemotron-3-Ultra-550B |
| NVIDIA Nemotron 3.5 Lightning 30B A3B | nvidia/nemotron-3.5-lightning-30b-a3b |
| OpenAI GPT-OSS 120B | openai/gpt-oss-120b |
| Qwen3 235B A22B Instruct | Qwen/Qwen3-235B-A22B-Instruct-2507 |
| Z.ai GLM-5.1 | zai/GLM-5.1 |
| Z.ai GLM-5.3 | zai/GLM-5.3 |
| Z.ai GLM-5.3 Flash | zai/GLM-5.3-Flash |
Any other model ID available on Crusoe Managed Inference can be passed as a plain string. See the Crusoe model list for current availability.
Configuration
| Key | Default | Description |
|---|---|---|
api_key |
CRUSOE_API_KEY env var |
API key |
api_base |
https://api.inference.crusoecloud.com/v1 |
API base URL |
temperature |
0.1 |
Sampling temperature (0-2) |
max_tokens |
1024 |
Max tokens to generate |
top_p |
unset | Nucleus sampling |
frequency_penalty |
unset | Frequency repetition penalty |
presence_penalty |
unset | Presence repetition penalty |
stop |
unset | Comma-separated stop sequences |
Compatibility
Requires MLflow 2.0 or newer, including MLflow 3.x. The plugin registers through the mlflow.deployments entry point and implements the full plugin interface (CrusoeDeploymentClient, target_help, run_local).
References
Metadata
Release files for mlflow-crusoe 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mlflow_crusoe-0.1.3.tar.gz | 10.3 kB | Without provenance | Details for mlflow_crusoe-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mlflow_crusoe-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for mlflow_crusoe-0.1.3-py3-none-any.whl |
Total release size: 19.6 kB
Release files / mlflow_crusoe-0.1.3.tar.gz
| Download URL | mlflow_crusoe-0.1.3.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2744e1ece197a054f64a8e7f2761a511c9d99265d53b21d24836d28ab893a676
|
|
BLAKE2b-256 checksum How to use checksums |
59aa20bde54f46526953c3d99463a77140f2fbc119e684206303e73659f1639c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / mlflow_crusoe-0.1.3-py3-none-any.whl
| Download URL | mlflow_crusoe-0.1.3-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ccb6e3fd11dba4357aff75c1361d5ff10e55f732f3b8fe30b858c024611ad9e8
|
|
BLAKE2b-256 checksum How to use checksums |
c174926533e0182267ada891d760e79194907ede5c5c02381a8037fcd11811a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for mlflow-crusoe 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.