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
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

how to use that? please provide any type of code please

1
#8 opened almost 2 years ago by
Guilherme34

[WIP] Upload folder using huggingface_hub (multi-commit fc2d9e8b34ba042bb2407fa49f1c1c46abae49aceea24a72c4bc14c9766c1d7c)

#3 opened about 2 years ago by
Gunulhona

[WIP] Upload folder using huggingface_hub (multi-commit 26a6a3eb1402b78cafdfc935b5d50513c97d73486ee998c98d2e30f64d4ae79e)

#2 opened about 2 years ago by
Gunulhona
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs