Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

moonshotai
/
Kimi-Dev-72B

Text Generation
Transformers
Safetensors
qwen2
code
swebench
software
issue-resolving
conversational
text-generation-inference
Model card Files Files and versions
xet
Community
12

Instructions to use moonshotai/Kimi-Dev-72B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use moonshotai/Kimi-Dev-72B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="moonshotai/Kimi-Dev-72B")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("moonshotai/Kimi-Dev-72B")
    model = AutoModelForCausalLM.from_pretrained("moonshotai/Kimi-Dev-72B")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    inputs = tokenizer.apply_chat_template(
    	messages,
    	add_generation_prompt=True,
    	tokenize=True,
    	return_dict=True,
    	return_tensors="pt",
    ).to(model.device)
    
    outputs = model.generate(**inputs, max_new_tokens=40)
    print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use moonshotai/Kimi-Dev-72B with vLLM:

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

    How to use moonshotai/Kimi-Dev-72B 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 "moonshotai/Kimi-Dev-72B" \
        --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": "moonshotai/Kimi-Dev-72B",
    		"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 "moonshotai/Kimi-Dev-72B" \
            --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": "moonshotai/Kimi-Dev-72B",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use moonshotai/Kimi-Dev-72B with Docker Model Runner:

    docker model run hf.co/moonshotai/Kimi-Dev-72B

update metadata

#3
by nickname100231 - opened Jun 17, 2025
base: refs/heads/main
←
from: refs/pr/3
Discussion Files changed
+1
-1
initial commit861c88dc
Upload folder using huggingface_hub33c42bb0
Delete files *.jpeg with huggingface_hubd27625ee
Delete files *.jpg *.png with huggingface_hub69d28e5f
Upload folder using huggingface_hube6412c6c
Delete files *.jpeg .png .jpg with huggingface_hub1484e789
Delete files *.png with huggingface_hub0822cf78
Delete files *.jpg with huggingface_hub1cfdd488
Add files using upload-large-folder tool83f10516
Add files using upload-large-folder tool193ce9ec
Update README.mdf53dd892
Update README.mdc8fa55d2
Update README.mdb2e2c198
Update README.mdee86d6ef
Delete files model.args.pt with huggingface_hub9329ff5f
nickname100231
Jun 17, 2025
No description provided.
update metadatabc3d3db3
Cannot merge
This branch has merge conflicts in the following files:
  • .gitattributes
  • README.md

· Sign up or log in to comment

Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs