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

  • Log In
  • Sign Up

AXERA-TECH
/
InternVL2_5-1B

Image-Text-to-Text
Transformers
InternVL2_5
InternVL2_5-1B
InternVL2_5-1B-MPO
Int8
VLM
Model card Files Files and versions
xet
Community

Instructions to use AXERA-TECH/InternVL2_5-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use AXERA-TECH/InternVL2_5-1B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="AXERA-TECH/InternVL2_5-1B")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("AXERA-TECH/InternVL2_5-1B", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use AXERA-TECH/InternVL2_5-1B with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "AXERA-TECH/InternVL2_5-1B"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "AXERA-TECH/InternVL2_5-1B",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/AXERA-TECH/InternVL2_5-1B
  • SGLang

    How to use AXERA-TECH/InternVL2_5-1B 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 "AXERA-TECH/InternVL2_5-1B" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "AXERA-TECH/InternVL2_5-1B",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    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 "AXERA-TECH/InternVL2_5-1B" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "AXERA-TECH/InternVL2_5-1B",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use AXERA-TECH/InternVL2_5-1B with Docker Model Runner:

    docker model run hf.co/AXERA-TECH/InternVL2_5-1B
InternVL2_5-1B
2.42 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 17 commits
qqc1989's picture
qqc1989
Rename main_aarch64_axcl to main_axcl_aarch64
123ee66 verified 8 months ago
  • internvl2_5_1b_364_ax630c
    update the axmodel for ax630c about 1 year ago
  • internvl2_5_1b_448_ax650
    Initial this repo about 1 year ago
  • internvl2_5_tokenizer
    Initial this repo about 1 year ago
  • .gitattributes
    1.82 kB
    Rename main_aarch64_axcl to main_axcl_aarch64 8 months ago
  • README.md
    11.7 kB
    Update README.md about 1 year ago
  • config.json
    0 Bytes
    Initial this repo about 1 year ago
  • internvl2_5_tokenizer_364.py
    6.46 kB
    update the axmodel for ax630c about 1 year ago
  • internvl2_5_tokenizer_448.py
    6.46 kB
    support axcl for rp5 about 1 year ago
  • main
    6.53 MB
    xet
    update the axmodel for ax630c about 1 year ago
  • main_448
    6.5 MB
    xet
    Upload main_448 about 1 year ago
  • main_axcl_aarch64
    7.3 MB
    xet
    Rename main_aarch64_axcl to main_axcl_aarch64 8 months ago
  • panda.jpg
    78.1 kB
    Upload panda.jpg about 1 year ago
  • run_internvl2_5_364_ax630c.sh
    724 Bytes
    update the axmodel for ax630c about 1 year ago
  • run_internvl2_5_448_ax650.sh
    624 Bytes
    Update run_internvl2_5_448_ax650.sh about 1 year ago
  • run_internvl2_5_448_axcl_aarch64.sh
    644 Bytes
    Update run_internvl2_5_448_axcl_aarch64.sh 8 months ago
  • ssd_car.jpg
    50.5 kB
    Initial this repo about 1 year ago