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

  • Log In
  • Sign Up

Gunulhona
/
S2S_LLM

Text Generation
Transformers
PyTorch
Safetensors
Korean
bart
text2text-generation
Model card Files Files and versions
xet
Community
8

Instructions to use Gunulhona/S2S_LLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Gunulhona/S2S_LLM with Transformers:

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

    How to use Gunulhona/S2S_LLM with vLLM:

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

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

    How to use Gunulhona/S2S_LLM with Docker Model Runner:

    docker model run hf.co/Gunulhona/S2S_LLM
S2S_LLM
Ctrl+K
Ctrl+K
  • 1 contributor
History: 93 commits
Gunulhona's picture
Gunulhona
Upload folder using huggingface_hub (#7)
981e307 verified about 2 years ago
  • checkpoint
    Upload folder using huggingface_hub (#7) about 2 years ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub almost 3 years ago
  • README.md
    157 Bytes
    Update README.md about 2 years ago
  • checkpoint_fp32
    36.8 GB
    xet
    Upload folder using huggingface_hub almost 3 years ago
  • config.json
    1.05 kB
    Upload BartForConditionalGeneration over 2 years ago
  • generation_config.json
    191 Bytes
    Upload BartForConditionalGeneration over 2 years ago
  • latest
    10 Bytes
    Upload folder using huggingface_hub almost 3 years ago
  • model.safetensors
    264 MB
    xet
    Upload BartForConditionalGeneration about 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "torch._utils._rebuild_tensor_v2",
    • "torch.HalfStorage",
    • "collections.OrderedDict"

    What is a pickle import?

    14.2 MB
    xet
    Upload BartForConditionalGeneration almost 3 years ago
  • zero_to_fp32.py
    24.3 kB
    Upload folder using huggingface_hub about 2 years ago