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

  • Log In
  • Sign Up

kaizerBox
/
retnet-summarization

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 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use kaizerBox/retnet-summarization with Transformers:

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

    How to use kaizerBox/retnet-summarization with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "kaizerBox/retnet-summarization"
    # 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",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/kaizerBox/retnet-summarization
  • SGLang

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

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

    docker model run hf.co/kaizerBox/retnet-summarization
retnet-summarization / runs
33.7 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
kaizerBox's picture
kaizerBox
retnet-summarization
9021e33 over 2 years ago
  • Nov04_20-14-37_06626b08ccdc
    retnet-summarization over 2 years ago
  • Nov05_18-25-27_8ad2684ce4a5
    retnet-summarization over 2 years ago
  • Nov08_16-29-26_5ea457dcb8a2
    retnet-summarization over 2 years ago
  • Nov15_14-33-34_80af9390a25d
    retnet-summarization over 2 years ago
  • Nov18_20-31-38_8c72afc6b1ac
    retnet-summarization over 2 years ago
  • Nov19_17-25-25_2221c7381199
    retnet-summarization over 2 years ago