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

  • Log In
  • Sign Up

OrionStarAI
/
Orion-14B-Base-Int4

Text Generation
Transformers
Safetensors
orion
code
model
llm
custom_code
4-bit precision
awq
Model card Files Files and versions
xet
Community

Instructions to use OrionStarAI/Orion-14B-Base-Int4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use OrionStarAI/Orion-14B-Base-Int4 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="OrionStarAI/Orion-14B-Base-Int4", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("OrionStarAI/Orion-14B-Base-Int4", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use OrionStarAI/Orion-14B-Base-Int4 with vLLM:

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

    How to use OrionStarAI/Orion-14B-Base-Int4 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 "OrionStarAI/Orion-14B-Base-Int4" \
        --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": "OrionStarAI/Orion-14B-Base-Int4",
    		"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 "OrionStarAI/Orion-14B-Base-Int4" \
            --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": "OrionStarAI/Orion-14B-Base-Int4",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use OrionStarAI/Orion-14B-Base-Int4 with Docker Model Runner:

    docker model run hf.co/OrionStarAI/Orion-14B-Base-Int4
Orion-14B-Base-Int4
8.82 GB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 43 commits
renillhuang's picture
renillhuang
Update README_ko.md
cf72e32 verified about 2 years ago
  • assets
    Upload wechat_group.jpg about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • LICENSE
    18.8 kB
    update readme and licence over 2 years ago
  • ModelsCommunityLicenseAgreement
    22.1 kB
    update readme and licence over 2 years ago
  • README.md
    25.8 kB
    Update README.md about 2 years ago
  • README_ja.md
    28.3 kB
    Update README_ja.md about 2 years ago
  • README_ko.md
    27.4 kB
    Update README_ko.md about 2 years ago
  • README_zh.md
    24.9 kB
    Update README_zh.md about 2 years ago
  • config.json
    1.03 kB
    init over 2 years ago
  • configuration_orion.py
    2.95 kB
    init over 2 years ago
  • generation_config.json
    132 Bytes
    init over 2 years ago
  • model.safetensors
    8.82 GB
    xet
    init over 2 years ago
  • modeling_orion.py
    47.8 kB
    init over 2 years ago
  • quant_config.json
    126 Bytes
    init over 2 years ago
  • special_tokens_map.json
    548 Bytes
    value of single_word to false over 2 years ago
  • tokenization_orion.py
    9.67 kB
    Update tokenization_orion.py over 2 years ago
  • tokenizer.model
    1.52 MB
    xet
    init over 2 years ago
  • tokenizer_config.json
    909 Bytes
    init over 2 years ago