Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

Agnes-AI
/
Agnes-2.5-Pro-Theta

Image-Text-to-Text
Transformers
Safetensors
English
Chinese
agnes_theta
text-generation
agnes-ai
conversational
reasoning
coding
multimodal
long-context
mixture-of-experts
custom_code
Model card Files Files and versions
xet
Community
2

Instructions to use Agnes-AI/Agnes-2.5-Pro-Theta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Agnes-AI/Agnes-2.5-Pro-Theta with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="Agnes-AI/Agnes-2.5-Pro-Theta", 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("Agnes-AI/Agnes-2.5-Pro-Theta", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use Agnes-AI/Agnes-2.5-Pro-Theta with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "Agnes-AI/Agnes-2.5-Pro-Theta"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "Agnes-AI/Agnes-2.5-Pro-Theta",
    		"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/Agnes-AI/Agnes-2.5-Pro-Theta
  • SGLang

    How to use Agnes-AI/Agnes-2.5-Pro-Theta 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 "Agnes-AI/Agnes-2.5-Pro-Theta" \
        --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": "Agnes-AI/Agnes-2.5-Pro-Theta",
    		"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 "Agnes-AI/Agnes-2.5-Pro-Theta" \
            --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": "Agnes-AI/Agnes-2.5-Pro-Theta",
    		"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 Agnes-AI/Agnes-2.5-Pro-Theta with Docker Model Runner:

    docker model run hf.co/Agnes-AI/Agnes-2.5-Pro-Theta
Agnes-2.5-Pro-Theta / assets
58.5 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
Agnes-AI's picture
Agnes-AI
Release Agnes 2.5 Pro Theta
1f5791a verified 14 days ago
  • THIRD_PARTY_NOTICES.txt
    1.17 kB
    Release Agnes 2.5 Pro Theta 14 days ago
  • agnes-2.5-pro-theta_benchmarks.svg
    50.2 kB
    Release Agnes 2.5 Pro Theta 14 days ago
  • agnes_logo.svg
    2.5 kB
    Release Agnes 2.5 Pro Theta 14 days ago
  • benchmarks.csv
    416 Bytes
    Release Agnes 2.5 Pro Theta 14 days ago
  • benchmarks.json
    4.29 kB
    Release Agnes 2.5 Pro Theta 14 days ago