Image-Text-to-Text
Transformers
Safetensors
qwen3_5_text
qwen3_5
text-generation
conversational
Eval Results
flm
fastflowlm
q4nx
npu2
Instructions to use Atomic-Germ/Ornith-1.0-9B-NPU2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Atomic-Germ/Ornith-1.0-9B-NPU2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Atomic-Germ/Ornith-1.0-9B-NPU2") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Atomic-Germ/Ornith-1.0-9B-NPU2") model = AutoModelForMultimodalLM.from_pretrained("Atomic-Germ/Ornith-1.0-9B-NPU2", 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 = tokenizer.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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Atomic-Germ/Ornith-1.0-9B-NPU2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Atomic-Germ/Ornith-1.0-9B-NPU2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Atomic-Germ/Ornith-1.0-9B-NPU2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Atomic-Germ/Ornith-1.0-9B-NPU2
- SGLang
How to use Atomic-Germ/Ornith-1.0-9B-NPU2 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 "Atomic-Germ/Ornith-1.0-9B-NPU2" \ --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": "Atomic-Germ/Ornith-1.0-9B-NPU2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "Atomic-Germ/Ornith-1.0-9B-NPU2" \ --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": "Atomic-Germ/Ornith-1.0-9B-NPU2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Atomic-Germ/Ornith-1.0-9B-NPU2 with Docker Model Runner:
docker model run hf.co/Atomic-Germ/Ornith-1.0-9B-NPU2
update for flm-add installable from pypi
Browse files
README.md
CHANGED
|
@@ -43,27 +43,15 @@ Q4NX is FastFlowLM's native packed-quantization format - a rearranged Q4_1 layou
|
|
| 43 |
|
| 44 |
## Install and run
|
| 45 |
|
| 46 |
-
This repository
|
| 47 |
-
into the FastFlowLM user directory and registers the tag `
|
| 48 |
modifies the system FastFlowLM install.
|
| 49 |
|
| 50 |
-
```
|
| 51 |
-
# one-time environment (add these to ~/.bashrc)
|
| 52 |
-
export FLM_CONFIG_PATH="$HOME/.config/flm/model_list.json"
|
| 53 |
-
export FLM_XCLBIN_PATH="$HOME/.config/flm"
|
| 54 |
-
|
| 55 |
-
git lfs install
|
| 56 |
-
git clone https://huggingface.co/Atomic-Germ/Ornith-1-9B-NPU2
|
| 57 |
-
cd Ornith-1-9B-NPU2
|
| 58 |
-
python3 ./flm-add.py . --family qwen3.5
|
| 59 |
-
flm run ornith:9b
|
| 60 |
-
```
|
| 61 |
-
|
| 62 |
-
Run `python3 ./flm-add.py --help` for all options. Without a clone, the same
|
| 63 |
-
command works against the repo id directly:
|
| 64 |
|
| 65 |
```bash
|
| 66 |
-
|
|
|
|
| 67 |
FLM_XCLBIN_PATH="$HOME/.config/flm FLM_CONFIG_PATH="$HOME/.config/flm/model_list.json flm run ornith:9b
|
| 68 |
```
|
| 69 |
|
|
|
|
| 43 |
|
| 44 |
## Install and run
|
| 45 |
|
| 46 |
+
This repository works with `flm-add`, a small installer that copies the model
|
| 47 |
+
into the FastFlowLM user directory and registers the tag `minicpm4.6:0.8b`. It never
|
| 48 |
modifies the system FastFlowLM install.
|
| 49 |
|
| 50 |
+
`pip install flm-add` or `uv tool install flm-add`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
```bash
|
| 53 |
+
uv tool install flm-add
|
| 54 |
+
flm-add Atomic-Germ/Ornith-1.0-9B-NPU2 --family qwen3.5
|
| 55 |
FLM_XCLBIN_PATH="$HOME/.config/flm FLM_CONFIG_PATH="$HOME/.config/flm/model_list.json flm run ornith:9b
|
| 56 |
```
|
| 57 |
|