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

  • Log In
  • Sign Up

umm-maybe
/
StackStar_Santa

Text Generation
Transformers
PyTorch
gpt2
custom_code
text-generation-inference
Model card Files Files and versions
xet
Community
1

Instructions to use umm-maybe/StackStar_Santa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use umm-maybe/StackStar_Santa with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="umm-maybe/StackStar_Santa", trust_remote_code=True)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("umm-maybe/StackStar_Santa", trust_remote_code=True)
    model = AutoModelForCausalLM.from_pretrained("umm-maybe/StackStar_Santa", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use umm-maybe/StackStar_Santa with vLLM:

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

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

    How to use umm-maybe/StackStar_Santa with Docker Model Runner:

    docker model run hf.co/umm-maybe/StackStar_Santa
StackStar_Santa
4.6 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
umm-maybe's picture
umm-maybe
Update config.json
1a50a46 almost 3 years ago
  • .gitattributes
    1.48 kB
    initial commit almost 3 years ago
  • config.json
    1 kB
    Update config.json almost 3 years ago
  • configuration_gpt2_mq.py
    9.47 kB
    Add model files almost 3 years ago
  • modeling_gpt2_mq.py
    15.1 kB
    Add model files almost 3 years ago
  • pytorch_model.bin
    4.6 GB
    xet
    Add model files almost 3 years ago
  • tokenizer.json
    2.08 MB
    Add model files almost 3 years ago
  • tokenizer_config.json
    159 Bytes
    Add model files almost 3 years ago