Instructions to use OrionStarAI/Orion-14B-Chat-Int4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OrionStarAI/Orion-14B-Chat-Int4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OrionStarAI/Orion-14B-Chat-Int4", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("OrionStarAI/Orion-14B-Chat-Int4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OrionStarAI/Orion-14B-Chat-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-Chat-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-Chat-Int4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/OrionStarAI/Orion-14B-Chat-Int4
- SGLang
How to use OrionStarAI/Orion-14B-Chat-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-Chat-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-Chat-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-Chat-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-Chat-Int4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use OrionStarAI/Orion-14B-Chat-Int4 with Docker Model Runner:
docker model run hf.co/OrionStarAI/Orion-14B-Chat-Int4
Commit History
-
Update README_ko.md
Verified signatureAdd Discord link for Korean editionc614508 -
Update README_ja.md
Verified signatureAdd Discord link for Japanese edition49b4780 -
Update README_zh.md
Verified signatureAdd Discord link for Chinese editionc75677d -
Update README.md
Verified signatureAdd Discord community link59daba1
-
Upload wechat_group.jpg
Verified signatureUpdate Wechat group QR code.dd9e631
-
Update tokenization_orion.py
Verified signature68fa7dd
-
Update README_ko.md
Verified signaturebed7d55 -
Update README_ja.md
Verified signatureb18eef3 -
Update README_zh.md
Verified signature068343b -
Upload 2 files
Verified signature18ccd81
-
Update README.md
Verified signature08a831d -
Update README.md
Verified signature61d7981 -
Update README.md
Verified signaturedc1b313 -
Update README.md
Verified signatureb82fc5a -
Upload 2 files
Verified signaturea9c3c5b -
Update README_ja.md
Verified signature1be5bc6 -
Update README_ko.md
Verified signaturee0a88b4 -
Update README_zh.md
Verified signaturee7e0527 -
Update README.md
Verified signature99299b7 -
Update README.md
Verified signaturec900962 -
Update README.md
Verified signatureccbda11 -
Update README_zh.md
Verified signature4befd37 -
Update README_zh.md
Verified signature97d7361 -
Update README_zh.md
Verified signaturea0fb313 -
Update README_ko.md
Verified signatureda746ec -
Update README_ja.md
Verified signatureb1ef3e7 -
Update README.md
Verified signature16dcf90 -
Upload 2 files
Verified signature9627642
-
Update README_zh.md
Verified signature391796f -
Update README_ko.md
Verified signature63557c9 -
Update README_ja.md
Verified signatureadb2d2b -
Update README_ko.md
Verified signature1de3c9c -
Update README.md
Verified signaturefc0e555 -
Update README.md
Verified signaturece893e2 -
Update README.md
Verified signaturef0c720e -
Update README.md
Verified signature8db211e -
Update README.md
Verified signature327ed3d -
Upload 3 files
Verified signatureAdd README file for Chinese,Japanese and Koreansda8510d
-
Update README.md
Verified signature36babed -
Delete README_zh.md
Verified signature9fdc5dd -
Update README_zh.md
Verified signature03dda2e -
Update README.md
Verified signatured8da45f -
Update README.md
Verified signatured2ade3d -
Update README.md
Verified signature1ab78f1 -
Update README_zh.md
Verified signature563ab58 -
Upload 2 files
Verified signature394d894 -
Update README.md
Verified signaturea3c2313 -
Upload ModelsCommunityLicenseAgreement
Verified signature14fb749 -
Update README_zh.md
Verified signaturef4989cb -
Update README.md
Verified signaturef974177