Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

shomokh
/
git-base-onepiece

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

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

  • Libraries
  • Transformers

    How to use shomokh/git-base-onepiece with Transformers:

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

    How to use shomokh/git-base-onepiece with vLLM:

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

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

    How to use shomokh/git-base-onepiece with Docker Model Runner:

    docker model run hf.co/shomokh/git-base-onepiece
git-base-onepiece / runs
Ctrl+K
Ctrl+K
  • 1 contributor
History: 36 commits
shomokh's picture
shomokh
Training in progress, step 350
4ee4383 verified about 2 years ago
  • Mar28_21-21-16_0344342d447e
    Training in progress, step 1100 about 2 years ago
  • Mar28_22-05-39_ca130a04400b
    Training in progress, step 300 about 2 years ago
  • Mar28_22-45-48_b14cc41257b8
    Training in progress, step 1100 about 2 years ago
  • Mar28_23-57-44_7570dbefe020
    Training in progress, step 350 about 2 years ago