Image-Text-to-Text
Transformers
Safetensors
kimi_k25
feature-extraction
compressed-tensors
conversational
custom_code
Eval Results
Instructions to use moonshotai/Kimi-K2.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use moonshotai/Kimi-K2.5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="moonshotai/Kimi-K2.5", trust_remote_code=True) messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("moonshotai/Kimi-K2.5", trust_remote_code=True) model = AutoModel.from_pretrained("moonshotai/Kimi-K2.5", trust_remote_code=True, device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use moonshotai/Kimi-K2.5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "moonshotai/Kimi-K2.5" # 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-K2.5", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/moonshotai/Kimi-K2.5
- SGLang
How to use moonshotai/Kimi-K2.5 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-K2.5" \ --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-K2.5", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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-K2.5" \ --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-K2.5", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use moonshotai/Kimi-K2.5 with Docker Model Runner:
docker model run hf.co/moonshotai/Kimi-K2.5
first commit
#65 opened 9 months ago
by
pika19
多图输入的占位符或顺序?
5
#63 opened 9 months ago
by
noobimp
performance of quantized models
3
#61 opened 9 months ago
by
darvec
400 Bad Request when deploying Kimi-K2.5 with vllm-0.15.0
1
#60 opened 9 months ago
by
tuo02
hi, who are you? -> I am Claude.
6
#59 opened 9 months ago
by
Jeol
Navigation of hugging face
#55 opened 9 months ago
by
Xaviercrypt01
Model not generating </think> token .
➕ 7
3
#52 opened 9 months ago
by
pratiknarola
Add MMLU-Pro evaluation results
#51 opened 9 months ago
by
nielsr
Add GPQA diamond evaluation results
#50 opened 9 months ago
by
nielsr
Add HLE evaluation results (with tools)
🚀 1
#49 opened 9 months ago
by
nielsr
The content of response from Kimi-K2.5 is empty when deploying with vllm-0.15.0.
5
#40 opened 9 months ago
by
tuo02
AttributeError: 'CompressedLinear' object has no attribute 'weight'
2
#39 opened 9 months ago
by
xbeark
Kimi K2.5 claims to be Claude, behaves like it, and even references Anthropic's Constitutional AI.
🤗👀 13
6
#38 opened 9 months ago
by
ombd
Update chat template to use reasoning if reasoning_content is unavailable, which is deprecated
1
#37 opened 9 months ago
by
koushd
fix: wrong return type annotation in resampling() function
#36 opened 9 months ago
by
ThanhNguyxn
fix: type annotation bugs in media_utils, processor and config
#35 opened 9 months ago
by
ThanhNguyxn
fix: bugs and improvements
1
#34 opened 9 months ago
by
ThanhNguyxn
Can it be added to microsoft foundry please?
1
#32 opened 9 months ago
by
atootikhos4
返回的内容为claude的思考过程的数据格式
🤗👍 3
2
#30 opened 9 months ago
by
tzzhangyajun
Kimi K2.5 using ktkernel + sglang, 16 TPS, but no starting <think> tag.
➕ 1
5
#28 opened 9 months ago
by
gyularabai
Where is the mecord?
5
#25 opened 9 months ago
by
luoxlong
Request: DOI
#23 opened 10 months ago
by
torouni
bug: tools with dashes in their name
➕ 3
2
#22 opened 10 months ago
by
koushd
Need speed estimate on 6x H200
2
#21 opened 10 months ago
by
mechanicmuthu
Guide to run Kimi K2.5 locally on your device.
😔🤯 13
2
#19 opened 10 months ago
by
shimmyshimmer
Observing (no content) response from the model randomly
➕ 1
1
#18 opened 10 months ago
by
shivamashtikar
Can the BrowseComp results be reproduced?
👍 2
9
#17 opened 10 months ago
by
Aldrich-x
Could I deploy the model with 8XA100?
3
#15 opened 10 months ago
by
mio
is K2.5 the same as K2.5 Thinking?
👍 1
2
#14 opened 10 months ago
by
Lord-Shibe
Context Management Reproducibility | 可复现性 ?
👀👍 6
7
#13 opened 10 months ago
by
pandemo
Code for agent swarm?
👍 1
2
#10 opened 10 months ago
by
nxphi47
Slow Tokenizer Issue
2
#7 opened 10 months ago
by
pratiknarola
Should `rope_scaling.beta_fast` be `1.0`?
4
#6 opened 10 months ago
by
jukofyork
Congratulations on this release and on one important realization!
🔥👍 19
5
#5 opened 10 months ago
by
Dampfinchen
Do you have any related native multimodal architecture diagrams?
👍 1
2
#4 opened 10 months ago
by
jackkuo
Good work! just a question about model attention architecture
3
#3 opened 10 months ago
by
alexjadone