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

  • Log In
  • Sign Up

momergul
/
git_test

Image-Text-to-Text
Transformers
Safetensors
git
custom_code
Model card Files Files and versions
xet
Community

Instructions to use momergul/git_test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use momergul/git_test with Transformers:

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

    How to use momergul/git_test with vLLM:

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

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

    How to use momergul/git_test with Docker Model Runner:

    docker model run hf.co/momergul/git_test
git_test
Ctrl+K
Ctrl+K
  • 1 contributor
History: 22 commits
momergul's picture
momergul
Upload config.json with huggingface_hub
ad187a2 verified 7 months ago
  • .gitattributes
    1.52 kB
    initial commit 10 months ago
  • README.md
    5.17 kB
    Upload GitForCausalLM 10 months ago
  • config.json
    3.88 kB
    Upload config.json with huggingface_hub 7 months ago
  • config.py
    3.75 kB
    Upload config.py with huggingface_hub 10 months ago
  • configuration_git.py
    7.46 kB
    Upload configuration_git.py with huggingface_hub 10 months ago
  • generation_config.json
    136 Bytes
    Upload GitForCausalLM 10 months ago
  • model.safetensors
    893 MB
    xet
    Upload GitForCausalLM 7 months ago
  • modeling_git.py
    6.06 kB
    Upload modeling_git.py with huggingface_hub 9 months ago
  • preprocessor_config.json
    402 Bytes
    Upload processor 10 months ago
  • processor_config.json
    124 Bytes
    Upload processor_config.json with huggingface_hub 10 months ago
  • processor_git.py
    2.12 kB
    Upload processor_git.py with huggingface_hub 9 months ago
  • special_tokens_map.json
    597 Bytes
    Upload processor 9 months ago
  • tokenizer.json
    2.14 MB
    Upload processor 10 months ago
  • tokenizer_config.json
    1.37 kB
    Upload processor 9 months ago