Instructions to use IDEA-Research/RexSeek-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IDEA-Research/RexSeek-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="IDEA-Research/RexSeek-3B", 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)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("IDEA-Research/RexSeek-3B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use IDEA-Research/RexSeek-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IDEA-Research/RexSeek-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IDEA-Research/RexSeek-3B", "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/IDEA-Research/RexSeek-3B
- SGLang
How to use IDEA-Research/RexSeek-3B 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 "IDEA-Research/RexSeek-3B" \ --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": "IDEA-Research/RexSeek-3B", "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 "IDEA-Research/RexSeek-3B" \ --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": "IDEA-Research/RexSeek-3B", "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 IDEA-Research/RexSeek-3B with Docker Model Runner:
docker model run hf.co/IDEA-Research/RexSeek-3B
| { | |
| "additional_special_tokens": [ | |
| "<|im_start|>", | |
| "<|im_end|>", | |
| "<|object_ref_start|>", | |
| "<|object_ref_end|>", | |
| "<|box_start|>", | |
| "<|box_end|>", | |
| "<|quad_start|>", | |
| "<|quad_end|>", | |
| "<|vision_start|>", | |
| "<|vision_end|>", | |
| "<|vision_pad|>", | |
| "<|image_pad|>", | |
| "<|video_pad|>", | |
| "<obj0>", | |
| "<obj1>", | |
| "<obj2>", | |
| "<obj3>", | |
| "<obj4>", | |
| "<obj5>", | |
| "<obj6>", | |
| "<obj7>", | |
| "<obj8>", | |
| "<obj9>", | |
| "<obj10>", | |
| "<obj11>", | |
| "<obj12>", | |
| "<obj13>", | |
| "<obj14>", | |
| "<obj15>", | |
| "<obj16>", | |
| "<obj17>", | |
| "<obj18>", | |
| "<obj19>", | |
| "<obj20>", | |
| "<obj21>", | |
| "<obj22>", | |
| "<obj23>", | |
| "<obj24>", | |
| "<obj25>", | |
| "<obj26>", | |
| "<obj27>", | |
| "<obj28>", | |
| "<obj29>", | |
| "<obj30>", | |
| "<obj31>", | |
| "<obj32>", | |
| "<obj33>", | |
| "<obj34>", | |
| "<obj35>", | |
| "<obj36>", | |
| "<obj37>", | |
| "<obj38>", | |
| "<obj39>", | |
| "<obj40>", | |
| "<obj41>", | |
| "<obj42>", | |
| "<obj43>", | |
| "<obj44>", | |
| "<obj45>", | |
| "<obj46>", | |
| "<obj47>", | |
| "<obj48>", | |
| "<obj49>", | |
| "<obj50>", | |
| "<obj51>", | |
| "<obj52>", | |
| "<obj53>", | |
| "<obj54>", | |
| "<obj55>", | |
| "<obj56>", | |
| "<obj57>", | |
| "<obj58>", | |
| "<obj59>", | |
| "<obj60>", | |
| "<obj61>", | |
| "<obj62>", | |
| "<obj63>", | |
| "<obj64>", | |
| "<obj65>", | |
| "<obj66>", | |
| "<obj67>", | |
| "<obj68>", | |
| "<obj69>", | |
| "<obj70>", | |
| "<obj71>", | |
| "<obj72>", | |
| "<obj73>", | |
| "<obj74>", | |
| "<obj75>", | |
| "<obj76>", | |
| "<obj77>", | |
| "<obj78>", | |
| "<obj79>", | |
| "<obj80>", | |
| "<obj81>", | |
| "<obj82>", | |
| "<obj83>", | |
| "<obj84>", | |
| "<obj85>", | |
| "<obj86>", | |
| "<obj87>", | |
| "<obj88>", | |
| "<obj89>", | |
| "<obj90>", | |
| "<obj91>", | |
| "<obj92>", | |
| "<obj93>", | |
| "<obj94>", | |
| "<obj95>", | |
| "<obj96>", | |
| "<obj97>", | |
| "<obj98>", | |
| "<obj99>", | |
| "<ground>", | |
| "</ground>", | |
| "<objects>", | |
| "</objects>" | |
| ], | |
| "eos_token": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |