Instructions to use ornith-ai/Ornith-1.0-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ornith-ai/Ornith-1.0-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ornith-ai/Ornith-1.0-9B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("ornith-ai/Ornith-1.0-9B") model = AutoModelForMultimodalLM.from_pretrained("ornith-ai/Ornith-1.0-9B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ornith-ai/Ornith-1.0-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ornith-ai/Ornith-1.0-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ornith-ai/Ornith-1.0-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ornith-ai/Ornith-1.0-9B
- SGLang
How to use ornith-ai/Ornith-1.0-9B 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 "ornith-ai/Ornith-1.0-9B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ornith-ai/Ornith-1.0-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "ornith-ai/Ornith-1.0-9B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ornith-ai/Ornith-1.0-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ornith-ai/Ornith-1.0-9B with Docker Model Runner:
docker model run hf.co/ornith-ai/Ornith-1.0-9B
Attitude problem with this model
Hello!
I'd like to begin by saying I was very excited about this model and the capabilities it boasts. Also, I am not here to slander or insult anyone in the HuggingFace community or the creations and models that they release.
I did however want to make you folks at Ornith-AI aware that I foudn the model quite regrettably: completely unusable.
It was 100% dead-set on arguing with me about what can and cannot be accomplished, stating things to me such as "I will not assist you because you are working on a modified version of the original product" when referring to published AI models or integration of published AI models from this very community site (HuggingFace) which I find difficult to understand how I have tripped some frivulous guardrail or refusal simply by not wishing to work on a 100% original release of a model.
Additionally it would profusely argue about coding methods and demand proof via benchmarks followed by a complete shut down and refusal to interact until they were provided to convince it otherwise.
I Haven't tried out the new Ornith-1.5 versions - and am once more intruiged and excited to see if perhaps this sort of model behavior was resolved.
Thank you very much and once more: I think what you and others here are doing is awesome, I only wanted to make this issue one that users could be made aware of. IN NO WAY am I belittling or mocking this model, your efforts, or its release.
Warm regards,
- Jon Z (EnlistedGhost)
EDIT: Ornith-1.5 definitely corrected the issues!