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

  • Log In
  • Sign Up

tiny-random
/
step3-vl

Text Generation
Transformers
Safetensors
step_robotics
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use tiny-random/step3-vl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use tiny-random/step3-vl with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="tiny-random/step3-vl", trust_remote_code=True)
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModelForSeq2SeqLM
    model = AutoModelForSeq2SeqLM.from_pretrained("tiny-random/step3-vl", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use tiny-random/step3-vl with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "tiny-random/step3-vl"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "tiny-random/step3-vl",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/tiny-random/step3-vl
  • SGLang

    How to use tiny-random/step3-vl 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 "tiny-random/step3-vl" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "tiny-random/step3-vl",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    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 "tiny-random/step3-vl" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "tiny-random/step3-vl",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use tiny-random/step3-vl with Docker Model Runner:

    docker model run hf.co/tiny-random/step3-vl
step3-vl
20.6 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
yujiepan's picture
yujiepan
Upload folder using huggingface_hub
f286307 verified 3 months ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub 3 months ago
  • README.md
    7.18 kB
    Upload folder using huggingface_hub 3 months ago
  • added_tokens.json
    1.3 kB
    Upload folder using huggingface_hub 3 months ago
  • chat_template.jinja
    4.7 kB
    Upload folder using huggingface_hub 3 months ago
  • config.json
    1.67 kB
    Upload folder using huggingface_hub 3 months ago
  • configuration_step_vl.py
    2.51 kB
    Upload folder using huggingface_hub 3 months ago
  • generation_config.json
    136 Bytes
    Upload folder using huggingface_hub 3 months ago
  • model.safetensors
    6.32 MB
    xet
    Upload folder using huggingface_hub 3 months ago
  • modeling_step_vl.py
    23.3 kB
    Upload folder using huggingface_hub 3 months ago
  • processing_step3.py
    18.3 kB
    Upload folder using huggingface_hub 3 months ago
  • processor_config.json
    82 Bytes
    Upload folder using huggingface_hub 3 months ago
  • special_tokens_map.json
    5.6 kB
    Upload folder using huggingface_hub 3 months ago
  • tokenizer.json
    11.4 MB
    xet
    Upload folder using huggingface_hub 3 months ago
  • tokenizer_config.json
    9.97 kB
    Upload folder using huggingface_hub 3 months ago
  • vision_encoder.py
    17.8 kB
    Upload folder using huggingface_hub 3 months ago
  • vocab.json
    2.78 MB
    Upload folder using huggingface_hub 3 months ago