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

  • Log In
  • Sign Up

sunfu-chou
/
git-base-naruto

Image-Text-to-Text
Transformers
TensorBoard
Safetensors
git
Generated from Trainer
Model card Files Files and versions
xet
Metrics Training metrics Community

Instructions to use sunfu-chou/git-base-naruto with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use sunfu-chou/git-base-naruto with Transformers:

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

    How to use sunfu-chou/git-base-naruto with vLLM:

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

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

    How to use sunfu-chou/git-base-naruto with Docker Model Runner:

    docker model run hf.co/sunfu-chou/git-base-naruto
git-base-naruto / runs
59.4 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 29 commits
sunfu-chou's picture
sunfu-chou
Training in progress, step 50
e75be1f verified almost 2 years ago
  • May30_14-52-21_sunfu-DSKT-ubn
    Training in progress, step 650 almost 2 years ago
  • May30_15-06-36_sunfu-DSKT-ubn
    Training in progress, step 1350 almost 2 years ago
  • May30_15-26-24_sunfu-DSKT-ubn
    Training in progress, step 50 almost 2 years ago
  • May30_15-30-17_sunfu-DSKT-ubn
    End of training almost 2 years ago
  • May30_15-44-52_sunfu-DSKT-ubn
    Training in progress, step 50 almost 2 years ago