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

  • Log In
  • Sign Up

kaizerBox
/
retnet-summarization_small

Text Generation
Transformers
TensorBoard
Safetensors
retnet
Generated from Trainer
Model card Files Files and versions
xet
Metrics Training metrics Community

Instructions to use kaizerBox/retnet-summarization_small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use kaizerBox/retnet-summarization_small with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="kaizerBox/retnet-summarization_small")
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("kaizerBox/retnet-summarization_small", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use kaizerBox/retnet-summarization_small with vLLM:

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

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

    How to use kaizerBox/retnet-summarization_small with Docker Model Runner:

    docker model run hf.co/kaizerBox/retnet-summarization_small
retnet-summarization_small / runs
45.9 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
kaizerBox's picture
kaizerBox
retnet-summarization-small
51ab8ee over 2 years ago
  • Nov12_22-21-47_6aff2f325475
    retnet-summarization-small over 2 years ago
  • Nov13_00-50-05_b14393ba9044
    retnet-summarization-small over 2 years ago
  • Nov13_15-11-38_4cfd88eaf698
    retnet-summarization-small over 2 years ago
  • Nov13_19-36-42_c5a761551a44
    retnet-summarization-small over 2 years ago
  • Nov14_23-01-17_ab594931a9c7
    retnet-summarization-small over 2 years ago
  • Nov15_20-01-19_dc2085b25b34
    retnet-summarization_small over 2 years ago
  • Nov16_19-21-08_0302d3c57c64
    retnet-summarization-small over 2 years ago
  • Nov17_00-10-39_f8b4e62bfa50
    retnet-summarization-small over 2 years ago