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

  • Log In
  • Sign Up

Continuous-Rivals-Discrete
/
langflow-owt

Text Generation
Transformers
Safetensors
English
LangFlow
fill-mask
custom_code
Model card Files Files and versions
xet
Community
1

Instructions to use Continuous-Rivals-Discrete/langflow-owt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Continuous-Rivals-Discrete/langflow-owt with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Continuous-Rivals-Discrete/langflow-owt", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForMaskedLM
    model = AutoModelForMaskedLM.from_pretrained("Continuous-Rivals-Discrete/langflow-owt", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use Continuous-Rivals-Discrete/langflow-owt with vLLM:

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

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

    How to use Continuous-Rivals-Discrete/langflow-owt with Docker Model Runner:

    docker model run hf.co/Continuous-Rivals-Discrete/langflow-owt
langflow-owt
683 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
nielsr's picture
nielsr HF Staff
Add paper and code links to model card
6e6facd verified 22 days ago
  • .gitattributes
    1.52 kB
    initial commit 2 months ago
  • README.md
    1.72 kB
    Add paper and code links to model card 22 days ago
  • __init__.py
    154 Bytes
    upload model 2 months ago
  • config.json
    677 Bytes
    upload model 2 months ago
  • config.py
    2.29 kB
    upload model 2 months ago
  • model.py
    20.5 kB
    [update] delete flash-attn 23 days ago
  • model.safetensors
    683 MB
    xet
    upload model 2 months ago