Instructions to use Refract-Labs/Orion-Flagship-Mini-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Refract-Labs/Orion-Flagship-Mini-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Refract-Labs/Orion-Flagship-Mini-Base", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Refract-Labs/Orion-Flagship-Mini-Base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Refract-Labs/Orion-Flagship-Mini-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Refract-Labs/Orion-Flagship-Mini-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Refract-Labs/Orion-Flagship-Mini-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Refract-Labs/Orion-Flagship-Mini-Base
- SGLang
How to use Refract-Labs/Orion-Flagship-Mini-Base 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 "Refract-Labs/Orion-Flagship-Mini-Base" \ --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": "Refract-Labs/Orion-Flagship-Mini-Base", "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 "Refract-Labs/Orion-Flagship-Mini-Base" \ --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": "Refract-Labs/Orion-Flagship-Mini-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Refract-Labs/Orion-Flagship-Mini-Base with Docker Model Runner:
docker model run hf.co/Refract-Labs/Orion-Flagship-Mini-Base
ORION FLAGSHIP MINI PREVIEW IS HERE!
@Banaxi-Tech @juiceb0xc0de @soyL061215 @GGUFGuy Orion Flagship Mini Preview is here! I have added transformers support with trust remote code! Please feel free to try it out! Please note Mini is a proof of concept and hasn't been trained with many tokens yet! Only a few billion!
Just saying this model has only been trained on 1B tokens the resume thingy broke so I’ll fix that today and get more tokens in
@Hoglet-33 @juiceb0xc0de @Banaxi-Tech @GGUFGuy uh if anyone tries this feel free to give me feedback!
You can also use the architecture for your own models but please abide by our license and only publish them privately under Project Prism! Thanks
@Banaxi-Tech Um unfortunately you can only publish them privately under Project Prism for now sorry. For now until we are ready thanks!
yea ik but when it gets public
ok thats fine! in the mean time you can experiment and publish it privately here