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

  • Log In
  • Sign Up

devmanpreet
/
gemma-3-4b-pt-object-detection-aug

Image-Text-to-Text
Transformers
Safetensors
gemma3
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use devmanpreet/gemma-3-4b-pt-object-detection-aug with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use devmanpreet/gemma-3-4b-pt-object-detection-aug with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="devmanpreet/gemma-3-4b-pt-object-detection-aug")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("devmanpreet/gemma-3-4b-pt-object-detection-aug")
    model = AutoModelForImageTextToText.from_pretrained("devmanpreet/gemma-3-4b-pt-object-detection-aug")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use devmanpreet/gemma-3-4b-pt-object-detection-aug with vLLM:

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

    How to use devmanpreet/gemma-3-4b-pt-object-detection-aug 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 "devmanpreet/gemma-3-4b-pt-object-detection-aug" \
        --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": "devmanpreet/gemma-3-4b-pt-object-detection-aug",
    		"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 "devmanpreet/gemma-3-4b-pt-object-detection-aug" \
            --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": "devmanpreet/gemma-3-4b-pt-object-detection-aug",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use devmanpreet/gemma-3-4b-pt-object-detection-aug with Docker Model Runner:

    docker model run hf.co/devmanpreet/gemma-3-4b-pt-object-detection-aug
gemma-3-4b-pt-object-detection-aug
5.88 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
devmanpreet's picture
devmanpreet
Upload processor
3af1ce3 verified 12 months ago
  • .gitattributes
    1.57 kB
    Upload processor 12 months ago
  • README.md
    5.17 kB
    Final model 12 months ago
  • config.json
    1.8 kB
    Final model 12 months ago
  • generation_config.json
    132 Bytes
    Final model 12 months ago
  • model-00001-of-00002.safetensors
    4.98 GB
    xet
    Final model 12 months ago
  • model-00002-of-00002.safetensors
    862 MB
    xet
    Final model 12 months ago
  • model.safetensors.index.json
    72.6 kB
    Final model 12 months ago
  • preprocessor_config.json
    424 Bytes
    Upload processor 12 months ago
  • special_tokens_map.json
    629 Bytes
    Upload processor 12 months ago
  • tokenizer.json
    34.6 MB
    xet
    Upload processor 12 months ago
  • tokenizer_config.json
    243 kB
    Upload processor 12 months ago