Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

XiaomiMiMo
/
MiMo-V2.5-Pro-FP4-DFlash

Text Generation
Transformers
Safetensors
English
Chinese
mimo_v2
agent
long-context
code
mxfp4
fp4-quantization
dflash
speculative-decoding
block-diffusion
conversational
custom_code
8-bit precision
fp8
Model card Files Files and versions
xet
Community
8

Instructions to use XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash", trust_remote_code=True)
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash
  • SGLang

    How to use XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash with SGLang:

    Install from pip and serve model
    # Install SGLang from pip:
    pip install sglang
    # Start the SGLang server:
    python3 -m sglang.launch_server \
        --model-path "XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker images
    docker run --gpus all \
        --shm-size 32g \
        -p 30000:30000 \
        -v ~/.cache/huggingface:/root/.cache/huggingface \
        --env "HF_TOKEN=<secret>" \
        --ipc=host \
        lmsysorg/sglang:latest \
        python3 -m sglang.launch_server \
            --model-path "XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash with Docker Model Runner:

    docker model run hf.co/XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

IDEA: Bitnet 1.58 (a4.8) version in future variants would be so incredible!

❤️ 1
#8 opened 8 days ago by
apiarium

What attention scheme for DFlash SWA? Non-Causal?

2
#7 opened 22 days ago by
benchislett

Vllm config

1
#6 opened 26 days ago by
ciprianv

可以在Hopper用吗?

#5 opened 28 days ago by
pty819

Is there a Docker image for this?

👀 1
1
#4 opened about 1 month ago by
encryptedoreo

thinking budget

#3 opened about 1 month ago by
festr2

Is this ULTRASPEED???

1
#2 opened about 1 month ago by
nanze

REQUEST: Dflash for MiMo V2.5 (non-Pro)

❤️ 3
8
#1 opened about 1 month ago by
alexanderacuna
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs