Image-Text-to-Text
Transformers
Safetensors
qwen3_5
micius
multimodal
vision-language
engineering
semiconductor
hardware-design
agentic
conversational
Instructions to use zhiman-ai/Micius-Flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zhiman-ai/Micius-Flash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="zhiman-ai/Micius-Flash") 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 AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("zhiman-ai/Micius-Flash") model = AutoModelForMultimodalLM.from_pretrained("zhiman-ai/Micius-Flash", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use zhiman-ai/Micius-Flash with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zhiman-ai/Micius-Flash" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zhiman-ai/Micius-Flash", "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/zhiman-ai/Micius-Flash
- SGLang
How to use zhiman-ai/Micius-Flash 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 "zhiman-ai/Micius-Flash" \ --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": "zhiman-ai/Micius-Flash", "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 "zhiman-ai/Micius-Flash" \ --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": "zhiman-ai/Micius-Flash", "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 zhiman-ai/Micius-Flash with Docker Model Runner:
docker model run hf.co/zhiman-ai/Micius-Flash
Micius Team commited on
Commit ·
52040d6
1
Parent(s): af43964
Rename research license to Zhiman
Browse files
LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
## 1. Scope
|
| 4 |
|
|
|
|
| 1 |
+
# Zhiman Non-Commercial Research License v1.0
|
| 2 |
|
| 3 |
## 1. Scope
|
| 4 |
|
README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
library_name: transformers
|
| 3 |
pipeline_tag: image-text-to-text
|
| 4 |
license: other
|
| 5 |
-
license_name:
|
| 6 |
license_link: https://huggingface.co/zhiman-ai/Micius-27B/blob/main/LICENSE
|
| 7 |
tags:
|
| 8 |
- micius
|
|
@@ -33,7 +33,7 @@ This release corresponds to the model described as **Micius-Flash** in the *Mici
|
|
| 33 |
|
| 34 |
## License
|
| 35 |
|
| 36 |
-
This model is released under the **
|
| 37 |
|
| 38 |
Derivative models may be released for non-commercial purposes, but must preserve the same non-commercial restrictions. For commercial licensing, contact **license@zhiman.tech**. See the [full license text](LICENSE).
|
| 39 |
|
|
@@ -163,7 +163,7 @@ For image or video understanding, add a corresponding `image` or `video` item to
|
|
| 163 |
|
| 164 |
## License
|
| 165 |
|
| 166 |
-
This release is governed by the **
|
| 167 |
|
| 168 |
## Citation
|
| 169 |
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
pipeline_tag: image-text-to-text
|
| 4 |
license: other
|
| 5 |
+
license_name: zhiman-non-commercial-research-license-v1.0
|
| 6 |
license_link: https://huggingface.co/zhiman-ai/Micius-27B/blob/main/LICENSE
|
| 7 |
tags:
|
| 8 |
- micius
|
|
|
|
| 33 |
|
| 34 |
## License
|
| 35 |
|
| 36 |
+
This model is released under the **Zhiman Non-Commercial Research License v1.0**. It may be used for personal research, academic research, and non-commercial secondary training only. Commercial use—including internal commercial deployment, API or SaaS services, and integration into commercial products—requires a separate written license from the rights holder.
|
| 37 |
|
| 38 |
Derivative models may be released for non-commercial purposes, but must preserve the same non-commercial restrictions. For commercial licensing, contact **license@zhiman.tech**. See the [full license text](LICENSE).
|
| 39 |
|
|
|
|
| 163 |
|
| 164 |
## License
|
| 165 |
|
| 166 |
+
This release is governed by the **Zhiman Non-Commercial Research License v1.0**. See the [full license text](LICENSE). Commercial authorization requires a separate written license; contact **license@zhiman.tech**.
|
| 167 |
|
| 168 |
## Citation
|
| 169 |
|