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

  • Log In
  • Sign Up

e7mac
/
vision-encoder

Image-Text-to-Text
Transformers
Safetensors
PyTorch
mllama
facebook
meta
llama
llama-3
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use e7mac/vision-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use e7mac/vision-encoder with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="e7mac/vision-encoder")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("e7mac/vision-encoder")
    model = AutoModelForImageTextToText.from_pretrained("e7mac/vision-encoder")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use e7mac/vision-encoder with vLLM:

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

    How to use e7mac/vision-encoder 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 "e7mac/vision-encoder" \
        --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": "e7mac/vision-encoder",
    		"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 "e7mac/vision-encoder" \
            --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": "e7mac/vision-encoder",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use e7mac/vision-encoder with Docker Model Runner:

    docker model run hf.co/e7mac/vision-encoder
vision-encoder
42.5 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
e7mac's picture
e7mac
add files
ebcb697 verified 3 months ago
  • original
    add files 3 months ago
  • .gitattributes
    1.52 kB
    initial commit 3 months ago
  • LICENSE.txt
    7.71 kB
    add files 3 months ago
  • README.md
    37 kB
    add files 3 months ago
  • USE_POLICY.md
    6.02 kB
    add files 3 months ago
  • config.json
    5.03 kB
    add files 3 months ago
  • generation_config.json
    152 Bytes
    add files 3 months ago
  • model-00001-of-00005.safetensors
    4.99 GB
    xet
    add files 3 months ago
  • model-00002-of-00005.safetensors
    4.92 GB
    xet
    add files 3 months ago
  • model-00003-of-00005.safetensors
    4.92 GB
    xet
    add files 3 months ago
  • model-00004-of-00005.safetensors
    5 GB
    xet
    add files 3 months ago
  • model-00005-of-00005.safetensors
    1.47 GB
    xet
    add files 3 months ago
  • model.safetensors.index.json
    89.4 kB
    add files 3 months ago
  • preprocessor_config.json
    437 Bytes
    add files 3 months ago
  • special_tokens_map.json
    459 Bytes
    add files 3 months ago
  • tokenizer.json
    9.09 MB
    add files 3 months ago
  • tokenizer_config.json
    50.7 kB
    add files 3 months ago