Instructions to use achuash/qwen2b_multimodal_reasoning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use achuash/qwen2b_multimodal_reasoning with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf achuash/qwen2b_multimodal_reasoning:F16 # Run inference directly in the terminal: llama cli -hf achuash/qwen2b_multimodal_reasoning:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf achuash/qwen2b_multimodal_reasoning:F16 # Run inference directly in the terminal: llama cli -hf achuash/qwen2b_multimodal_reasoning:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf achuash/qwen2b_multimodal_reasoning:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf achuash/qwen2b_multimodal_reasoning:F16
Use Docker
docker model run hf.co/achuash/qwen2b_multimodal_reasoning:F16
- Llama new
- LM Studio
- Jan
- Ollama
How to use achuash/qwen2b_multimodal_reasoning with Ollama:
ollama run hf.co/achuash/qwen2b_multimodal_reasoning:F16
- Unsloth Desktop
- Docker Model Runner
How to use achuash/qwen2b_multimodal_reasoning with Docker Model Runner:
docker model run hf.co/achuash/qwen2b_multimodal_reasoning:F16
- Lemonade
How to use achuash/qwen2b_multimodal_reasoning with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull achuash/qwen2b_multimodal_reasoning:F16
Run and chat with the model
lemonade run user.qwen2b_multimodal_reasoning-F16
List all available models
lemonade list
- Atomic Chat
Download chat_template.json from achuash/qwen2b_multimodal_reasoning: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/achuash/qwen2b_multimodal_reasoning/resolve/main/chat_template.json
- Command line
-
hf download hf://achuash/qwen2b_multimodal_reasoning/chat_template.json
-
curl -L -o chat_template.json https://huggingface.co/achuash/qwen2b_multimodal_reasoning/resolve/main/chat_template.json
1.05 kB
| { | |
| "chat_template": "{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}" | |
| } | |