Image-Text-to-Text
Transformers
Safetensors
interns1_pro
text-generation
conversational
custom_code
fp8
Instructions to use internlm/Intern-S1-Pro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use internlm/Intern-S1-Pro with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="internlm/Intern-S1-Pro", 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 AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("internlm/Intern-S1-Pro", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use internlm/Intern-S1-Pro with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "internlm/Intern-S1-Pro" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "internlm/Intern-S1-Pro", "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/internlm/Intern-S1-Pro
- SGLang
How to use internlm/Intern-S1-Pro 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 "internlm/Intern-S1-Pro" \ --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": "internlm/Intern-S1-Pro", "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 "internlm/Intern-S1-Pro" \ --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": "internlm/Intern-S1-Pro", "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 internlm/Intern-S1-Pro with Docker Model Runner:
docker model run hf.co/internlm/Intern-S1-Pro
Commit History
-
Fix transformers>=5.10 compatibility in video_processing_interns1_pro.py (#18)
- Fix transformers>=5.10 compatibility in video_processing_interns1_pro.py (dd34003efc07a390ba3745b6fbc4c7f7fde5f51d)054ef1e
-
Adapt tokenization_interns1.py to transformers>=5.0.0 (#15)
- Adapt tokenization_interns1.py to transformers>=5.0.0 (65efc111527b17792b13f09fbe7ddbb9d9df263e) - Update: fix bug (7260346cf2e4d0d8faf80b45ff37a06a14e4b74a) - Update: fix bug (7b33977d07711c291f31851e21f44f995dc74c3f) Co-authored-by: Kevin Zhang <Zhangyc02@users.noreply.huggingface.co>66f5286
-
update tech report link and citation
Verified signaturef1c1974
-
[Feature] Update time series (#13)
- [Feature] update time series model (d9bead416bc2e29ee7e2d4f964840a5699007664) - [Weight] Update time series safetensors (262600bfe6a5013e9407e3f6b7be303a3dbdce42) - [test] update time series test scripts (bbe1e5b60f58e4587d421dca5d74cea85e17e891) - [Fix] Remove hard requirements of pandas (f2a60cf1369f53de255813688aad3557d0957391) Co-authored-by: yehaochen <yehaochen@users.noreply.huggingface.co>619e440 -
Update vllm info, add time series demo (#11)
- Update vllm info (1814c329baf83d7e8182b3632c242d896d17ed9f) - update lmdeploy version (c54769a5dbcd633329eadfe754ebc8f8f94cc087) - update time series demo (c4eac73bedba66729b3724c8eae21125e98dd5f3) - update port (8ecc3a60ff63328e80ca1e7537ba98d393adff32) Co-authored-by: Zhou Xinyu <jack-zxy@users.noreply.huggingface.co>e00807a
-
Update sglang info (#10)
- Update sglang info (9d2505c1567ca6132027b181c22f8151420a1289) Co-authored-by: lmdeploy <unsubscribe@users.noreply.huggingface.co>82d0f52
-
fix check_model_inputs (#6)
- fix check_model_inputs (7d0aba3ebdab0dc90ffb764599cee20052534dc2) Co-authored-by: haian <huang11@users.noreply.huggingface.co>1ba4154 -
Update README.md by emphasizing the usage of the LLM inference engine. (#8)
- Update README.md by emphasizing the usage of the LLM inference engine. (8cc02c550327878a72de835a16fbbce2022a4909) Co-authored-by: Qipeng Guo <QipengGuo@users.noreply.huggingface.co>88ed679
-
Update README.md
Verified signature9f67b9f -
Update generation_config.json
Verified signaturefc85839
-
update figs
Verified signature41a3377 -
Update README.md
Verified signaturef1a9d72 -
Update README.md
Verified signature83a1263 -
Update README.md
Verified signature6f8921e -
Upload LICENSE.txt
Verified signature9e93e46 -
upload figs
Verified signatureaed9aea -
Create README.md
Verified signatureb1af760 -
Create deployment_guide.md (#1)
- Create deployment_guide.md (e18db75e54a8a693cf5e986fd724b58b517ba1a1) Co-authored-by: Zhou Xinyu <jack-zxy@users.noreply.huggingface.co>e66e0ef
-
Add files using upload-large-folder tool
Verified signature80f90fc -
Add files using upload-large-folder tool
Verified signature0d382e3 -
initial commit
Verified signature4b114d9